Part Number: LP-CC2652R7
Other Parts Discussed in Thread: CC2652R7
Hello,
So I've been trying to dynamic change the bootloader in flash memory by using various methods found on the forums. I've tried using the NVS stuff to save the current ccfg memory then writing it back to flash with the adjusted values. I also tried the writeFlash() method of the flash_interface_internal, the HapiProgramFlash() method and the HWREG all trying to change the bootloader configuration.
uint8_t* BLON = (uint8_t*)malloc(4 * sizeof(uint8_t));
HWREG(0x50004000 + 0x00000FD8) = 0xC5FE08C5;
HapiProgramFlash(BLON, 0x50004FD8, 4);
writeFlash(0x50004FD8, BLON, 4)
Thanks,
Kenneth