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.

CCS/TM4C1294NCPDT: Rebooting issue when using SYS/BIOS and CanOpen

Part Number: TM4C1294NCPDT

Tool/software: Code Composer Studio

Hi 

I am encountering the TM4C infinite self reboots problem. My main() looks like the below :

I created another task which is started in Application_Init() and turns off the LED_HEARTBEAT.

The board will oscillate the LED when powered on and this looks like an infinite reboot situation. 

I looked around in the code but don't find any watchdog codes so doubt that it is due to watchdog.

int main(void)
{
board_variant_t board_variant;

// Call board init functions
board_variant = Board_init();

if (board_variant != BOARD_VARIANT_INIT)

{
// Initialise the Serial Debug module
SerialDebug_Init();
}

// Initialise the Non-Volatile Memory Data Manager
NvmMgr_Init(board_variant);

// Initialise the CANopen stack
CANopen_Init();

// Initialise the Enumeration Task
Enumeration_Init(board_variant);

// Initialise the Application
Application_Init(board_variant);

GPIO_write(LED_HEARTBEAT, LED_ON);

// enable CPU interrupt
MAP_IntMasterEnable();

System_flush();

// Start BIOS
BIOS_start();

return (0);
}

  • Hi Ronnie,

    You should not be calling MAP_IntMasterEnable. The kernel manages the vector table, so you should not be calling this API or similar APIs (and definitely not IntRegister). 

    Do you see this behavior when you use CCS to load and run the target. CCS disables the WD, so if it working fine there, but not on a power cycle, it's probably the WD. If that is the case, explicitly disable the WD.

    Can you remove the CANopen call also? Does this change the behavior. 

    Todd

  • Hi Todd

    Thank you for advising to remove MAP_IntMasterEnable. 

    I did give it a try and rebuild the binary but the problem remains the same.

    I did something different today and redo the project using a fresh pull from Git.

    This time, the auto rebooting seems to go away. :)

    I did felt like spending some time looking for the root cause but I doubt I have the time and resources to do so.

    Please consider this case is closed. Thank you.

  • Hi Ronnie,

    Sounds good. If it pops back up, just post a reply to this thread and it will be re-opened. If this one gets locked (happens after 2 weeks), just open a new thread.

    Todd