Page 1 of 1

stm32f042 + tickless + usb

Posted: Wed Oct 17, 2018 3:46 pm
by geoffrey.brown
I've had a small problem with an stm32f042 device using tickless, usb (plus CRS) -- it works fine after booting, but after sitting idle for several minutes the a new libusb connection causes it to reset. When I changed CH_CFG_ST_TIMEDELTA to 0, (i.e. not use tickless mode), i've had no further issues. I'm using timer 2, tick frequency = 10000.

In my application, not using tickless is fine, so this isn't a huge priority. But, if there's something I can do to help isolate the root cause, I'd be happy to try.

Geoffrey

Re: stm32f042 + tickless + usb

Posted: Wed Oct 17, 2018 3:51 pm
by Giovanni
Hi,

Try increasing time delta (start at 10 then find a safe lower value) and see if it makes the problem disappear (likely). Reducing system tick frequency would also fix the problem.

Giovanni

Re: stm32f042 + tickless + usb

Posted: Wed Oct 17, 2018 7:29 pm
by geoffrey.brown
Thanks. It'll have to wait a few days -- about to leave for the airport. Could you provide a hint about what you think might be going on ?
Geoffrey