STM32F3xx Testhal has too few parameters in EXTI configuration Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
Tinkerer
Posts: 19
Joined: Wed Apr 19, 2017 2:47 pm
Has thanked: 4 times

STM32F3xx Testhal has too few parameters in EXTI configuration

Post by Tinkerer »

Hello,

I was trying to get External Interrupts going, and I was looking at the example for STM32F3xx (C:\ChibiStudio\chibios161\testhal\STM32\STM32F3xx\EXT\main.c). I saw that the static const EXTConfig extcfg has 23 items. However, looking at the reference manual I saw 30+ interrupt sources. In the low level driver for STM32F3xx ( C:\ChibiStudio\chibios161\os\hal\ports\STM32\STM32F3xx\ext_lld_isr.c) there are items that do use the higher sources ( EXTD1.config->channels[33].cb(&EXTD1, 33); .

Shouldn't the example, in order to avoid future issues where 'higher index EXT' sources are called, use a initialisation table with 34 entries?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F3xx Testhal has too few parameters in EXTI configuration

Post by Giovanni »

Hi,

You are correct.

Fixed as bug #839.

Giovanni
Tinkerer
Posts: 19
Joined: Wed Apr 19, 2017 2:47 pm
Has thanked: 4 times

Re: STM32F3xx Testhal has too few parameters in EXTI configuration

Post by Tinkerer »

Thanks for the fix
Post Reply