Unable to run/debug on Nucleo STMF401RE with embedded-nucleo_f401re runtime

I am trying to run and debug a simple program on the Nucleo-F401RE. The toolchain is GNAT ARM elf 15.2.1. The runtime is embedded-nucleo_f401re. For flash and debug, I’m using GNAT Studio 26.0 and the following is the Ide configuration in the project file:

package Ide is
  for Program_Host use “localhost:4242”;
  for Communication_Protocol use “remote”;
  for Connection_Tool use “st-util”;
end Ide;

The build and flash on MCU process works, while the execution and debugging not.
When I start the debugger, the program is waiting in _start_rom (), which is correct.

When I run the program, the program execution stops on its own after about ten seconds in the same function.

If I put the following breakpoint, it is never hit.

image

You can see the full alire project here: GitHub - BottCode/porting_blink_f401re.

Is there a problem with the embedded-nucleo_f401re runtime implementation? If I switch to another MCU (light-stm32f429disco), everithing works.

1 Like