[Openec] pdata access

Frieder Ferlemann frieder.ferlemann at web.de
Sun Nov 14 17:15:51 EST 2010


Hi Paul,

I've just seen that pdata access was enabled
and "P2 = 0xf4;" was set in
unsigned char early_startup(void)

For SDCC this is likely not needed
(see section 4.1.1 "pdata access by SFR" and
_XPAGE .)

For Keil you should maybe recheck that within
startup.a51 the "PDATASTART EQU" is set
appropriately. (setting it in early_startup()
might be too early/too late/overwritten
causing initialized pdata variables to have
unexpected values)


I assume you use pdata with SDCC successfully?


Greetings,
Frieder


More information about the Openec mailing list