Other Parts Discussed in Thread: LMFLASHPROGRAMMER
Hello. I'm starting out with the Stellaris Launchpad, and after making the LEDs blink I wanted to play with USB a bit.
- I was able to install and run CCS,
- I loaded the usb_dev_bulk code and was able to compile everything without errors or warnings.
- The code loaded into the Launchpad, started executing ('Initializing USB' appeared on the UART) but then hung.
- Step-by-step seems to indicate the hanging occurs in USBDBulkInit(0, (tUSBDBulkDevice *)&g_sBulkDevice);
Stepping into the function, the parameter pfnCallback seems to be 0.So, there shouldn't happen anything really. Still, the code seems to hang every time I run it.
Update: The fact that the program stopped at the mentioned line, was just because there was a breakpoint there. In fact, each time an error was produced: '_c_int00 does not contain frame...'
From many pages consulted, it seems this vector has to be initialized. Checking the .map file, I see:
ENTRY POINT SYMBOL: "_c_int00" address: 0000045d
and
.intvecs 0 00000000 0000026c
00000000 0000026c lm4f120h5qr_startup_ccs.obj (.intvecs)
How can this error occur? Do I have to execute some command to assure _c_int00 gets initialized at run-time?
Thanks on beforehand.