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
stm32f042 + tickless + usb
Moderators: RoccoMarco, barthess
-
- Posts: 87
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 15 times
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: stm32f042 + tickless + usb
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
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
-
- Posts: 87
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 15 times
Re: stm32f042 + tickless + usb
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
Geoffrey
Who is online
Users browsing this forum: No registered users and 36 guests