Maarten Brock wrote:
> Mark,
>
> You need to put the code and consts in named segments 
> and locate these somewhere in the banks. See 4.1.3 in 
> the manual.
>
> Maarten
>
>   
I feel a bit embarrassed--somehow I convinced myself that bank 
assignment was being handled by sdcc. This also explains why I could not 
see any sign that code segments were being applied to the various parts 
of the program.

I modified my Makefile to add the bank switching code from the manual. 
But I continued to get the same "Insufficient ROM" errors from the linker.

After some research, I found Anthony Asterisk's post from December 2009 
- how to: mcs51 bank switching on cc2430

http://sourceforge.net/mailarchive/forum.php?thread_name=4B2FC8D2.8090807%40gmail.com&forum_name=sdcc-user

Once I added the "-Wl-r" switch to my link flags, the code linked and 
angels sang.

Thanks for your help,

--Mark Swayne



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to