AM13E23019: AM13E23019 debug breakpoint failure

Part Number: AM13E23019
Other Parts Discussed in Thread: LP-AM13E230, , CCSTUDIO

Hello TI

I am having some issues with testing the AM13E23019 SDK 3sh motorcontrol example. I am running the LP-AM13E230 and I am getting mixed/random results in setting breakpoints in the code, where most of the time the microcontroller wont break on breakpoints set in the code, no matter where in the code it is set. I have tried in interupt routine which I know run, in the main loop and more. I am able to stop execution, restart it and such, and I am able to see where in the code it is at any moment, including areas where the breakpoints exist, but it is not breaking most of the time. Reflashing it sometimes fixes for a short while until it doesnt again. 

I am running CCstudio on windows 11 where I have tried CCstudio 21.0.1 and 21.0.0

Thank you

  • Hi Simon,

    Can you check the project properties to see if optimizations are on? Right click on project name >> Properties >> Arm Compiler >> Optimizations. Where exactly are you trying to add breakpoints? Some C files in the SDK are precompiled (.lib files) with optimizations on as well. If you try to break at a line that was optimized out, it won't let you since the code doesn't actually exist on the device.

    Best Regards,

    Delaney

  • Hello Delaney

    The checked optimisation flag was -g, so optimisation for debugging. I tried also by turning off optimisation with -0 flag but no change in the behaviour.

    The default baudrate in the example for UART comm port communication is 9 200 000 which is very high, so thinking that it might occasionally saturate the shared USB line I lowered it, but no effect.

    I can see that the code is properly running that segment because by share luck I can stop it there by manually halting the repeatedly. So not sure what is going on.

    BR

  • Hi Simon,

    I will reply back again early next week.

    Best Regards,

    Delaney