Tool/software: TI-RTOS
Hello,
At compile time I have disabled bootloader access in my CCFG table by setting the appropriate macros in my ccfg.c file. However, I want to have the ability to change the CCFG table at runtime so that I can enable access to the bootloader and the bootloader backdoor at will, which will then allow me to perform a firmware upgrade. Finally, after the firmware upgrade completes I would like to disable bootloader access again until it's time to perform another firmware upgrade. I have a couple of questions:
- Assuming that sector 31 (i.e. the region of flash where CCFG resides) is not locked, is it possible to change the CCFG table at runtime?
- How do I overwrite the BL_CONFIG parameter of the CCFG table while keeping other parameters intact? I'm assuming I will need to make a copy of the CCFG table, erase the sector where it resides, and then rewrite the table with my modified BL_CONFIG parameter. Is there some sort of API available to avoid all of this? I think osal_snv_write only applies to the SNV region of flash.
Thanks,
Keron