[coldfire-gnu-discuss] Re: Debugging a program located in internal FLASH of the M52235 ColdFire MCU.

Mark Mitchell mark at codesourcery.com
Sun Feb 18 18:21:36 UTC 2007


Claude Sylvain wrote:

> 1) Get the startup source code and try to patch those problems.  The
> startup source code is not included with Sourcery G++ Lite.
> Is it possible to get it ?

All of the source code is available in the source package.  The crt0
code is also available in m68k-elf/lib/cf-crt0.S of the binary
installation, although this file does not include __reset.  (This code
is not covered by the GPL, so there is no requirement that it be
provided at all, but our packaging machinery will automatically include
it, as a convenience to users.)

Sourcery G++ Lite 4.1-32 does appear to have a defect in the handling of
__reset for unhosted mode.  Our Personal and Professional edition
customers already have this fix; a future Lite edition release will
correct it as well.

However, even with 4.1-32, you may simply define your own __reset
function (in assembly code) and link it into your program.  It will take
precedence over the version in the library.

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the coldfire-gnu-discuss mailing list