I have a STM32-103STK board with a keil ulink-me usb programmer. My job is to create a USB connection to the pc. I've downloaded the USB-HID demo from keil (http://www.keil.com/download/docs/361.asp), compiled it and loaded it onto the board. But the demo isn't working. I know it would not work as it should be cause this board hasn't have the leds, but windows should recognize a USB device I think.
Does anyone knows how to get this working? Would this demo work on this board?
maybe there is a jumper that enables USB...? just guessing - I don't know you specific board/processor.
there is no jumper
this is the board: www.olimex.com/.../stm32-103stk.html it has a STM32F103RBT6 processor on it
any reason you are not using the samples provided by Olimex? You have an HID sample available on the page you linked to!
those are samples for EW-ARM 5.11 and i'm using the keil software to program it. Or is it possible to use/adjust those examples?
you can _easily_ adjust them and compile using MDK. been there, done that - no problem really, if you can afford to invest only a few moments (if you know what you are doing of course).
i'm not really sure what i do is the right way but i took all the c and h files from the example and put them in a new uvision project and build that. The main problem is that he can't find intrinsics.h and it is in files i can't edit.
If I remember correctly, this file contains macros to disable interrupts etc. but surely, you can download an evaluation version of olimex IDE and take use the installed header file - no harm done, no license needed for that.
yeah, ive got it but now this: C:\Program Files\Keil\ARM\RV31\INC\intrinsics.h(25): error: #35: #error directive: "File intrinsics.h can only be used together with iccarm."
there is an exe in the newly installed software IAR and it says: IAR ANSI C/C++ Compiler V5.40.2.21604/W32 EVALUATION for ARM
what now? compiling with iccarm? i think this isn't going to work...
but surely you can extract from that header file only what you need? the error you see in invoked by some kind of conditional preprocessor construct. but you don't need all that - just the fundamental definitions.
ah, i see
but in the file there is used a lot of __intrinsic types what the compiler doesn't understands
then I suggest to look in the toolchain folder to see what the type actually is. if it is a simple type, just replace it. but are you sure you even need it under MDK...? maybe you can just remove it?
i checked if i could find him and it looks it is something parsed by the compiler, can't find a real type. So i emptied the whole file and then i got errors in some other files. Unknown identifiers and more, and they where not in the emptied file.
remove "__intrinsic" only...! what happens then?
errors... it needs a type