Gentlemen,
I'm on a Windows 7 64-bit PC, developing code for an AM3358 on the AM335x Starter Kit, using CCS Version: 6.1.2.00015, and have recently installed Processor SDK RTOS AM335x v2.00.02.11, and SYS/BIOS 6.45.01.29 (installs with the PDK) released just about a week ago or so, and I am using XDCtools 3.32.00.06.
I am doing some test projects in order to get up to speed with TI-RTOS (SYS/BIOS with the PDK).
My adventure today started with setting up the functional clock to Timer3 with a 24 MHz input clock instead of 32KHz clock, so when the start-up code went to check that the frequency was correct, it called Error_raise() on line 1147 of XDCtools runtime library Timer.c file, and ended me up (in the debugger) looking at the fact that I had hit the _exit() function and could not tell how I got there.
I pulled in the Startup.c and Error.c files into my project so I could step through them, and this is how I found it was calling the Error_raise() function. This took a while. And while I know how to fix the problem that got me there (the 32 KHz clock for the timer, and I have no problem doing this), I could not help but notice this VERY IMPORTANT FACT: Error_raise() appears to have been meant to present me with a VERY HELPFUL ERROR MESSAGE and I didn't get it!
And THAT is what I am pursuing with this E2E posting.
Error_raise() eventually calls System_printf() with a nice error message indicating EXACTLY what went wrong. But despite study and pursuing this for over and hour now, I have not been able to see this error message. Nor have I been able to get System_printf() (or just printf()) to work under any circumstances, and I'm hoping you can tell me what I'm doing wrong.
(Project attached. 3835.10_LEDBlink_SK_Clk.zip )
The instructions in the SYS/BIOS User's Guide (section 3.3.2) for using System_printf() seem VERY clear to me! Use SysMin, I have set a 1024-byte buffer, and I have set a stop point (halting the processor), wherein it is my understanding that this is supposed to flush the buffer to the CCS Console. But I have no messages (after having executed several System_printf()'s), and have checked all 3 Console windows, and none of them contain any hints of the System_printf() messages.
Help!
(I know this is going to GREATLY aid and speed up development, since if I HAD RECEIVED the helpful message from the Error_raise() earlier, it would have only taken me 2 minutes to fix the problem! Now I CAN fix the problem, but I want to fix the fact that I didn't get the error message first, so I can take advantage of the (apparently) excellent error/diags system that is built into the SYS/BIOS!)
Kind regards,
Vic