STM32L496 (4A6) missing TIM16 info Topic is solved

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

STM32L496 (4A6) missing TIM16 info  Topic is solved

Postby Tuxford » Tue Jun 20, 2023 9:17 am

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: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L496 (4A6) missing TIM16 info

Postby Giovanni » Sun Jul 02, 2023 9:53 am

Hi,

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

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: Bing [Bot] and 12 guests