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.

TM4C123FH6PM: Arm-based microcontrollers forum

Part Number: TM4C123FH6PM
Other Parts Discussed in Thread: SYSBIOS

Hi,

I'm working with the Tiva RTOS and I'm having issues debugging the project. Please find below the terminal messages and the ROV information.

The weird thing is that even if I get that error ROV if I flash the firmware directly I works fine. I need to debug it since I'm still developing the code.

Thanks in advance!

ti.sysbios.family.arm.m3.Hwi: line 1095: E_hardFault: FORCED
ti.sysbios.family.arm.m3.Hwi: line 1207: E_usageFault: INVPC: Invalid PC
ti.sysbios.family.arm.m3.Hwi: line 1172: E_busFault: IBUSERR: Instruction Access Violation, address: e000ed38
Exception occurred in background thread at PC = 0x00011c81.
Core 0: Exception occurred in ThreadType_Task.
Task name: {unknown-instance-name}, handle: 0x200054c4.
Task stack base: 0x20000400.
Task stack size: 0x400.
R0 = 0x20006340 R8 = 0xfffffff1
R1 = 0x2000631c R9 = 0xffffffff
R2 = 0x0000000a R10 = 0xffffffff
R3 = 0x00000000 R11 = 0xffffffff
R4 = 0x20005b18 R12 = 0x00015125
R5 = 0x00000020 SP(R13) = 0x200062b4
R6 = 0x00000015 LR(R14) = 0x2000631c
R7 = 0x00000001 PC(R15) = 0x00011c81
PSR = 0x01000000
ICSR = 0x00425003
MMFSR = 0x00
BFSR = 0x01
UFSR = 0x0004
HFSR = 0x40000000
DFSR = 0x00000000
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...

  • Hi

    The weird thing is that even if I get that error ROV if I flash the firmware directly I works fine. I need to debug it since I'm still developing the code.

    Can you elaborate more on this? Are you saying after you flash the code, the program will run in non-debug mode. Only when you are in debug mode will you see the error? Per your ROV, it doesn't seem to have a stack overflow issue. Please make sure the modules that you are trying to access are first enabled. You can get a bus error if you try to access a module that is not enabled. Please also try to increase the heap memory. Will that make a difference?

  • Hi Charles,

    Yes the program runs fine in non-debug mode, I only get the error when I try to debug it.

    You mean enabled on the .cfg file? Where do you enable the modules?.

    I increased the heap memory and still having the same issue.

    Any other suggestion?

    Thanks in advance!!

  • Hi Stanley,

    Yes the program runs fine in non-debug mode, I only get the error when I try to debug it.

     - There are both ROV Classic and ROV in CCS. Do you see the same problem in both of them? I want to know if this is a tool issue. 

     - What CCS version do you have? If you try a different CCS (e.g. latest CCS) will it make a difference?

     - What TI-RTOS and XDCtool versions are you using? Please make sure you use only the below highlighted versions for TM4C MCU and not higher.  If you change to those versions, does it make a difference?

    You mean enabled on the .cfg file? Where do you enable the modules?.

    - If you don't have a problem in non-debug mode then the problem is not related to modules not enabled before using them. You should be fine on that. Same for the heap size. 

    - Does the problem occur on any TI-RTOS programs you have? Or just the specific program you are currently running? Can you try a few TI-RTOS examples and see if the problem goes away? On your existing program, does it make a difference if you strip down the code piece by piece until you stop seeing the problem? I just wanted to see if the debug error is code dependent. 

  • Hi Charles,

    Thanks for the prompt reply. So these are the results from your suggestions:

    1. I'm only able to use the ROV classic. For some reason the ROV doesn't load any data.

    2. I updated CCS and still having the same issue.

    3. I noticed I was using the 3.32.0.22 version of XDCTool, but even after changing the version to XDCTool 3.22.0.06, it's doing the same on debug.

    4. I tried 2 example codes for the TI-RTOS for Tiva and also got the same error.

    Any other suggestion?.

    Best regards,

    Stanley

  • Hi Stanley,

      I assume you bring up ROV after you run the program. Is that correct?

      Which debug probe do you have? Can you try another debug probe? 

      Can you also tell me which TI RTOS example did you try? Please show me the screenshot of the error. I have not seen anyone report the same issue when running the stock example. I want to try it myself to see if I can replicate the same thing.

      One last question is if you can replicate the problem on all the boards you have?

  • Hi Charles,

    After testing and trying different settings I was able to get the example projects working.

    Then I reviewed the configuration on those projects and noticed that the Compiler Version was different.

    After changing the Compiler Version on my project to TI V20.2.5.LTS the debug section is now working.

    Thanks for your support.