Skip to content

Unable to use pin D6/PA8 for External Interrupt on Portenta H7 #12041

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
snapchaturvedi opened this issue Apr 4, 2025 · 1 comment
Closed
Labels
Type: Bug Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug

Comments

@snapchaturvedi
Copy link

Describe the bug
I am using the following simple program based on extint_wakeup.py example to wakeup Portenta from lightsleep but as soon as I run the code it wakes up without any external interruption.

To Reproduce
Run the following program on Portenta H7 with Vision Shield (LoRa):

import time
import pyb
import machine
from pyb import Pin, ExtInt


def callback(line):
    pass


led = pyb.LED(3)
pin = Pin("D6", Pin.IN, Pin.PULL_DOWN)
ext = ExtInt(pin, ExtInt.IRQ_RISING, Pin.PULL_DOWN, callback)

# Enter Stop Mode. Note the IDE will disconnect.
machine.sleep()

while True:
    led.on()
    time.sleep_ms(100)
    led.off()
    time.sleep_ms(100)

Expected behavior
The Portenta should stay in sleep mode until external voltage is provided to pin D6 for it to wake up.

Please complete the following information

  • IDE version: 4.2.4
  • Firmware version: 4.5.9
  • Board: Arduino Portenta + Vision Shield (LoRa)
  • OS: Windows
@facchinm
Copy link
Member

facchinm commented Apr 4, 2025

Let's only keep openmv/openmv#2647 open

@facchinm facchinm closed this as completed Apr 4, 2025
@per1234 per1234 added Type: Bug Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug labels Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug
Projects
None yet
Development

No branches or pull requests

3 participants