Other Parts Discussed in Thread: CC2650
Tool/software: TI-RTOS
Hi,
In my product I have two projects stored: bootloader and application.
The bootloader is stored at address 0x00000 of the flash memory.
The application is stored at address 0x10000 of the flash memory.
The bootloader must receive a .bin file containing a new application and replace the original application stored at address 0x10000.
In order to do that, I need a way to write to the CC1310 flash memory.
I found a example in the thread below:
I tried the example and it worked well. I was able to write and read from the flash memory.
However, in my case I need to write a large among of data, so a don't want to use a RAM buffer (as showed in the example).
I don't know how to configure the driver to not use a RAM buffer. I tried as follows:
//char myCopyBlock[4096]; Commented! const NVSCC26XX_HWAttrs nvsCC26xxHWAttrs[CC1310_LAUNCHXL_NVSCOUNT] = { { .block = (void *)0x10000, // Address where the application starts .blockSize = 0x10000, // Size of application .copyBlock = NULL, // Don't want to use RAM! .isRam = false // Don't want to use RAM! } };
I didn't work.
How can I configure it to write to flash memory without use a copy of previous data?
Is there a better way to do what I need? Maybe another driver?