Skip to main content
COcak
Associate
September 23, 2019
Question

Hello, i got STM32F4 and i am working on it with Keil. When i try to load my code i got "Cannot Load Flash Programming Algorithm" error. Can anybody help me with this issue?

  • September 23, 2019
  • 3 replies
  • 1563 views

..

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
September 23, 2019

Go into the Debugger setting, Flash Download tab, and PICK a flash algorithm suitable for your specific device.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
COcak
COcakAuthor
Associate
September 23, 2019

I've already tried that. It didn't work.

Tesla DeLorean
Guru
September 23, 2019

Ok, then you're going to need to review where the compiler/linker is placing your code.

The algorithms for internal FLASH will assume a base of 0x08000000, and a size of 1MB, or perhaps 2MB depending on model selected.

Flash algorithms won't work for RAM in the 0x10000000 or 0x20000000 regions, for those you'll be wanting to use a Debugger Script, and LOAD the firmware image into RAM more directly.

Got very little to work with here. Perhaps get more expansive on the detail and context, with things like error messages, logs, and map files.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..