RTEMS Documentation for STM32 F4 Is Still a TODO – Need Help

Hello, I was able to run RTEMS on my STM32F407VE successfully.

First, you need to manually build the arm-rtems-gcc toolchain. For that, refer to the getting started doc (just replace sparc/erc32 with arm/stm32f4).

Then, set up an application folder as instructed in the tutorial. After completing that, follow these commands:

  1. Convert the RTEMS executable to a binary file:
arm-rtems7-objcopy path/to/bin/file/hello.exe path/to/bin/file/hello.bin
  1. If you have an ST-Link, flash the binary using:
st-flash write path/to/bin/file/hello.bin 0x8000000

(You need to use --connect-under-reset if you are not setting up the reset pin.)

  1. To start GDB, first run st-util on one terminal, which will open a remote session. Copy the port number.

  2. In a second terminal, run:

arm-rtems7-gdb path/to/bin/file/hello.exe

Then connect to the ST-Link GDB server using:

target extended-remote :port-number
2 Likes