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:
- Convert the RTEMS executable to a binary file:
arm-rtems7-objcopy path/to/bin/file/hello.exe path/to/bin/file/hello.bin
- 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.)
-
To start GDB, first run
st-utilon one terminal, which will open a remote session. Copy the port number. -
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