Re: STM32F4 USB issue: debug log disable...!
2012-05-04 01:05:06 GMT
> DEBUG OFF, adding ONE DELAY HERE
> stm32_putreg(regval, STM32_OTGFS_DOEPTSIZ0);
> up_udelay(2000); // single delay required, sercon will work then
> /* Then clear NAKing and enable the transfer */
> regval = stm32_getreg(STM32_OTGFS_DOEPCTL0);
> regval |= (OTGFS_DOEPCTL0_CNAK | OTGFS_DOEPCTL0_EPENA);
> stm32_putreg(regval, STM32_OTGFS_DOEPCTL0);
> works 100% in USBTERM, and
> with sercon method on NSH,
> when trying it as usb console NSH, then I get
> NAK forever on first get descriptor.. hmm
> same when add delay on all reg writes. I better take clean .c
> file and test again.
> but we are closer to find the bugs now I think.
> the delay in the code above is not proper fix of course, but it should help to find out where problem or part of it is
What is the status of this fix? Any progress? Do you have a fix yet?