Skip to content
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

Use wake up pin that is not dependent on analog power #3

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

sebromero
Copy link
Contributor

The previous version of the example sketch WakeFromPin.ino used an analog pin for the wake-up. However, the function that turns off the peripherals also turns off power to the analog pins. As a result they cannot sink current even when using an external pull-up resistor, it doesn't work. This PR changes the example so that it uses a digital pin for the wake up.
Also, interacting with the PMIC in the interrupt handler caused the PMIC to not always turn off the lanes. Moving it into the application loop solves this.

Copy link

Memory usage change @ 9957eaa

Board flash % RAM for global variables %
arduino:renesas_portenta:portenta_c33 🔺 0 - +24 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/WakeFromPin
flash
% examples/WakeFromPin
RAM for global variables
% examples/WakeFromRTC
flash
% examples/WakeFromRTC
RAM for global variables
%
arduino:renesas_portenta:portenta_c33 24 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,examples/WakeFromPin<br>flash,%,examples/WakeFromPin<br>RAM for global variables,%,examples/WakeFromRTC<br>flash,%,examples/WakeFromRTC<br>RAM for global variables,%
arduino:renesas_portenta:portenta_c33,24,0.0,0,0.0,0,0.0,0,0.0

Copy link

Memory usage change @ 4e057cb

Board flash % RAM for global variables %
arduino:renesas_portenta:portenta_c33 🔺 0 - +24 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/WakeFromPin
flash
% examples/WakeFromPin
RAM for global variables
% examples/WakeFromRTC
flash
% examples/WakeFromRTC
RAM for global variables
%
arduino:renesas_portenta:portenta_c33 24 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,examples/WakeFromPin<br>flash,%,examples/WakeFromPin<br>RAM for global variables,%,examples/WakeFromRTC<br>flash,%,examples/WakeFromRTC<br>RAM for global variables,%
arduino:renesas_portenta:portenta_c33,24,0.0,0,0.0,0,0.0,0,0.0

@sebromero sebromero merged commit bb4f47c into main Aug 30, 2024
8 checks passed
@sebromero sebromero deleted the interrupt-handler branch August 30, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant