STM32F446RE demo has a timing issue Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
chroco
Posts: 2
Joined: Sat Feb 17, 2018 9:41 pm
Has thanked: 1 time

Re: STM32F446RE demo has a timing issue

Post by chroco »

Thank you for following up on this issue!

I can confirm that the timing is still off. chThdSleepMilliseconds(1000) seems to delay for 500ms.

-Chad Coates
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F446RE demo has a timing issue

Post by Giovanni »

Could you try CH_CFG_ST_TIMEDELTA set to zero?

Giovanni
chroco
Posts: 2
Joined: Sat Feb 17, 2018 9:41 pm
Has thanked: 1 time

Re: STM32F446RE demo has a timing issue

Post by chroco »

Thanks Giovanni!

It looks like that fixed it. chThdSleepMilliseconds(1000) is now behaving as expected.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F446RE demo has a timing issue

Post by Giovanni »

Hi,

It did not fix it, it just proved that the problem is in the ST driver when a TIM is used.

Next week I should be able to get an F446 board.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F446RE demo has a timing issue

Post by Giovanni »

Fixed it, it was a wrong DKCFGR register initialization.

Giovanni
heliochronix
Posts: 34
Joined: Thu Aug 31, 2017 6:32 pm
Has thanked: 8 times
Been thanked: 6 times

Re: STM32F446RE demo has a timing issue

Post by heliochronix »

Thank you Giovanni for following up on this!Confirming that trunk@12551 solved this issue.
Post Reply