I am using KEIL but with GCC for my STM32F0 uC. It would compile fine and I am able to use the ST Link utility to download the hex file. But when using KEIL to download the binary to the chip, there is an error message:
Load "C:\\Working\\STMMicro\\ProgramExamples\\Nucleo_F07_Examples\\STM32Cube_FW_F0_V1.6.0\\Projects\\STM32F072RB-Nucleo\\Examples\\GPIO\\GPIO_IOToggleGCC\\MDK-ARM\\Project.elf" No Algorithm found for: 08000000H - 080024B3H Erase skipped! Error: Flash Download failed - "Cortex-M0" Flash Load finished at 14:13:37
Also, even if I can download the hex file, how can I debug and step into the code?
Thanks.
Thanks for your help I was able to get it to work, although the error message is a bit misleading though.
I went into Debug->Setting(next to STLink)->Flash Download(Tab) and then under the program algorithm selection, I then select the RAM block for download.
But the word "algorithm" doesn't seem to describe the problem, but thanks for your help.
Flash parts can be very different, and board can have multiple internal and external memory devices, and each falls within a specific memory region, and requires code uploaded in to RAM to allow for programming. This programming code is an "algorithm", and is the documented method Keil uses to achieve this.
The flash memory is not part of the ARM core, and is vendor unique.
Thanks for the clarification. I was wondering if GCC can be reliably replace KEIL default compiler? Can one develop a large scale commercial application and having the ability to debug, step into the codes, reliably using GCC?