Hi Vaclav,

> I'd like to move some strings like CONNECT, PASSWORD, USERID etc.
> from code to eeprom to spare memory. How can I statically initialize
> EEPROM ? I tried something like:
> 
> unsigned char at 0x2100 EEPROM_CONNECT[] = "CONNECT";
> 
> but SDCC does not recognize that this should be directly stored in
> EEPROM...

Do you mean __code memory? Then try either
    __code unsigned char EEPROM_CONNECT[] = "CONNECT";
or
    __code unsigned char __at(0x2100) EEPROM_CONNECT = "CONNECT";


Regards,
Raphael


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to