Part Number:EVMK2G
Tool/software: TI-RTOS
Hello!
I am extending the usb driver code that came with the k2g pdk code so that I can plug in a usb MIDI controller device to the board. The version of the pdk I am using is 1.0.7.
When I add printf statements to the usb driver code, the code that was cloned from pdk_k2g_1_0_7\packages\ti\drv\usb, my program crashes if I use formatted strings like this:
printf("Here is a value: %d!\n", value); // This prints the string to the console and then crashes
My program prints to the console as expected: "Here is a value: 0!" and then crashes.
It works fine if the the string is not formatted with an argument. This works fine without crashes:
printf("Here is a string, no values!\n"); // This works, no crashes!
I am building the usb code outside of ccs, using gmake. My main code that links the usb library is built with ccs and printf works as expected. I am wondering what is causing this behavior. Is the usb code using a different printf function? Is there a memory access issue going on? How can I tell?
Thanks for your help!
Andrew