stm32f042 + tickless + usb

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
geoffrey.brown
Posts: 122
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 18 times

stm32f042 + tickless + usb

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: stm32f042 + tickless + usb

Post 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
geoffrey.brown
Posts: 122
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 18 times

Re: stm32f042 + tickless + usb

Post 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
Post Reply