I've been trying to flash a sample project (GPIOToggle) with Keil uVision 5 using ST-Link Debugger. However, I am getting an error message that reads - No Algorithm found for 08000000H-08000493H.Erase Skipped.Error:Flash Download Failed- "Cortex M3". I've checked and rechecked target options but it just won't work. Using Windows 8. Any help is greatly appreciated.
Hello Nishant,
have you also checked Target Options -> Debug -> ST-Link Debugger Settings -> Flash Download tab? If there is no Programming Algorithm, you need to "Add" one. Then you should get rid of this message.
Kind regards,
Christopher
Hello Christopher,
Yes I did add the ADuCM360 (On Chip Flash) algorithm. Still the same result.
Regards, Nishant
can you try the "STM32F4xx 2MB Flash" algorithm, please? The ADuCM360 is an Analog Devices chip. I'm not sure why it is shown in that context, but it will not flash a ST chip...
The only other option is "RC28F640J3x Dual Flash". No STM32F4xx 2MB Flash option in the Add Flash Programming Algorithm options.
Is there any way to externally download the STM32F4xx algorithm and include it in the options?
you need to download the Software Pack for the STM32F4xx family. Please use the Pack Installer (you can invoke it from within uVision using the Pack Installer button - fourth right from Target Options).
I did add the software packages after an update. But I'm still getting the same error message. I notice that in the target options (debug) when I select ST-Link Debugger, a section below that reads init file is empty. Am I supposed to specify a particular file there? Also, I tried doing the same exact exercise using Keil uVision 4 in Windows XP - I had no error messages and didn't have to change any settings. Is that due to a difference between uVision4 & 5. I tried installing uVision4 on Windows 8 but it won't start either.
Oops. I just realized when I updated the software packs it only updated the list of available packs and didn't actually install them. Installing the ones required right now. Will post updates.
Thanks!
It worked. Also, I noticed that unlike uVision4, you are required to add the start up file for the processor manually from Library<CMSIS<CM3<Device Support<ST<STM32F10x<StartUp. In uVision4 it would ask the user when creating the project if you want to add it automatically. Any way to do this in uVision5?
Thanks a ton,
Nishant
when you have installed the Pack supporting a device and you open the project, click on the "Manage Run-Time Environment" button (that's the one next to the Pack Installer button. There you can add under Device:Startup the files. You will also need to add them CMSIS:Core, but you can use the "Resolve" button as well.
Tried that. Manage Run Time Environment opens when you first create a new project as well. Still fails to add the start up file startup_stm32f10x_md_vl.s. But I don't mind adding it manually either since its in CMSIS folder as well. I've run into a new problem now. I've been interfacing the discovery board with a development kit. Written code for flashing/rotating LED's, displayed a fixed message on a 7-Segment. I've created a new project and written code to interface a keypad with the controller, and display the numbers on a 7-Segment. However, when I build targets, I'm getting an error -
core_cm3.c: Error: C4065E: type of input file 'Entry' unknown ".\OBJ\key_entry.axf" - 1 Error(s), 0 Warning(s).
I've tried deleting my CMSIS files and adding them back again but it doesn't work. Checked all my target options but they're the same as all the other projects I created. What does this error mean and how can I fix it?
Regards,
what is the "Entry" file?
I have no clue what the 'Entry' file actually means. Been trying to figure it out.
thank you very much!