STM32L496 (4A6) missing TIM16 info Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
Tuxford
Posts: 26
Joined: Fri Nov 06, 2020 3:28 pm
Has thanked: 4 times
Been thanked: 4 times

STM32L496 (4A6) missing TIM16 info

Post by Tuxford »

Hi All,
I have found that it's impossible to use TIM16 without fix becuase of missing STM32_TIM16_CHANNELS def.

There is a simple patch:

Code: Select all

diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
index fdec353fa..8a795ba00 100644
--- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
@@ -1258,6 +1258,7 @@
 
 #define STM32_HAS_TIM16                     TRUE
 #define STM32_TIM16_IS_32BITS               FALSE
+#define STM32_TIM16_CHANNELS                1
 
 #define STM32_HAS_TIM17                     TRUE
 #define STM32_TIM17_IS_32BITS               FALSE

It had better to fix in further versions.
My version is 20.3.3 It's also missing in 20.3.4.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L496 (4A6) missing TIM16 info

Post by Giovanni »

Hi,

Fixed in repository, among other errors related to TIM16 and TIM17.

Giovanni
Post Reply