Dear Community,
QUESTION - Using a script (javascript or gel or something else) is there a way to set the PC (Program Counter) to the start of an arbitrary function? I need this to assist my performing unit tests. I want to automate my unit tests as much as possible and if I had a script then I could repeat it and I would use it to set variables and report the results of variables. If I must manually use CCSv4 to set the PC is it possible to have a script at least bring up the source for an arbitrary file, thus speeding up the manual processing of setting the PC?
BACKGROUND:
I'm having to write unit tests for my code, a necessary evil. My application runs on a F28335 and is using using DSPBIOS 5.40 and using CCSv4. Anyway it has several tasks that pending on data which will arrive when the chip is part of the larger system. Meanwhile I'm using an ezDSP F28335 board to "prove" the code works at a unit level. I tried to get Parasoft's C++Test to run on this board but discovered (after much wasted time) the runTime was much to big to fit within the maximum 0x4000 stack (they recommended 0x9000!)
Because the programs tasks are pending on data that will never arrive the fastest way I know to overcome this (without changing the program) is to force the program counter to the first line of executable code within the function that I need to unit test. I'd like to use javascript to automate the process but I'd be willing to use gel if necessary.
Thanks