nucleo_g474re.cfg 561 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
source [find interface/stlink.cfg]
source [find target/stm32g4x.cfg]

# If you have several stlink connected simultaneously you can choose
# which one to use with hla_serial.
#
# Example :
#   ls -l /dev/serial/by-id/
#   total 0
#   lrwxrwxrwx 1 root root 13 févr. 10 11:54 usb-STMicroelectronics_ST-LINK_V3_002500443038510C34333935-if02 -> ../../ttyACM0
#
# Here serial is 002500443038510C34333935
#
#hla_serial "002500443038510C34333935"

reset_config srst_only
init
targets
reset halt
flash write_image erase "build/zephyr/zephyr.elf" 0
reset run
shutdown