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.

LAUNCHXL-CC1310: cc1310 write inner flash

Part Number: LAUNCHXL-CC1310


I have  view this discus:e2e.ti.com/.../515170

but I  used the example flashdemo_v1.0.0.zip with IAR.

the 

extern const uint32_t __FLASH_ADDR;
extern const uint32_t __FLASH_SIZE;
extern const uint32_t __FLASH_DATA_ADDR;
extern const uint32_t __FLASH_DATA_SIZE;
const uint32_t FLASH_BASE_ADDR = (uint32_t)&__FLASH_ADDR;
const uint32_t FLASH_SIZE = (uint32_t)&__FLASH_SIZE;
const uint32_t FLASH_DATA_ADDR = (uint32_t)&__FLASH_DATA_ADDR;
const uint32_t FLASH_DATA_SIZE = (uint32_t)&__FLASH_DATA_SIZE;

is undefined, how can I do?

I used CC1310f128.

best regards,

selina

  • Hello Selina, 

    The Flash definitions you listed are defined in the linker command file. You will need to include the file CC1310DK_7XD.cmd into your IAR project. 

    I tried to build the flashdemo project you attached and it builds finewith no errors  in CCS v6.1.3

    Regards,

    Prashanth

  • Hi Prashanth,

    Thank you reply.

    But I include the .cmd file and build,it have mistake.

     Warning[Pe047]: incompatible redefinition of macro "FLASH_BASE" (declared at line 64 of  C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\examples\IAR\CC1310DK_7XD\CC1310EasyLink V0.4\CC1310DK_5XD.cmd 49
     "c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc13xxware_2_04_03_17272/inc/hw_memmap.h") 
     
    the define of in .cmd file.

    #define FLASH_BASE 0x0
    #define FLASH_SIZE 0x20000
    #define RAM_BASE 0x20000000
    #define RAM_SIZE 0x5000

    and   #define FLASH_BASE              0x40030000 // FLASH in hw_memmap.h file.

    which define do I used?

    others,

    which file  I can file the define of The FLASH_DATA_ADDR and FLASH_DATA_SIZE value ?

     

    best regards,

    Selina