You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the Portenta C33 Full Pinout, the Renesas LPM API and experimental data, the Pin that the LowPower::getDeepSleepWakeIRQChannelForPin() function returns IRQ LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ13 for is incorrect. A5 is linked to IRQ13 which, according to the Renesas documentation, is not a Deep Softwware Standby cancel IRQ. Deep Software Standby IRQs are designated in both the Renesas and Arduino documentation as IRQn-DS. In this instance LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ13 refers to IRQ13-DS which is tied to Aduino Pin 27/High Density Connector Pin J2-46/Renesas Pin P009/GPIO 0. If you pass Pin 27 to this function, it returns -1 which prevents the use of this Pin for Deep Software Standby Mode cancellation using this library. For now I am passing this function in my code A5 in order to have Pin 27 as the digital input to wake the Portenta C33. Let me know if you need any clarification. I have not investigated extent of condition of this issue to other parts of the library.
Regards,
Paul
From Arduino_LowPowerPortentaC33.cpp:
int LowPower::getDeepSleepWakeIRQChannelForPin(uint8_t pin){
switch (pin)
{
case A0: return LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ11;
case A1: return LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ10;
case A2: return LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ9;
case A3: return LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ8;
case A4: return LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ7;
case A5: return LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ13;
case 4: return LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ5;
case 7: return LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ4;
default:
return -1;
}
}
Hello,
According to the Portenta C33 Full Pinout, the Renesas LPM API and experimental data, the Pin that the LowPower::getDeepSleepWakeIRQChannelForPin() function returns IRQ LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ13 for is incorrect. A5 is linked to IRQ13 which, according to the Renesas documentation, is not a Deep Softwware Standby cancel IRQ. Deep Software Standby IRQs are designated in both the Renesas and Arduino documentation as IRQn-DS. In this instance LPM_DEEP_STANDBY_CANCEL_SOURCE_IRQ13 refers to IRQ13-DS which is tied to Aduino Pin 27/High Density Connector Pin J2-46/Renesas Pin P009/GPIO 0. If you pass Pin 27 to this function, it returns -1 which prevents the use of this Pin for Deep Software Standby Mode cancellation using this library. For now I am passing this function in my code A5 in order to have Pin 27 as the digital input to wake the Portenta C33. Let me know if you need any clarification. I have not investigated extent of condition of this issue to other parts of the library.
Regards,
Paul
From Arduino_LowPowerPortentaC33.cpp:
From r_lpm_api.h:
From Table 10.3 in Renesas RA6M5 User's Manual R01UH0891EJ0130 Rev.1.30:
From ABX00074-full-pinout:
The text was updated successfully, but these errors were encountered: