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.
Tool/software: Code Composer Studio
Several of us in the TivaC forum are having trouble getting the TI-RTOS demos to work using a Segger J-Link.
Please see this thread: e2e.ti.com/.../2379267
Basically, when using an XDS100v2 or the Stelaris ICDI, we are able to program and debug successfully, but with the J-Link, TI-RTOS crashes immediately after trying to start the first task with console output along the lines of this:
DFSR = 0x00000001
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...
It was suggested to post on this forum since they haven't had much luck replicating the problem over in the other forum.
Can anyone shed some light on this or suggest a fix?
Thanks,
Nick
Nick,
I found the same scenario as you, but I noticed the code is inheriting some pre-initialized hardware that corrupts its normal execution - in other words, the code requires the device to come from a clean reset to execute properly.
Please check the video below. When I first attempt to load code it fails with some error. I then disconnect the core, perform a HW reset (off screen) on the board and reconnect - the program is running normally.
I then close the debug session and retry. The error you mentioned is shown. I then disconnect --> HW Reset --> Reconnect and the code is fine.
After that I enable the option "Reset the target on a program load or restart" and subsequent code reloads work fine.
The differences between the Debug Probes may be due to the way this reset is handled.
Hope this helps,
Rafael