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.

EK-TM4C1294XL: Unable to load program with Ubuntu 21.10

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: TM4C1294NCPDT

I have an eval board I am trying to program while working from home.

In the office I have a windows machine, which works just fine.  Now that I'm on a linux box, I cannot seem to load the program on the eval board.  I get the error:

CORTEX_M4_0: Can't Initialize Target CPU: Failed to open COM14 at 9600 baud: open: No such file or directory

So far I can't seem to find any way to check if I can even communicate with the eval board.

Any ideas and suggestions are appreciated.

  • Hello Vince,

    Is the Stellaris ICDI interface installed properly for Linux to see the LaunchPad?

    I'm not really familiar with how Linux works for that, but you'd need to be able to access the COM port first which on Windows has required specific drivers.

    We provide them here and maybe that will help: https://www.ti.com/tool/STELLARIS_ICDI_DRIVERS

    I can try and look for other topics like this tomorrow if it doesn't as I have limited experience with Linux and our LaunchPads but surely we've answered a question like this before.

    Best Regards,

    Ralph Jacobi

  • I get the error:

    CORTEX_M4_0: Can't Initialize Target CPU: Failed to open COM14 at 9600 baud: open: No such file or directory

    In the CCS Target Configuration .ccxml for the project, under the Basic tab can you check if the Alternative Communication has a Com Port shown. If a Com Port is listed for the Alternative Communication use Delete so the UART selection is empty:

    With CCS under Linux, I found that if you select to Add an Alternative Communication then adds COM14 by default, which isn't the name of a valid UART port under Linux, which then leads to a "ComPort: Can't Initialize Target CPU: Failed to open COM14 at 9600 baud: open: No such file or directory" error attempting to start a debug session.

  • I was able to get rid of the UART port, but now it doesn't seem to do anything when I hit Debug.  The CORTEX_M4_0 doesn't seem to go anywhere.  Is it necessary to externally mount the Stellaris on board debugger? (I'm still attempting Ralph's suggestion above).  How do I tell CCS where to find the eval board?

    After reading your post, I realized I had no idea what the .ccxml file contained so I created a new one.  When I choose TM4C1294NCPDT in the list of devices it seems like there should be another submenu to choose.  I have the device selected, but the test connection button does exactly nothing from all outward appearances.

  • Today I was able to flash the MCU using openocd.

    I now know that my computer and the eval board can communicate, but I still cannot seem to flash the MCU in CCS.

    When I debug, I'm no longer getting the popup, but a new trail to follow in the command window:

    Stellaris In-Circuit Debug Interface_0/CORTEX_M4_0 Error:Disconnected.

    Funny thing though.

    I right clicked that line to try to copy & paste...  and I had the option to connect.  It now works...  somehow.