[coldfire-gnu-discuss] Free run of program on M52235 not possible

Nathan Sidwell nathan at codesourcery.com
Fri Aug 24 09:17:57 UTC 2007


Nathan ,
> first of all thank you for this great tool-chain that is so easy to use!
> Great work.

thanks :)

> I just have one question that I am stuck with a bit. So far it works
> perfectly running the software using the debugger. But for some reason, it
> does not start when I remove the BDM_EN jumper and reset the board. Am I
> missing something here?

For the current release you'll have to arrange some startup code to initialize 
some control registers.  You need to set RAMBAR correctly and PST[3:0] signals. 
  These are initialized by the debugger for you.  The following untested code 
sequence should do it:
	move  #0x20000021,%d0
	movec.l  %d0,%rambar
	move  #f,%d0
	move.b %d0,0x40000000+0x100074

You'll need to edit this into crt0.s.

Our Fall release will make this automatic.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery




More information about the coldfire-gnu-discuss mailing list