This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Memory mapping

Other Parts Discussed in Thread: CC2430

Hello,

 

I am using the CC2430 Demonstration Board (with the CC2430F128) and I am testing the “Generic Application” provided with Zstack-1.4.3-1.2.1, using IAR workbench.

 

The application works fine when I download it to the IC EEPROM but I noticed that I cannot erase the EEPROM before the download.

If I do that, the application does not run.

In that situation, the only way to make it work is to erase again the EEPROM, download the HEX file of the firmware originally present in CC2430 EEPROM and then download again the application from IAR workbench.

 

I think that the problem may be located in the linker command file: f8w2430.xcl (present in Tools directory), with some configurations that do not make sense to me:

 

D_NEAR_CODE_END=0x7FFF

Shouldn´it be D_NEAR_CODE_END=0xFFFF ?(64k)

 

Also, D_CODE_END=0x28FF             // Last address for ROOT bank

Shouldn´it be also D_CODE_END=0xFFFF ? (64k)   

 

And then I have the following instructions:

//    CC2430 Device Specific

//    ======================

//

//    Overlayed Code Bank Addresses

//

-D_BANK1_START=_BANK1A         // 1st overlayed code bank

-D_BANK1_END=0x1FFFF

//

-D_BANK2_START=0x28000         // 2nd overlayed code bank

-D_BANK2_END=0x2FFFF

//

-D_BANK3_START=0x38000         // 3rd overlayed code bank

-D_BANK3_END=0x3DFFF

//

-D_BANK3b_START=(_ZIGNV_END+1)  // 3rd overlayed code bank after the pages dedicated to NV.

-D_BANK3b_END=0x3FFF7           // Last 8 bytes of last Flash page reserved for IEEE address.

//

-P(CODE)BANK1=_BANK1_START-_BANK1_END

-P(CODE)BANK2=_BANK2_START-_BANK2_END

-P(CODE)BANK3=_BANK3_START-_BANK3_END

-P(CODE)ZIGNV=_ZIGNV_START-_ZIGNV_END

-P(CODE)BANK3b=_BANK3b_START-_BANK3b_END

 

These instructions define banks with 32KB size when the application I am testing is using unified mapping where banks should be 24KB.

 

Should I be using instead lnk51ew_cc2430.xcl or lnk51ew_cc2430b.xcl files for linking ?

 

Can someone help me to solve this problem ?

 

Hugo