Question
USB on stm32f103
Posted on January 20, 2015 at 00:39
Hi,
I'm trying to use a mass storage example taken from herehttp://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1734/PF258157
. When I'm executing, at startup the driver gets a SUSP, RESET and ESOF interrupt causing it to first reset then suspend and it stay indefinitly suspended. When debugging I noticed that in the PowerOn method executed at startup (just before interruption control register setting) the instruction_SetISTR(0); does not write the entire register to zero.
So three questions:
1: Is it possible that my observation comes from the time needed by the debugger to read the register, a single step on the instruction, causing new interrupts to occures ?
2: If no, does my problem could come from here ?
3: Anybody got this mass storage exemple working ?
Thank you in advance for your help.