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.

TMS570LC4357: Program hang at dataEntry b dataEntry

Part Number: TMS570LC4357


Tool/software:

Hi

Recently, I encounter the above error. It is a strange problem. Below is the starting code in my main program.

If I run the program from start location, I will get dataEntry error like below

dataEntry
              b dataEntry
              b phantomInterrupt
              ldr pc,[pc,#-0x1b0]
              ldr pc,[pc,#-0x1b0]

The program will get stuck at dataEntry. If I step through the main starting software like stopping at MAIN_vPcba_Init() and 

boFlag_SystemInit_Done = true, it will not hang and the software will run normally. 

Can you tell me what is wrong? According to chatgpt, the cause may be 

Can you help me to verify if this is the cause. If yes, how to resolve it such that it doesn't happen. Thank you

-------------------------------------------------

int main(void)
{
static bool bl_flash = false;
// Other Task timing counters

// Initialize all hardware and low-level modules
MAIN_vPcba_Init();

// Initialize all Software modules
MAIN_vModule_Init();

for(uint8_t blockIdx=0U; blockIdx < EEP_TOT_NUM_BLOCKS; blockIdx++)
{
EEP_vWriteEepDataCyclic();
}

boFlag_SystemInit_Done = true;

while(true)

{

....

}