[coldfire-gnu-discuss] Debugging/Running program in internal Flash.

Claude Sylvain csylvain at electro-technica.com
Thu Feb 15 15:09:17 UTC 2007


Hello David,


 >
 > David Brown wrote:
 >
 >
 > It looks to me that you are linking with CodeSourcery's bdm semi-hosting
 > library.  This can be very handy when you have the debugger connected -
 > your code can access files on the host, for example.  But if the debugger
 > is not attached, the program will fail at the first semi-hosting access,
 > as there is no debugger to talk to after a halt, so when making flash
 > versions, make sure you use the non-bdm version of the library.
 >

As stated in the previous mail, I actually use the "m52235evb-rom.ld" linker
script .
The "m52235evb-rom.ld" refere to the startup code named "cf-unhosted-crt0.o".
Here is the first lines of that file:

				   ----------

STARTUP(cf-unhosted-crt0.o)
OUTPUT_ARCH(m68k)
ENTRY(__start)
SEARCH_DIR(.)
GROUP(-lc -lunhosted -lcf)
__DYNAMIC  =  0;

				   ----------

Refering the the above text, we can also see that one of the library is
named "unhosted", so I suppose that all is ok here too.

So, all seems to be Ok (no use of hosted things).

Is it possible that the "cf-unhosted-crt0.o" is not the startup code
for the unhosted target !?


Is the source code of "cf-unhosted-crt0.o" is available, so I can
modify it, and get rid of that problem ?


Claude Sylvain
Electro-Technica inc.





More information about the coldfire-gnu-discuss mailing list