Debugging a program located in internal FLASH of the M52235 ColdFire MCU.
Claude Sylvain
csylvain at electro-technica.com
Mon Feb 19 17:01:33 UTC 2007
>>
>> Claude Sylvain wrote:
>>
>>> Sadly, when I build the application, the linker seems to see multiple
>>> definition of __reset and __start !?
>>
>> You will also have to change the linker script to reference your crt0.o,
>> instead of the default. Find the STARTUP line in the m52235evb-rom.ld
>> script, and point it at your crt0.o file.
>>
>
> Daniel Jacobowitz wrote:
>
> Actually, it looks to me as if Claude has both done that and added the
> file on the linker command line. Try doing one, or the other, but not both.
>
Daniel,
You're absolutely right.
crt0_flash module is now handled in the make file. So, it must not appear
in the linker script.
I commented out the folowing linker script line: "STARTUP(./obj/crt0_flash.o)",
and now, I can build the application.
Thank you,
Claude Sylvain
Electro-Technica inc.
More information about the coldfire-gnu-discuss
mailing list