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.
Environment: Ubuntu 12.04 64bits, CCS 5.3.0.00090, XDS100v2, AM335x EVM board
I was using the CCS in Windows and everything worked fine. Since I installed a Linux distribution on my machine things are not so great as they ware for my kernel debug.
I follow this configuration to set up the debug session: http://processors.wiki.ti.com/index.php/GSG:Debugging_projects_v5
But when I try to launch it, two errors appear in the console window (on the bottom):
IcePick_D_0: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.0.872.0)
CortxA8: Trouble Reading Register CPSR: (Error -1044 @ 0xFFFFFF66) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.0.872.0)
And the debug view tells me that the CortexA8 is In Reset
I searched for a solution and found this post, which btw that didn't help much: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/160264.aspx
The connection test between the board and my target configuration file works just fine and at the end it tells me that The JTAG DR Integrity scan-test has succeeded.
I'm kinda lost here. Apparently, I'm using the same configurations that used to work on windows, so I'm thinking this could be a permission problem with some file(s) that CCS uses.
Can anyone share some thought of how to overcome this problem?
Thanks in advance.
Davi
Davi,
I will get an AM335x EVM to probe this further, but let me confirm something: are you trying to connect to the A8 core with Linux running on the target? If so, can you see if you are able to connect to the A8 before it boots Linux? Some kernel versions disable the JTAG emulation capabilities and the emulator may be reporting this failure.
Apart from that, can you try to connect and inspect the status of the cores using the internal ICEPICK JTAG router? Check the thread below:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/195554/699454.aspx
I will get a working system with an EVM tomorrow to try this out.
Hope this helps,
Rafael
Davi,
I was able to successfully connect to my AM335x EVM board with a XDS100v2, therefore ruling out any possible pre-existing bug. In installed CCS as sudo to /opt and I am running as a regular user.
I also tried to connect while it was running the pre-built SDK image, but obviously Linux may get in the way depending on how it configures the JTAG channel.
One remark: if you are booting Linux, make sure you are not using a GEL file.
Apart from that I am not entirely sure what may be happening; the Test Connection button reassures the JTAG signal integrity is ok, therefore the issue is reported by the ICEPICK (the internal JTAG router) and the core itself - it is preventing access to one of the core registers (in this case the CPSR).
I will try to think of additional ideas and report back what I find, ok?
Regards,
Rafael
I reinstalled the program using root permissions and now I can debug the board almost normally.
When I first run the debug session, a couple of error occurs, but if I select the Disconnect Target option and then Connect Target everything woks. This happens every time I open CCS... The errors are:
CS_DAP_DebugSS: Error: (Error 912 @ 0x0) Internal error: Invalid error code. Restart the application. If error persists, please report the error. (Emulation package 5.0.872.0)
CortxA8: Trouble Reading Memory Block at 0xc001cbd0 on Page 0 of Length 0x15: (Error -1044 @ 0xFFFFFF66) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.0.872.0)
I'm not sure if when I removed the program, before installing it again, I left something behind, but it doesn't really metters for me now.
Thank you for the help!
Davi