cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to USB Registers

jdcowpland
Associate II
Posted on October 25, 2013 at 10:33

HI,

I'm currently using MikroC as my development environment to write a program for the STM32F4 Discovery board which will read the contents of a USB Flash drive using the USB_OTG_FS module. I seem to be having issues writing to the USB registers though. I realise that the best place to be asking this is maybe the MikroC forums, but though I would just see if anyone here can help too. My code accesses the registers like this:

OTG_FS_GINTMSK.WUIM = 1;

which should unmask the wakeup interrupt in the global interrupt mask register. Problem is that my debug tool says that that the register is empty after setting that bit. Which leaves three solutions: A- for some reason I can't write to that register B- My debug tool is lying to me C- Some reason I'm unaware of. Anyone able to help at all? #usb #otg #fs
0 REPLIES 0