Hi,
I have do some settings in the device database for Chipcon CC1110 in menu "File->Device DataBase..." with the following contents:
CPU=IRAM(0-0xFE) XRAM(0xF000-0xFDA1) IROM(0-0x7FFF) CLOCK(26000000) MODC2 MON=S8051.DLL SmartRF04Mon.DLL("-pCC1110") REGFILE=ioCC1110.h("Chipcon") SFILE="LIB\STARTUP.A51" ("Standard 8051 Startup Code") SIM=S8051.DLL DP51.DLL("-pCC1110")
Whe I change to Tab "Target" by menu "Flash->Target", the edit box "XTal" still displays value: 24MHz, this item should be changed to 26.0MHz according to the device database settings list upon, isn't it?
As well we changed the XRAM start address to 0XF000, I also think this settings does not take effect in the linker procedure! I have write a simpe test program on the stack
unsigned long SumValue( unsigned long X, unsigned long Y ) {
return X+Y; }
void main() {
unsigned long iRetVal;
iRetVal = SumValue( 100, 16 );
// Just for watch before code exit
iRetVal++; }
If we set the stack in IDATA by "Memory Model=Small" This program runs OK, if we change the memory model to Compact or Large, then this function gets an incorrect rresult value.
Where can I find the settings for XDATA memory map take effect? Note that I use the default startup.A51 file for power up initialization
Thanks & Best Regards!