EXTI PVM Wakeup Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 13869
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 947 times
Been thanked: 806 times
Contact:

Re: EXTI PVM Wakeup  Topic is solved

Postby Giovanni » Mon Mar 01, 2021 11:36 am

This could be it, moving in "bug reports".

Giovanni

User avatar
FXCoder
Posts: 369
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 171 times
Been thanked: 125 times

Re: EXTI PVM Wakeup

Postby FXCoder » Mon Mar 01, 2021 11:41 am

Hi Giovanni,
The bug is actually in line 83 of stm32_exti16-35_38.inc
STM32_EXTI163538_HANDLER should be STM32_EXTI1635_38_HANDLER .

Martin,
Do you have compile warnings disabled?
--
Bob

Code: Select all

#if !defined(STM32_DISABLE_EXTI1635_38_HANDLER)
/**
 * @brief   EXTI[16], EXTI[35], EXTI[38] interrupt handler.
 *
 * @isr
 */
OSAL_IRQ_HANDLER(STM32_EXTI163538_HANDLER) {
  uint32_t pr;

  OSAL_IRQ_PROLOGUE();

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

Re: EXTI PVM Wakeup

Postby Giovanni » Mon Mar 01, 2021 12:01 pm

This causes the ISR to not be linked to the vector and explains the problem, the IRQ goes in unhandled because of this.

Easy fix.

Giovanni

sprehse
Posts: 11
Joined: Thu May 21, 2020 2:59 pm
Has thanked: 3 times
Been thanked: 2 times

Re: EXTI PVM Wakeup

Postby sprehse » Mon Mar 01, 2021 12:06 pm

Hey Bob,
no, ive not disable the compile warnings. Do you know, what is the bug in stm32_exti16-35_38.inc?

in my debugging session ill only jump in vectorF4 and than in unhandled exeption. You mean stm32_exti19_21.inc, right?
But this exti lines are not use in my case and will be not used, if we not defined STM32_EXTI19_IS_USED or STM32_EXTI20_IS_USED.

@Giovanni which register do you mean?

Martin

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

Re: EXTI PVM Wakeup

Postby Giovanni » Mon Mar 01, 2021 12:22 pm

sprehse wrote:@Giovanni which register do you mean?

Martin


Don't worry, what Bob found already explains the problem.

Giovanni

sprehse
Posts: 11
Joined: Thu May 21, 2020 2:59 pm
Has thanked: 3 times
Been thanked: 2 times

Re: EXTI PVM Wakeup

Postby sprehse » Mon Mar 01, 2021 12:35 pm

oh sorry i was blind :D
yes, problem solved thanks for the support.

Martin

User avatar
FXCoder
Posts: 369
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 171 times
Been thanked: 125 times

Re: EXTI PVM Wakeup

Postby FXCoder » Fri Mar 05, 2021 12:32 am

Fixed in trunk as bug #1146. Backported to 20.3.3.

User avatar
alex31
Posts: 350
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 34 times
Been thanked: 53 times
Contact:

Re: EXTI PVM Wakeup

Postby alex31 » Wed Nov 24, 2021 3:57 pm

Hello,

associating the ISR fonction with a macro in mcuconf.h is OK, but there is no prototype declaration of the function prior it's use, where is it clean to declare the prototype ?

In the macro ?
#define STM32_EXTI21_ISR(x,y) void isrT60Meas(void); isrT60Meas()

or is there a clever / cleaner way to do it ?

Thanks
Alexandre


Return to “Bug Reports”

Who is online

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