I'm trying to get the virtual com port application supplied in the STM32_USB-FS-Device_Lib_V3.1.1 working using CrossWorks.
Now I got it to compile after a lot of searching and including the needed source and header files. Also it loads on the microcontroller without error.
When I try running it, Windows gives a notification about uknown usb device attached, and in the device manager VID and PID are 0000.
Using the debug capabilities from CrossWorks I found the following problem:
Somewhere in the initialization of the NVIC unit, the program jumps and tries to execute the code at 0x20000004. However this is data memory so it can't execute it and the program hangs.
To verify that it wasn't a problem with the debugger I'm using, I used the project files of Ride supplied by the library to compile a binary, and then load it on the microcontroller using CrossWorks and the debugger. Using this method the program runs perfectly.
Can anyone provide me with proper project files for Crossworks or tell me what I may be doing wrong?
Thanks in advance.
Please sign in to leave a comment.