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.
With CCS 6.1.0.00104 running under CentOS 6.5 64-bit, was attempting to use a Segger J-Link with J-Link support v0.1.0.4 to debug a EK-TM4C1294XL.
However, CCS is repeatably crashing when attempt to start a debug session. From the progress indications prior to the crash the target is successfully programmed.
Attached is a CCS crash dump file and Debug Server log for a crash.
The Segger J-Link and EK-TM4C1294XL are OK, since can use with with CCS 6.0.1 under Windows 7 with the Windows J-Link support v0.1.0.5
[The latest version of J-Link support for Linux is v0.1.0.4 and for Windows is v0.1.0.5, which is the reason for the different versions used]
Further investigations with the same software installation and a EKS-LM4F232 board:Chester Gillon said:With CCS 6.1.0.00104 running under CentOS 6.5 64-bit, was attempting to use a Segger J-Link with J-Link support v0.1.0.4 to debug a EK-TM4C1294XL.However, CCS is repeatably crashing when attempt to start a debug session. From the progress indications prior to the crash the target is successfully programmed.
a) If the device is set to LM4F232H5QD in the .ccxml file then can successfully debug with the Segger J-Link under Linux.
b) If the device is set to TM4C123GH6PGE (the Tiva replacement part for the Stellaris LM4F232H5QD) then CCS crashes when try and debug using Segger J-Link under Linux.
Therefore, the crash appears sensitive to the type of device selected.
Comparing the CCS 6.1 ccsv6/ccs_base/common/targetdb/devices/tm4c123gh6pge.xml and ccsv6/ccs_base/common/targetdb/devices/lm4f232h5qd.xml shows a difference is that following section is only in the tm4c123gh6pge.xml:Chester Gillon said:a) If the device is set to LM4F232H5QD in the .ccxml file then can successfully debug with the Segger J-Link under Linux.b) If the device is set to TM4C123GH6PGE (the Tiva replacement part for the Stellaris LM4F232H5QD) then CCS crashes when try and debug using Segger J-Link under Linux.
<!-- Additional core registers --> <instance href="../drivers/cortexM4_fpu.xml" xml="cortexM4_fpu.xml" id="FPU" xmlpath="../drivers/" baseaddr="0x00000000" endaddr="0x00000000" size="0x00000040" accessnumbytes="4" permissions="p" />
As an experiment, commenting out the reference to cortexM4_fpu.xml from the tm4c123gh6pge.xml didn't prevent the crash using Segger J-Link under Linux.
Trying again with CCS 6.1.0.00104 under Linux with J-Link support v0.1.0.4 and a LM3S8962.desouza said:In my case, selecting the LM4F232H5QD device did not work as well - I am very surprised it worked for you.
If simply try and start a debug session, CCS crashes (in 5 out of 5 attempts).
The alternative sequence to start a flash download and debug session seems reliable (5 out of 5 attempts have worked so far):
a) In the "Projects" folder of the Target Configurations view locate the .ccxml file for the project.
b) In the Target Configurations view right-clock on the .ccxml file and select "Launch Selected Configuration".
c) In the Debug view right click on the "Segger J-Link Emulator_0/CORTEX_M3_0" and select "Connect Target"
d) Use the Run -> Load -> Load Program menu and select the .out file for the project as the program file. This loads the program into flash and runs to main.
e) You can now successfully debug the program.
Out of interest, is the source code for the J-Link Emulator Support available if users want to try and help debug / improve the J-Link Emulator Support, or is the source code proprietary to TI and therefore not available?desouza said:The fact it happens to work in certain scenarios (it works in my Windows release for certain devices) must be considered a happy coincidence...