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.

TM4C1231H6PM: Not able to download code after integrating CMSIS layer and FreeRTOS.

Part Number: TM4C1231H6PM

Hi There,

We are using TM4C1231H6PM controller on custom board. Initially we have created an application and able to run the same on custom board. Then we integrated FreeRTOS with CMSIS RTOS2 and verified the integration using TI TM4C123GH6 EVK board. Then we tried to download the same FW into custom board(with TM4C1231H6PM). After successfully downloading, IAR stuck in not responding mode and then we did not able to download the FW on subsequent tries. We tried these on multiple board, but the issue is same. Now even old FW is not working for those boards. We tried to erase the memory using JFlash but the tool is not able to connect with CPU.

Can somebody help? 

MCU - TM4C1231H6PM

IDE - IAR 9.30

Debugger - J-link

  • Hi,

    Then we integrated FreeRTOS with CMSIS RTOS2 and verified the integration using TI TM4C123GH6 EVK board.

    I suppose when you say you verify the integration using the EVM, you actually successfully run the firmware on the EVM without a problem. Is that correct? Can you download the same firmware to the EVM board? If you can successfully download and run the same firmware to the EVM then your firmware should be fine. 

    Then we tried to download the same FW into custom board(with TM4C1231H6PM). After successfully downloading, IAR stuck in not responding mode and then we did not able to download the FW on subsequent tries. We tried these on multiple board, but the issue is same. Now even old FW is not working for those boards.

    Wanted to make sure your Jlink debug probe is not a problem. Do you have another debug probe? Can you download the firmware again using a different debug probe?

    What is in your latest firmware? Does your firmware do any of the below operations?

      - Enter low power mode such as deep-sleep or hibernate without a means to wakeup? A device is in hibernate mode has its clocks all turned off. It will not be able to connect to the debugger anymore.

     - Repurpose JTAG signals for GPIO. If JTAG signals are repurposed for GPIO then they can no longer take signals from the debugger. 

      - You disable JTAG via the BOOTCFG register.

    Can you show your JTAG interface on the schematic?

    I'm not faimilar with IAR but I suppose you can change the JTAG frequency. Try to lower the JTAG frequency. Can you still connect to the board?

    We tried to erase the memory using JFlash but the tool is not able to connect with CPU.

    I'm not familiar with this 3rd party tool Jflash. Please consult with the tool vendor 

  • Hi Charles,

    Thanks for the reply!

    The issue is resolved, actually it was problem from my side. I have configured external clock but crystal wasn't mounted on custom board.

    Dhaval.