2016-11-12 02:21 PM
After I compiled the .lib library file using KEIL tool, then using
rm-none-eabi-objdump to parse the .lib or any of the intermediate .o files, GCC objdump reports that
''File format not recognized''.
I was wondering if KEIL is compatible with GCC tools. Or do I need to compile the .lib file with a certain option to produce GCC compatible object files?2016-11-12 04:37 PM
They both use the ELF format, but the differences are nuanced, and can import chain specific library/helper functions. I wouldn't try to intermix them. I would build specific Keil, IAR and GNU/GCC libraries.
Keil has FromELF which is similar to objdump2016-11-14 09:20 AM
2016-11-14 09:45 AM
Error: arm-none-eabi-gcc: error: CreateProcess: No such file or directory
For some reason, the gcc is having trouble finding the files. Or is it something else?
Something else. Not finding the gcc executable you are specifying.
2016-11-15 03:10 PM
Thanks for your help.
I was able to compile, link and generate the .hex file. So far I can download the .hex to the chip using ST-Link utility. But when I use KEIL to download the binary, 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 Do you happen to know why? Also, how would I go about debugging the program given GCC was used to compile the program? Thanks.2016-11-15 05:19 PM
Thanks for your help I was able to get it to work, although the word ''algorithm'' 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. Actually my other question is the program I work so far is rather small, but for a large scale program, can this method be reliably done? That is using GCC to compile and debug which is not really native to KEIL tool? Do you happen to know any customer who is using KEIL with GCC to develop commercial programs? Thanks.2016-11-16 09:51 AM
Customers have wide and varied needs, I tend to be adaptive in the tools and methods I use to solve problems. I've also had to write tools to address specific requirements.
I've had occasion to use GNU/GCC compilers, and Keil debuggers, and other occasions where no source is available. Use what you are most comfortable with, and understand how it works.