I am downloading the code to STM32F103C8 through SWD using Keil uVision 4, however I always get an error "Cannot Load Flash Programming Algorithm!". In Keil, I set "Use ST-Link Debugger for Flash Programming" and the Programming Algorithm is chosen as "STM32F10x Med-density Flash".
If I use STM32 ST-Link Utility, the code is downloaded successfully.
Any idea why the Keil download fails? Thanks!
One or more project settings or configurations is wrong. Not sure I can deduce exactly which from your presentation of the problem. Not sure I have the patience to create a tutorial or checklist. Try reviewing existing articles rather than expect personal service. http://www.keil.com/support/docs/2747.htm
I already searched for the answer in the forum before posting it. I tried many settings, e.g., choose low-density or high-density flash, change the size of RAM for Algorithm,check "Download to Flash" box, none of them works. It always report the "Erase Failed" error.
What is the correct settings for STM32F10x device?