Hi,
I have a small hardware test program (using Unity) that uses putchar to output the results of the tests. I would like to run these tests from the command line (NOT inside CCS).
When I use the commands:
debugSession.memory.loadProgram("../Debug/DSP28346_BoardTest.out");
bpExit = debugSession.breakpoint.add("C$$EXIT")
debugSession.target.run()
everything works well and I can see all the putchar() outputs.
However when I load the program into flash (I am using the DSP28346 with external SPI flash which I can write to and boot from) and then run the commands:
debugSession.target.reset()
debugSession.symbol.add("../Debug/DSP28346_BoardTest.out")
// Set a breakpoint at the end of the bootrom code because exit() is in RAM which is only loaded by the bootrom
var bp0 = debugSession.breakpoint.add(0x3FFA1E)
debugSession.target.run()
bpExit = debugSession.breakpoint.add("C$$EXIT")
debugSession.target.run()
This also runs to completion correctly however I see NONE of the cio/putchar output.
I have tried getStdOut(), getStdErr() which return empty strings and beginCIOLogging() which produced an empty log file.
Any info as to how to get it to work would be great.
Thanks
PS: I am running CCS 4.2.4.00033 on Vista using a Signum Systems JTAG-Jet emulator on the TMS320C28346 with SPI flash.