This is not entirely an Energia question, but I did not want to split it in two.
So I've imported my Energia sketch into CCSv6, and now having a hard time debugging it. But that may be because I am still thinking Java.
1. I would like to completely disable optimization, in the beginning at least. I don't care if a variable is never used, or a function is empty. I want it called. How do I do that? In compiler flags perhaps?
2. I don't want to completely disable interrupts, because I am doing UART. I just don't want to step through the interrupts. I want them to be done behind the scene. Tried different settings, did not seem to work.
3. I'd like my debug stack to look like stack (I mean, the Debug window). For instance, when a() calls b(), I'd like both a() and b() present in the stack. When b() is then interrupted (if it's interrupted), I want a(), b() and the ISR in the stack. Why is not it happening? Optimization?
3. my printf() is not working, because it asks me to define putchar(). I've googled it and seen it work in other versions of CCS I think..
4. My serial at high baud comes garbled, but I think that might be because serial interrupts are (sometimes) masked or lost while in another interrupt?
5. I'd like to evaluate a String, or a char*, as a string, in debugger. All I get is an array of characters.
Hmm, come to think of it, this is only marginally Energia.. sorry if this is a wrong forum.