Other Parts Discussed in Thread: SYSBIOS
Tool/software: Code Composer Studio
I am having difficulty debugging my A15 ARM applications.
I have a couple of projects in my work space. CCS7.2. All the target configurations and GEL files I use for my EVM are the same.
The first project is a simple Hello World. From a cold start (everything disconnected and not powered up, CCS not running), I start everything up, launch the target config, load the GEL and connect arm_A15_0. I than Run→Load my test.out. It runs, hits my break points. All is good.
Question is, how to I properly terminate and then restart/debug? If I hit the red Terminate and then try to debug again using the debug Bug button, the core says it is running but nothing happens. Debug window says the core is (Running). I either need to r-click the core and Relaunch or hit the Bug a second time. I’m prompted with message that current debug session needs to stop and I agree. A new debug starts and I am then able to debug again seemingly fine.
I don’t mind all of the above but my next project is the NIMU_emacExample_EVMK2H_armBiosExampleProject. The first time I run it from a cold start it works. I can ping it and do the udp echo from the supplied winapp test application testudp.exe (it runs until fails: testudp: failed on size 1455). I can pause, debug, etc. All good. But if I terminate using the red Terminate CCS button and try to restart (using the Bug), Debug shows arm_A15_0 as ‘Disconnected’ (but the red terminate button is again available?). Sometimes I’ll hit the Bug again, get the warning about needing to terminate, say yes and then it will reload but the session terminates at
No source available for "do_AngelSWI(int, void *) [C:/ti\pdk_k2hk_4_0_6\packages\MyExampleProjects\NIMU_emacExample_EVMK2H_armBiosExampleProject\Debug\NIMU_emacExample_EVMK2H_armBiosExampleProject.out] at 0x80088cb8"
and the debug window shows:
“[arm_A15_0] ti.sysbios.family.arm.gic.Hwi: line 1200: E_undefined: Hwi undefined, intnum: 211
xdc.runtime.Error.raise: terminating execution”
After the above, it acts like the HelloWorld I first described. I can terminate (Red button) and then start another Debug session (Bug button) and every other time I hit breakpoints and can debug. HOWEVER: it the NetworkIPAddr() callback will never again get called. I can never ping it again. I have to reset the EVM before it will work again.
Sorry for the vagueness of this post but it is not a very repeatable sequence other than I don’t understand how to stop and restart a debug session without having to go through a EVM reset each time for the network example.
Mike
