For automatic tests I need to be able to load an application into flash memory and then run the application from there. Since the test is automatic, everything must be controlled from the command line. I have managed to use Debug Server Scripting for loading the NANDWriter_DSP application in RAM. This application then receives the application under test from the PC. This works fine and I have verified that my application is indeed stored in Flash. However, I haven't been able to reset the target after flashing. from CCS, this does work. After flashing, I reset the target by clicking Run->Reset->System Reset. The DSP seems to do a Power On Reset, and my application boots and runs. I have tried to do the same with DSS, but I have not succeeded.
I started with the example script LoadProgram.js. After opening a session I perform the following actions
debugSession.target.connect();
debugSession.memory.loadProgram( programToLoad );
debugSession.target.run();
debugSession.target.waitForHalt();
resetType = debugSession.target.getResetType(1);
java.lang.System.out.println(resetType.getDescription()); // This line and the next indicate that 'ResetType 1' is indeed 'System Reset'
java.lang.System.out.println(resetType.getName());
resetType.issueReset();
debugSession.target.reset();
debugSession.target.disconnect();
Unfortunately, the reset does not occur.
- What is the difference between resetType.issueReset() and debugSession.target.reset()?
- DSS manual says resetType.issueReset is executed asynchronously. How can I wait until the reset is done? I have inserted a sleep of 10 seconds, but it didn't help
- My target configuration file (.ccxml) has options for reset modes that I don't understand and have not been able to find information about. They are related to the EMU0 and EMU1 pins on the JTAG header. What are these options and how do I use them? Do I need to configure these options in order to do a Power On Reset via JTAG?
- JTAG nTRST Boot-Mode
- Power-On-Reset Boot-Mode
My setup is as follows
- CCS6.1.3
- TMS320C6748 on LCDK6748
- XDS100v2
Any help is much appreciated