EXTI lines number on STM32F303x8 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

EXTI lines number on STM32F303x8  Topic is solved

Postby mobyfab » Mon Feb 13, 2017 4:10 pm

Hi,

It seems like number of EXTI lines in the registry for STM32F303x8 is incorrect.

EXTI line 33 is connected to Comparator 7 output (STM32F303xB/C/D/E,
STM32F358xC and STM32F398xE devices)


GCC Error:

Code: Select all

Compiling stm32_dma.c
../ChibiOS/os/hal/ports/STM32/STM32F3xx/hal_ext_lld_isr.c: In function 'ext_lld_exti_irq_enable':
../ChibiOS/os/hal/ports/STM32/STM32F3xx/hal_ext_lld_isr.c:425:20: error: 'COMP7_IRQn' undeclared (first use in this function)
   nvicEnableVector(COMP7_IRQn, STM32_EXT_EXTI33_IRQ_PRIORITY);
                    ^~~~~~~~~~
../ChibiOS/os/hal/ports/STM32/STM32F3xx/hal_ext_lld_isr.c:425:20: note: each undeclared identifier is reported only once for each function it appears in
../ChibiOS/os/hal/ports/STM32/STM32F3xx/hal_ext_lld_isr.c: In function 'ext_lld_exti_irq_disable':
../ChibiOS/os/hal/ports/STM32/STM32F3xx/hal_ext_lld_isr.c:453:21: error: 'COMP7_IRQn' undeclared (first use in this function)
   nvicDisableVector(COMP7_IRQn);


Fix:

Code: Select all


diff --git a/os/hal/ports/STM32/STM32F3xx/stm32_registry.h b/os/hal/ports/STM32/STM32F3xx/stm32_registry.h
index e1bf383..a15d959 100644
--- a/os/hal/ports/STM32/STM32F3xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F3xx/stm32_registry.h
@@ -649,7 +649,7 @@
 #define STM32_HAS_ETH                       FALSE
 
 /* EXTI attributes.*/
-#define STM32_EXTI_NUM_LINES                34
+#define STM32_EXTI_NUM_LINES                33
 #define STM32_EXTI_IMR_MASK                 0x1F800000U
 #define STM32_EXTI_IMR2_MASK                0xFFFFFFFCU

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: EXTI lines number on STM32F303x8

Postby RoccoMarco » Mon Feb 13, 2017 4:12 pm

Thanks. I will take a look.
Ciao,
RM

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: EXTI lines number on STM32F303x8

Postby mobyfab » Fri Mar 24, 2017 10:49 am

Did you have time to implement the fix?

Thanks

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

Re: EXTI lines number on STM32F303x8

Postby Giovanni » Fri Mar 24, 2017 11:50 am

It will be implemented before next release.

Giovanni

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

Re: EXTI lines number on STM32F303x8

Postby Giovanni » Sun Apr 09, 2017 4:16 pm

Fixed as bug #827.

Giovanni

User avatar
alex31
Posts: 379
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 38 times
Been thanked: 62 times
Contact:

Re: EXTI lines number on STM32F303x8

Postby alex31 » Sun Apr 09, 2017 7:21 pm

Hello, in the same file, EXTI lines number is still wrong for the STM32F303xC and STM32F303xC where it should be 36 instead of 34.

EXTI line 35 is connected to UART5 wakeup (STM32F303xB/C/D/E, STM32F358xC
and STM32F398xE devices)


from RM0316 page 296

Alexandre

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

Re: EXTI lines number on STM32F303x8

Postby Giovanni » Mon Apr 10, 2017 10:59 am

hi,

Those are internal sources, the EXT driver does not handle that kind, the corresponding bits in the EXTI registers are not writable.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 17 guests