-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.sh
34 lines (28 loc) · 1013 Bytes
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#********************************************************#
### Trova indirizzo porta seriale della board assegnata dal S.O.
cd /dev
ls > ~/without.txt
# Connetti la board
ls > ~/connected.txt
diff ~/without.txt ~/connected.txt # simile a "tty.usbserial-DN014TJU"
#********************************************************#
# Link librerie Tensorflow Micro al compilatore
# (Solo la prima volta)
west config manifest.group-filter -- +optional
west config manifest.project-filter -- +optional
west config manifest.project-filter -- +tflite-micro
west update
#********************** RUN ***************************#
readonly BOARD="stm32f429i_disc1"
readonly PORT="tty.usbmodem1103"
PROJECT="person_detector"
# Attiva ambiente virtuale
source ~/zephyrproject/.venv/bin/activate
cd ~/zephyrproject/zephyr
#Build (auto pristine)
west build --pristine auto --board $BOARD $PROJECT
west flash
# Avvia monitor seriale
screen /dev/$PORT 115200
# Premi Reset sulla board!
# CTRL-A then CTRL- per uscire dal monitor