This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/CC2642R: Application is not Jumping to main() in debug mode.

Part Number: CC2642R

Tool/software: TI C/C++ Compiler

Hi Team,

We are facing some weird issue with CC2642 Controller code base with I-jet Debugger.

Issue Background:

Due to boot loader address mapping purpose we have changed the application start address to 0x2000 in linker file, in 0x0000 address we have boot loader.

For this we have done some changes in liker file ".icf " , ".cfg"  file and .ccfg file as well.

linker changes:

define region FLASH               = mem:[from 0x2000 to 0x58000];

// Interrupt Vector Table
place at address mem:0x2000 { readonly section .intvec };
keep                             { readonly section .intvec };

With above changes I am able to see the vector table is mapped at 0x2000 location only.

TI_RTOS .Cfg File Changes:

/* Put reset vector at start of Flash */
//m3Hwi.resetVectorAddress  = 0x0;
m3Hwi.resetVectorAddress  = 0x2000;

CCFG File Changes:

#define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID             0x00002000 

With the all above changes , if connect the board with debugger , application is not able moving to main() function, I am getting some exception, I have attached the screenshot for the same.

After that If we perform the Reset through debugger then it is jumping to main() function, by default it is not jumping to main().

Is there any other changes required for that and some times when I am connecting debugger I am getting some pop up messages which are related to ble stack related files not found like that.

Regards,

Srinivas.V