Tool/software: Code Composer Studio
Hello,
I am booting from external flash on a C6727. In the external flash I have a basic DSP/BIOS program that kicks off a task to blink an LED on our development board. This is working just fine, but, when connected through CCS3.3, I do not seem to get any (reliable) STDOUT output.
I am running a C++ program and have included the <cstdio> header file. I've also tried it with the stdout.h header file. I have also increased my stack size and heap size for the program by a few magnitudes to make sure I have a large amount of memory in the case that printf might be failing silently.
Strangely, when I put a break point on calls to printf, they just get skipped over and the processor never hits the break point. Could this be an indication that something is missing?
Do I need symbols to be loaded to properly get data sent to STDOUT printed in CCS3.3? Otherwise how would the debugger know where the _CIOBUF_ is located?
Also, bonus question: I actually have two programs stored in flash. When a variable in the first program is set, it will load a secondary program into internal RAM (note that the first program is completely stored in our external SDRAM off the EMIF bus). I also have had trouble getting prints out from this second program, even after loading the symbols for this second program. Is it even possible for the debugger to locate a new _CIOBUF_ and properly get the prints from a second program? If so, is there some tips I need to do or CCS settings I need to change?
I know this is a lot of information, but I'm just wondering if there's really any secret to getting printfs to work reliably when booting from external flash.
Thanks,
Vincent Galbo