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.

TMS320F28379D: Program is halted after serial data sending or receiving.

Part Number: TMS320F28379D


I have made a structure program in dev C++ compiler and the code works. After that i have used same code with slight modification in CCS. after debug section and running the code, the program is halted and showing the illegal interrupt.

the code is below for the reference.

typedef struct{
char substrings[MAX_SUBSTRINGS][MAX_SUBSTRING_LENGTH]; // Array to store substrings
int count; // Count of substrings
int lastSubstringFlag; // Flag indicating the type of last substring
char lastSubstringPart1[MAX_SUBSTRING_LENGTH]; // First part of the last substring
char lastSubstringPart2[MAX_SUBSTRING_LENGTH]; // Second part of the last substring
int lastSubstringPart2IsNumber; // Flag indicating if the second part is a number
char lastSubstringPart2String[MAX_SUBSTRING_LENGTH]; // Second part as string if not a number
int lastSubstringPart2Number; // Second part as number if applicable
} ControlData;

ControlData string;

ControlData storesubstring(char* inputString);

ControlData processString(char* inputString)
{
// ControlData string;
sprintf(Reply_String, "String after semicolon tokenize : %s\n", inputString);
printMsg(Reply_String);
string.count=0;
return string;
}

  • Hello,

    I have some questions to help try narrowing down the issue:

    • Does the code build without any errors or warnings?
    • Can you try stepping through the code to try and isolate where the exact error is occurring?
    • Have you verified no ASSERT conditions from driverlib are failing?
    • Based on your code it looks like you have some arrays, at any point are these arrays being indexed out-of-bounds?
    • Is the code executing from RAM or Flash? If in Flash, have you tried executing the code from RAM?