Search code examples
stm32keil

Keil uvision 5 unable to download flash


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


Solution

  • 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.