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.

TM4C1292NCPDT: Debug session execution terminates immediately

Part Number: TM4C1292NCPDT

Hello,

I'm trying to launch the 'Debug' session for my project but instead it terminates and shows the following in the console.

I'm connecting it with 'Stellaris In-Circuit Debug Interface' and the connection is fine.

Another point is why I'm not able to set Debug points at some specific locations. It shows the following pop-up when I ty to set a Debug point.

Please provide help in these steps.

Best Regards,
Kiranjit

  • Hi,

    I'm trying to launch the 'Debug' session for my project but instead it terminates and shows the following in the console.

    It seems like you are using TI-RTOS. Is that correct? Normally, a hard fault can be attributed to two most often seen issues. First is that you are trying to access a peripheral without first enabling the peripheral. Make you all the peripherals that you want to use are enabled first before you access (read or write) any peripheral registers. Otherwise, the peripheral will generate a bus fault. The second most often seen issue is that you don't have sufficient stack and heap. They can create memory faults. Try to increase the stack and heap and they normally will resolve the issue. 

    Another point is why I'm not able to set Debug points at some specific locations. It shows the following pop-up when I ty to set a Debug point.

    What is the location? Please note that the processor only support up to eight hardware breakpoints. If you exceed that you may get that error message. I have seen that before. Sometime, you might have setup some breakpoints and later power cycle or reset the device and these message may pop up. I will suggest you remove all the breakpoints and set new breakpoints again after a power cycle to see if that fix the issue. If you still see issues on setting breakpoints then I will need to forward your question to our CCS experts.  

  • Hi Charles,

    t seems like you are using TI-RTOS. Is that correct? Normally, a hard fault can be attributed to two most often seen issues. First is that you are trying to access a peripheral without first enabling the peripheral. Make you all the peripherals that you want to use are enabled first before you access (read or write) any peripheral registers. Otherwise, the peripheral will generate a bus fault. The second most often seen issue is that you don't have sufficient stack and heap. They can create memory faults. Try to increase the stack and heap and they normally will resolve the issue.

    Yes I'm using TI-RTOS and enabling the peripherals before using them as shown

     Also, I've increased the Heap Size to "65536" and Set C system stack size to "8192".

    Despite the above, my 'Debug' session terminates execution immediately still.

    What is the location? Please note that the processor only support up to eight hardware breakpoints. If you exceed that you may get that error message. I have seen that before. Sometime, you might have setup some breakpoints and later power cycle or reset the device and these message may pop up. I will suggest you remove all the breakpoints and set new breakpoints again after a power cycle to see if that fix the issue. If you still see issues on setting breakpoints then I will need to forward your question to our CCS experts.  

    One of the addresses for the breakpoints I'm trying to set is 0x556e.

    Also, I had only set 4 breakpoints but I'm still not able to set another breakpoint.

    Hope you can help resolve this issue.

    Best Regards,

    Kiranjit

  • Hi,

      Since you are using Port Q for SSI3, did you also enable Port Q as in  SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOQ)?

  • Hi Charles,

    Yes I'm initializing the GPIO first, then enabling all the GPIOs and after that enabling and initializing all my peripherals used in the code.

    Hope this is clear from above.

  • Hi,

      Can you put a breakpoint after Board_initSPI()? Will you get any faults? Or the faults will only come after you start the scheduler?

  • Hi,

    I'm unable to set more than 4 breakpoints

  • Hi,

      Can you show your breakpoint window? How many breakpoints do you currently have? Can you at least remove one of them so you can put a breakpoint after Board_iniSPI(). What I use also suggest if you can run some existing SPI examples from TI-RTOS and can you put more than 4 breakpoints and do you see any faults? If you can use the SPI example as a starting point and gradually add your additional features, when will you start to see faults? This will be easier to debug. 

      This app note will be helpful for diagnosing faults. https://www.ti.com/lit/pdf/spma043

  • I don't know where to find the working SPI example

  • Hi,

      You can find an import TI-RTOS SPI example from Resource Explorer within CCS. In CCS, first to go 'View' -> 'Resource Explorer' and navigate to the SPI example. See below. 

      

  • Hi

    My resource explorer works offline

    When I check the web for software update through the given link,that webpage is no longer accessible

    Kindly help

    Thanks,

    Kiran

  • Hi Kiranjit,

    Charles may be getting to this point: Do you have any interrupts or IRQ handlers configured as tasks? He can easily help you from there if yes is the answer. 

  • When I check the web for software update through the given link,that webpage is no longer accessible

    What version of CCS do you use?

    I will suggest you download and install the latest CCS version if you have an older version currently. 

    After your new CCS version is installed and running then:

      1. open Resource Explorer.

      2. On the upper right with the three bars, click it and select Package Manager

      3. You should see a list of packages. Look for TI-RTOS for TivaC and then click on the right arrow See below. 

      4. Click the box and click the 'Apply'.

      5. Once you do that you should find all TI-RTOS examples in below directory starting at Arm-base processors although it should start under Arm-based microcontroller to be more precise of TM4C's association with microcontrollers than processors. 

      

  • I'm using CCS v7,I cannot install the latest version for now as the client's existing project is in v7.

  • I will forward your question to our CCS experts. 

  • When I check the web for software update through the given link,that webpage is no longer accessible

    Kindly help

    Try using this repo link instead:

    https://software-dl.ti.com/ccs/esd/tirex/updates/tirex-3.7.0

  • Hi

    I'm unable to open this link 

  • I'm unable to open this link 

    This is not a link to be opened but instead to be used within CCS to specify an update site. Please see the below document for more details:

    https://software-dl.ti.com/ccs/esd/documents/ccs_tirex_update.html

    Thanks

    ki