Has *ANYONE* *EVER* gotten USB to work on STM32 without linking in the thousands of lines that Cube framework is?Calling the documentation inadequate is an injustice to that word! The quality of the documentation approaches negative inf! And the cube...
Posted on June 03, 2015 at 22:48I would like to run a little custom code on the M0 core of the BlueNRG I am fully aware that officially this is not a use case you support, but still. Please share how? (i promise to not ask for any support further...
yes, in a convoluted way. basically, it is NEVER safe to do this to disable an EPepIn->DIEPCTL |= USB_OTG_DIEPCTL_EPDISyou should instead use thisif (epIn->DIEPCTL & USB_OTG_DIEPCTL_EPENA) {
epIn->DIEPCTL |= USB_OTG_DIEPCTL_EPDIS;
while (epIn->DIEP...
Of course just as i wrote the angry poist, i figured it out(turns out that the synopsys controller is utter crap and it is VERY VERY EASY to wedge it into a weird state)for example, try to set EPDIS twice in a row. until you power cycle the controlle...
it looks like DMA never sent my data to the FIFOexcept .. .WTF??? how can DMA mess up that badly? and how can the controller?and yes i reliaze that out0.DIEPCTL = 0x00008000loks supicious, but it ALWAYS Reads that way. somehow for EP0, MPSIZ field al...