Part Number: CC1310
Tool/software: TI-RTOS
Hi,
In the thread below I found a example of how to add the NVS driver to a CC1310 project:

I have tested the example and it worked well.
Now, in my own product I have two firmwares: bootloader and application.
The bootloader is stored at the address 0x00000 of the flash memory.
The application is stored at the address 0x10000 of the flash memory.
In the bootloader I need to receive a .bin file containing a new application and use it to replace the original application.
In order to do that, I need to be able to write in the flash at address 0x10000 (which is the address where the application is stored).
I modified the example presented in the thread mentioned above and created this:
//char myCopyBlock[4096]; Don't use RAM
const NVSCC26XX_HWAttrs nvsCC26xxHWAttrs[CC1310_LAUNCHXL_NVSCOUNT] = {
{
.block = (void *)0x10000,
.blockSize = 0x10000,
.copyBlock = NULL, // Don't use RAM
.isRam = false // Don't use RAM
}
};
But I can't get it to work.
What am I doing wrong?
Is there a better way to do what I need?
Best regards,