Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: Tiva program created with CCS v6 using GNU compiler doesn't reach main

$
0
0

[quote user="Chester Gillon"]I can repeat that, but trying to step over the printf in main causes a crash.[/quote]

I'm afraid the support for using printf with GCC on TivaC doesn't appear to be there yet.

[quote user="Chester Gillon"]The CCSv6 CCS 6.0 tm4c123gh6pm.gel is supposed to performing a System Reset upon connection for the reasons in http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/337557/1181710.aspx#1181710. Therefore, not sure why a manual System Reset makes a difference.[/quote]

The System Reset is curretly being done on connect. What appears to be required is a System Reset after loading the program. I can't really explain yet why this helps(there is probably some initialization missing or not happenign correctly somewhere) , but doing a System Reset after the Program Load seems to help. Then you can do "Go Main" and run your code from there. I would recommend removing printfs from the code and also set a breakpoint at the exit point. There seems to be some issues with how exit code is handled as well as simply letting the program run ends up in FaultISR as well. But if I create a simple main program that just prforms some variable operations and perform the above manual steps and set a breakpoint at the end of main to stop the code, it seems to execute ok.

I'll raise this with the Tiva folks and see what we can do to address these issues.


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>