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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s