AnsweredAssumed Answered

Simple 51x init code example

Question asked by kbrafford on Jan 31, 2011
Latest reply on Feb 6, 2011 by kbrafford

Is there a simple 51x init code example?  I need something that just turns on the SDRAM and speeds up the SPI clock (for external SPI boot).  Is there a simplified example project somewhere?

 

I tried making a new DXE project, with a single ASM file with code from Listing 1 of EE-240 (with the header name changed to defBF514.h).  It assembles fine, but the linker fails with this error:

 

[Error li1021]  The following symbols referenced in processor 'p0' could not be resolved:
        'main [_main]' referenced from 'crtsf532y.doj'

 

Why is it linking in a c runtime thingie?  How do I make it so that I can make my asm routine be located at the right startup address and RTS correctly from my asm file in order to follow the boot stream init protocol?

 

--Keith Brafford

Outcomes