Skip to content

Commit b9dd846

Browse files
author
Your Name
committed
copied and validated steps from draft pdf
1 parent 245afa7 commit b9dd846

File tree

8 files changed

+93
-13
lines changed

8 files changed

+93
-13
lines changed

content/learning-paths/microcontrollers/yolo-on-himax/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ learning_objectives:
1313
prerequisites:
1414
- Seeed Grove Vision AI V2 Module
1515
- OV5647-62 Camera module and included FPC cable
16-
- An Windows based machine running an x86 archiecture.
16+
- A USB-C cable
17+
- An Linux-based PC on an x86 archiecture.
1718

1819
author_primary: Chaodong Gong, Alex Su, Kieran Hejmadi
1920

content/learning-paths/microcontrollers/yolo-on-himax/how-to-1.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,22 @@ layout: learningpathall
88

99
## Set up the development environment
1010

11-
### Step 2.1. Install Ubuntu 22.04
11+
### Step 2.1. Install Ubuntu
1212

13-
Himax SDK needs to be compiled in a Linux environment. If you use a Windows computer, it is recommended to install WSL, by searching Ubuntu 22.04.3 LTS in Microsoft store. This learning path has been validated on Ubuntu 22.04 LTS. However, we expect other linux distributions to work.
13+
Himax SDK needs to be compiled in a Linux environment. If you use a Windows computer, it is recommended to install WSL, by searching Ubuntu 22.04.3 LTS in Microsoft store. This learning path has been validated on Ubuntu 22.04 LTS. However, we expect other linux distributions to work. To verify the Linux distribution you are using you can run the `cat /etc/*release*` command.
14+
15+
```bash
16+
cat /etc/*release*
17+
```
18+
The top lines from the terminal output will show the distribution version.
19+
20+
```output
21+
DISTRIB_ID=Ubuntu
22+
DISTRIB_RELEASE=22.04
23+
DISTRIB_CODENAME=jammy
24+
DISTRIB_DESCRIPTION="Ubuntu 22.04.5 LTS"
25+
...
26+
```
1427

1528
### Step 2.2. (Optional) Install Microsoft VS Code
1629

@@ -22,14 +35,14 @@ Go to website python.org to download and install.
2235
Verify python is installed by
2336
python3 --version
2437
You should see an output like the following.
25-
```bash
38+
```output
2639
Python 3.12.7
2740
```
2841
### Step 2.4. Install python-pip
2942

3043
```bash
3144
sudo apt update
32-
sudo apt install python3-pip
45+
sudo apt install python3-pip -y
3346
pip3 --version
3447
```
3548

@@ -48,7 +61,20 @@ sudo apt update
4861
sudo apt install make -y
4962
```
5063

64+
Successful installation of make will show the following when the `make --version` command is run.
65+
66+
```output
67+
$ make --version
68+
GNU Make 4.3
69+
Built for x86_64-pc-linux-gnu
70+
Copyright (C) 1988-2020 Free Software Foundation, Inc.
71+
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
72+
This is free software: you are free to change and redistribute it.
73+
There is NO WARRANTY, to the extent permitted by law.
74+
```
75+
5176
### Step 2.6. Install ARM GNU toolchain
77+
5278
```bash
5379
cd ~
5480
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz

content/learning-paths/microcontrollers/yolo-on-himax/how-to-2.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,28 @@ cd Seeed_Grove_Vision_AI_Module_V2
3333

3434
### Step 3.2. Compile the firmware
3535

36+
The make build tool is used to compile the source code. This should take up around 2-3 minutes depending on the number of CPU cores available.
37+
3638
```bash
3739
cd EPII_CM55M_APP_S
3840
make clean
3941
make
4042
```
4143

44+
4245
### Step 3.3. Generate firmware image file
4346

4447
```bash
4548
cd ../we2_image_gen_local/
4649
cp ../EPII_CM55M_APP_S/obj_epii_evb_icv30_bdv10/gnu_epii_evb_WLCSP65/EPII_CM55M_gnu_epii_evb_WLCSP65_s.elf input_case1_secboot/
4750
./we2_local_image_gen project_case1_blp_wlcsp.json
4851
```
52+
53+
Your terminal output should end with the following.
54+
55+
```output
56+
Output image: output_case1_sec_wlcsp/output.img
57+
Output image: output_case1_sec_wlcsp/output.img
58+
59+
IMAGE GEN DONE
60+
```

content/learning-paths/microcontrollers/yolo-on-himax/how-to-3.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,32 @@ weight: 3
66
layout: learningpathall
77
---
88

9-
## Update The Firmware
9+
## Flash The Firmware
1010

11-
Update firmware in Windows environment by python code.
11+
### Step 4.1. Install xmodem.
1212

13-
### Step 4.1. Open ‘cmd’ over Seeed_Grove_Vision_AI_Module_V2-main.
14-
15-
### Step 4.2. Install xmodem.
13+
Change the directory
14+
```bash
15+
cd $HOME/Seeed_Grove_Vision_AI_Module_V2 # If you cloned the repo to a different location replace $HOME with the path.
16+
```
1617

17-
Run the following command
18+
`Xmodem` is a basic file transfer protocol. Run the following command to install the dependencies for xmodem.
1819

1920
```python
2021
pip install -r xmodem/requirements.txt
2122
```
2223

23-
### Step 4.3. Connect the module to PC by USB cable.
24+
### Step 4.2. Connect the module to PC by USB cable.
25+
26+
You will need to insert the FPC cable cable into the Grove Vision AI V2 module. Lift the dark grey latch on the connector as per the image below.
27+
28+
![unlatched](./unlatched.jpg)
29+
30+
Then, slide the FPC connector in with the metal pins facing down and close the dark grey latch to fasten the connector.
31+
32+
![latched](./latched.jpg)
33+
34+
Then connect the Groove Vision AI V2 Module to your computer via USB-C.
2435

2536
### Step 4.4. Flash the firmware by the following commands:
2637

content/learning-paths/microcontrollers/yolo-on-himax/how-to-4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ layout: learningpathall
1111

1212
### Step 5.2. Connect module to PC with USB cable.
1313

14-
You will need to insert the FPC cable cable into the Grove Vision AI V2 module. Lift the dark grey latch on the connector and slide the connector in with the metal pins facing down.
14+
1515

1616
### Step 5.3. Download the Himax AI web toolkit.
1717

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: (Optional) Try Different Models
3+
weight: 5
4+
5+
### FIXED, DO NOT MODIFY
6+
layout: learningpathall
7+
---
8+
9+
10+
### Modify the makefile
11+
12+
Change the directory to the where the makefile is located.
13+
14+
```bash
15+
cd $HOME/Seeed_Grove_Vision_AI_Module_V2/EPII_CM55M_APP_S/ # replace $HOME with the location of the project
16+
```
17+
18+
Using a text editor, for example visual studio code or nano, modify the `APP_TYPE` field in the makefile from the default value of `allon_sensor_tflm` to one of the following.
19+
20+
21+
|Parameter|Description|
22+
|---|---|
23+
|tflm_folov8_od|Object detection|
24+
|tflm_folov8_pose|Pose detection|
25+
|tflm_fd_fm|Face detection|
26+
27+
Go back to the 'Build The Firmware' section and start from Step 3.2. to regenerate the firmware image.
28+
29+
The images below are examples images from the model.
30+
38.6 KB
Loading
51 KB
Loading

0 commit comments

Comments
 (0)