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: 13527
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 861 times
Been thanked: 743 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: 363
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 169 times
Been thanked: 120 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: 13527
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 861 times
Been thanked: 743 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: 8
Joined: Thu May 21, 2020 2:59 pm
Has thanked: 3 times
Been thanked: 1 time

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: 13527
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 861 times
Been thanked: 743 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: 8
Joined: Thu May 21, 2020 2:59 pm
Has thanked: 3 times
Been thanked: 1 time

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: 363
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 169 times
Been thanked: 120 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.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests