TIM8 missing on STM32H7xx Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
stertingen
Posts: 9
Joined: Mon Jan 13, 2020 10:55 pm
Has thanked: 3 times
Been thanked: 2 times

TIM8 missing on STM32H7xx  Topic is solved

Postby stertingen » Mon Jan 13, 2020 11:07 pm

/os/hal/ports/STM32/STM32H7xx/stm32_registry.h defines STM32_HAS_TIM8 to FALSE which is not correct. (STM32H7 has TIM8)

The following definitions seem to work:

Code: Select all

#define STM32_HAS_TIM8                      TRUE
#define STM32_TIM8_IS_32BITS                FALSE
#define STM32_TIM8_CHANNELS                 6
#define STM32_TIM8_UP_HANDLER               VectorF0
#define STM32_TIM8_CC_HANDLER               VectorF8
#define STM32_TIM8_UP_NUMBER                44
#define STM32_TIM8_CC_NUMBER                46


EDIT: Note: TIM8 and TIM13 seem to thare interrupt vector F0/44.

EDIT2: Patch

Code: Select all

diff --git a/os/hal/ports/STM32/STM32H7xx/stm32_registry.h b/os/hal/ports/STM32/STM32H7xx/stm32_registry.h
index 9dcdd99a2..c23608b84 100644
--- a/os/hal/ports/STM32/STM32H7xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32H7xx/stm32_registry.h
@@ -282,6 +282,14 @@
 #define STM32_TIM7_HANDLER                  Vector11C
 #define STM32_TIM7_NUMBER                   55
 
+#define STM32_HAS_TIM8                      TRUE
+#define STM32_TIM8_IS_32BITS                FALSE
+#define STM32_TIM8_CHANNELS                 6
+#define STM32_TIM8_UP_HANDLER               VectorF0
+#define STM32_TIM8_CC_HANDLER               VectorF8
+#define STM32_TIM8_UP_NUMBER                44
+#define STM32_TIM8_CC_NUMBER                46
+
 #define STM32_HAS_TIM12                     TRUE
 #define STM32_TIM12_IS_32BITS               FALSE
 #define STM32_TIM12_CHANNELS                2
@@ -318,7 +326,6 @@
 #define STM32_TIM17_HANDLER                 Vector218
 #define STM32_TIM17_NUMBER                  118
 
-#define STM32_HAS_TIM8                      FALSE
 #define STM32_HAS_TIM9                      FALSE
 #define STM32_HAS_TIM10                     FALSE
 #define STM32_HAS_TIM11                     FALSE

User avatar
Giovanni
Site Admin
Posts: 12943
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 729 times
Been thanked: 609 times
Contact:

Re: TIM8 missing on STM32H7xx

Postby Giovanni » Sat Jan 18, 2020 11:29 am

Hi,

Fixed as bug #1068.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests