Day: June 1, 2019

Flashing NuttX on STM32LDiscovery board

The STM32LDiscovery board is powered by STM32L152R8T6 microcontroller. There is also the STM32L152C-Discovery board, the is exactly the same board but using the STM32L152RCT6 that comes with 256KB Flash and 32KB RAM.

This is the command to flash the nuttx.bin on it:

$ openocd -f interface/stlink-v2.cfg -f target/stm32l1.cfg -c init -c “reset halt” -c “flash write_image erase nuttx.bin 0x08000000”

The serial console is on UART1 (PA9 is TX output and PA10 is RX input) and the baudrate is 57600.