2025-08-13 8:53 AM
Hello,
I don't have so much experience with the boards of STM32 and I'm struggling a bit (actually a lot) with a quite simple task.
I want to run a blinking test with the board STM32MP257F-EV1.
I installed the STM32CubeMX, STM32CubeIDE and STM32CubeProgrammer.
First I generated the code with CubeMX and added the code for blinking in the CubeIDE. Then I clicked on Run -> Debug and there was this error:
Error message from debugger back end:
Remote communication error. Target disconnected: (undocumented errno 10061).
I changed the BOOT switches to 0 1 0 0, and then did Run -> Debug again. This time there was this error:
Open On-Chip Debugger 0.12.0+dev-00608-gd8ed48fef (2025-02-06-11:17) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain connect_deassert_srst
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V3J16M7B5S1 (API v3) VID:PID 0483:3753
Info : Target voltage: 3.284631
Info : Unable to match requested speed 5000 kHz, using 3300 kHz
Info : Unable to match requested speed 5000 kHz, using 3300 kHz
Info : clock speed 3300 kHz
Info : stlink_dap_op_connect(connect)
Info : SWD DPIDR 0x6ba02477
Error: [STM32MP257FAIx.ap0] Examination failed
Warn : target STM32MP257FAIx.ap0 examination failed
Error: [STM32MP257FAIx.axi] Examination failed
Warn : target STM32MP257FAIx.axi examination failed
Info : gdb port disabled
Info : starting gdb server for STM32MP257FAIx.axi on 3334
Info : Listening on port 3334 for gdb connections
Info : gdb port disabled
Info : gdb port disabled
Info : gdb port disabled
Info : gdb port disabled
Info : starting gdb server for STM32MP257FAIx.m33 on 3333
Info : Listening on port 3333 for gdb connections
Info : gdb port disabled
Info : accepting 'gdb' connection on tcp/3333
Error: Target not examined yet
Error executing event gdb-attach on target STM32MP257FAIx.m33:
Info : New GDB Connection: 1, Target STM32MP257FAIx.m33, state: examine deferred
Error: Target STM32MP257FAIx.m33 not examined yet, refuse gdb connection 1!
Error: attempted 'gdb' connection rejected
shutdown command invoked
I tried checking if I could connect with the CubeProgrammer, but here I got this error:
11:43:02: Error: Unable to get core ID
11:43:02: Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
I already tried different settings, different position of the BOOT switches, but nothing had worked.
I read in the User Manual UM3359 in the Section 7.4.5 "Programming through STLINKV3EC is not supported with microprocessor products". Maybe this is the reason that it is not working, becuase debugging is only possible in MCUs but not in MPUs? If that is the case, how can I run the blinking led code in my board.
This is only the beginning. In the future I want to establish communication over SPI and PCIe between two boards.
Is there some instructions or guide I can follow to do something of this?
I would be very thankful for any help.
Best regards,
David