I have been using the Debug configuration to develop my code. Now I am ready to test it in the Release configuration. So I switched the configuration from CCS GUI. Now the code does not run after downloading. Please advise. Thank you.
Jonathan
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.
I have been using the Debug configuration to develop my code. Now I am ready to test it in the Release configuration. So I switched the configuration from CCS GUI. Now the code does not run after downloading. Please advise. Thank you.
Jonathan
Hi Todd,
I am using CCS V6.1.2 and TI-RTOS for TivaC version 2.14.0.10 according to RTSC. I am using the TM4C123 on a custom board with the LaunchPad as my JTAG debugger interface.
I set a breakpoint at the beginning of main() and the code does stop there. There aren't any crash messages. But the code does not perform what it should be doing, judging from the LEDs (GPIOs).
Upon further investigation, it appears that the code is stuck in this while loop waiting for the tick to go up. the clock_tick_ISR is a RTOS Clock instance.
void clock_tick_ISR (void)
{
//GPIO_write(Board_TP3, Board_LED_ON);
tick_count++;
//GPIO_write(Board_TP3, Board_LED_OFF);
}
// delay in 100mS
void rtos_delay (int delay_time)
{
tick_count = 0;
while ( tick_count < delay_time ) <<---- Code is stuck here.
{
}
}
Regards,
Jonathan
I think there is probably a bug in your code that the optimizer is exposing. It would be good to track it down because it will eventually come back to haunt you. I agree with Norman to crank up the compiler warnings to the max and make sure you have them all resolved.
Todd