This repository contains a test example for the Nucleo-F767ZI devboard.
Requirements:
- make
- GNU ARM Embedded Toolchain (arm-none-eabi-gcc, etc.)
cd polympc-stm32f7/
makeThe compiled firmware is placed in the /build directory.
This requires installing openocd first.
openocd -f openocd.cfg -c "program build/ch.elf verify reset" -c "shutdown"The ST-Link/v2 mounts as a usb drive.
To update the firmware one can simply copy the binary /build/ch.bin to the drive.
cp build/ch.bin /Volumes/NODE_F767ZI/The ST-Link debugger of the Nucleo-F767ZI also provides a serial connection to the STM32F7 UART3 which is by default configured to 38400 baud.
We recommend using pyserial
pip install pyserial
python -m serial.tools.miniterm /dev/tty.usbmodemXXX 38400
Note: The tty device needs to be changed to e.g. /dev/ttyUSB0 on Linux.
First launch the OpenOCD GDB server:
openocd -f "interface/stlink-v2-1.cfg" -f "target/stm32f7x.cfg"
Then connect with GDB:
arm-none-eabi-gdb --eval-command='target remote localhost:3333' build/ch.elf