stm32f042 + tickless + usb

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

Moderators: RoccoMarco, barthess

geoffrey.brown
Posts: 87
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 15 times

stm32f042 + tickless + usb

Postby geoffrey.brown » Wed Oct 17, 2018 3:46 pm

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: 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

Postby Giovanni » Wed Oct 17, 2018 3:51 pm

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: 87
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 15 times

Re: stm32f042 + tickless + usb

Postby geoffrey.brown » Wed Oct 17, 2018 7:29 pm

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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 36 guests