Skip to content

PREDICT-EPFL/polympc-stm32f7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PolyMPC example for STM32F7

This repository contains a test example for the Nucleo-F767ZI devboard.

Build

Requirements:

cd polympc-stm32f7/
make

The compiled firmware is placed in the /build directory.

Upload the firmware

With OpenOCD

This requires installing openocd first.

openocd -f openocd.cfg -c "program build/ch.elf verify reset" -c "shutdown"

With ST-Link

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/

Connect serial console

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.

Debug with GDB

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

About

PolyMPC mobile robot example for STM32F7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors