2023-11-14 12:34 PM - edited 2024-10-10 02:55 PM
2023-11-14 01:28 PM
While waiting for more useful replies - note that your J-Link module version in the IAR IDE is 7.88j - quite old. Consider installing the latest J-Flash version from Segger. It should find and update J-Link module in your IAR installation.
2023-11-14 01:44 PM
Double check capacitance on VCAP pins, and measure voltage there. Check supplies generally.
Perhaps try with BOOT0 pulled HIGH
2023-11-15 02:00 AM - edited 2024-10-10 02:56 PM
.
2023-11-16 07:22 AM
Hello @Luke_abc
I am not sure if this is a similar thread [SOLVED] Unable to flash / erase STM32F401CC - J-Link/Flasher related - SEGGER - Forum
Same Error: Failed to restore target. RAMCode never stops
ERROR: Erase returned with error code -5.
It is related to bad board power delivery design.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.