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.

RM48L940: Is it possible to write to Flash bank 7 without the TI F021 Flash API

Part Number: RM48L940

I would like to write some data to flash bank 7 using IAR and a J-Link flash loader. Is it possible to place const variables in a sector within flash bank 7 that are initialized with non zero values? Can the flash loader write the initial values to the corresponding flash bank 7 memory locations or is this only possible using the TI F021 Flash API? The J-Link flash loader can write directly to bank 0 and bank 1, so is there any limitation preventing the loader from writing directly to bank 7?

In the scenario above i am not using EEPROM emulation, but simply want to write data to flash bank 7 using the IAR tools.

Thanks,

  • Hello Lonnie,

    The Bank7 can be used as program flash and data flash (EEPROM). TI CCS can erase bank 0/1 and bank 7 and can load the code to bank0, bank1 and bank7. I did not try to erase bank7 and load code to bank7 using IAR workbench before.

    Have you tried to load the code to bank7 directly from IAR IDE?

    This is the example in CCS:

    /* Section Configuration */

    SECTIONS
    {
    .intvecs : {} > VECTORS
    .text : {} > FLASH7
    .const : {} > FLASH7
    .cinit : {} > FLASH7
    .pinit : {} > FLASH7
    .bss : {} > RAM
    .data : {} > RAM
    .sysmem : {} > RAM


    /* USER CODE BEGIN (4) */

    /* USER CODE END */
    }