Hi,
I have CC2640 Development kit and IAR systems i_jet debugger. I compiled multi_role app from simplelink_cc2640r2_sdk, and modified ccfg_app_ble.c file with below macros to enable boot loader update via UART.
//define new config
//#include <startup_files/ccfg.c>
//#####################################
// Bootloader settings
//#####################################
#ifndef SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE
#define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5 // Enable ROM boot loader
#endif
#ifndef SET_CCFG_BL_CONFIG_BL_LEVEL
#define SET_CCFG_BL_CONFIG_BL_LEVEL 0x0 // On my board, DIO5 is low.
#endif
#ifndef SET_CCFG_BL_CONFIG_BL_PIN_NUMBER
#define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER 0x05 // DIO number for boot loader backdoor
#endif
#ifndef SET_CCFG_BL_CONFIG_BL_ENABLE
#define SET_CCFG_BL_CONFIG_BL_ENABLE 0xC5 // Enabled boot loader backdoor
#endif
//#####################################
WIth I-jet debuuger, I am able to run the app. But memory location 0x50000FD8(CCFG location) is showing below values.
0x50003fd8 ff ff ff c5,
My understanding is, multi_role application with configured MACROS will set above defined macros to Flash CCFG. But l do see different value.
Another question: if I want to set CCFG area, using same mutli_role app at runtime, Can someone please help me with API I need to use?
Thanks in Advance.
Sateesh