1
votes

Trying to write flash on stm32F100rbt6b discovery board but in console get only

Command not supported Error: Flash Download failed - Target DLL has been cancelled Flash Load finished at 12:11:48

Without any error code or something specific. Is it possible somehow to enable error log during flash loading?

Update:

enter image description here

1
Can you add your MDK version?Sean Houlihane
You could try the STM32_Programmer_CLI to get more information as it has more options and prints everything out in text.Tarick Welling

1 Answers

2
votes

This sounds like the SWD connection has been corrupted, or the AHB has hung internally somehow.

You can log accesses if it is supported by the probe which you use (CMSIS-DAP, or ULINK). Under 'debug options', you can enable logging of all of the accesses (which is pretty verbose). It is greyed out here (since my session is active):

Keil debug options

Logs go into the current project area, and include DP/AP accesses as well as memory transfers.