Skip to content

Conversation

@pguyot
Copy link
Collaborator

@pguyot pguyot commented Jan 19, 2026

esp:deep_sleep_hold_en/0 and esp:deep_sleep_hold_dis/0 nifs were disabled with esp-idf greater than 5.4 because macros used by esp-idf to define if they exist changed (5.3.2+ was an exception).

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

`esp:deep_sleep_hold_en/0` and `esp:deep_sleep_hold_dis/0` nifs were disabled
with esp-idf greater than 5.4 because macros used by esp-idf to define if they
exist changed (5.3.2+ was an exception).

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
@pguyot pguyot marked this pull request as draft January 19, 2026 08:00
@petermm
Copy link
Contributor

petermm commented Jan 19, 2026

I introduced these complex conditionals here: https://github.com/atomvm/AtomVM/pull/1392/changes adjusting them for P4 support.

It's evolved and the mass production P4 now supports deep sleep hold.. see espressif/esp-idf@c17644a

So I suggest basically reverting the complexity to !SOC_GPIO_SUPPORT_HOLD_SINGLE_IO_IN_DSLP - as it originally was, and as seen in the esp-idf commit..

Then 5.3 P4 may fail, but afaik 5.3 doesn't support the new P4 (fully), and it's only 5.5.2, and a future 5.4.4 that supports (both?) (eg. we may see issues on current v5.4.3 - and need to use idf-version: "release-v5.4" for that P4 CI)

petermm added a commit to petermm/AtomVM that referenced this pull request Jan 20, 2026
Supercedes: atomvm#2063

CI: Only test release-v5.4 and 5.5.2 for ESP32P4, due to their support for both P4 revisions.

Changelog fixes and additions.

Other minor fixes related to CI.

Signed-off-by: Peter M <petermm@gmail.com>
petermm added a commit to petermm/AtomVM that referenced this pull request Jan 20, 2026
Supercedes: atomvm#2063

CI: Only test release-v5.4 and 5.5.2 for ESP32P4, due to their support for both P4 revisions.

Changelog fixes and additions.

Other minor fixes related to CI.

Signed-off-by: Peter M <petermm@gmail.com>
bettio added a commit that referenced this pull request Jan 22, 2026
Fix ESP32-P4 builds and deep_sleep_hold

Supercedes: #2063

CI: Only test release-v5.4 and 5.5.2 for ESP32P4, due to their support for both
P4 revisions.

Changelog fixes and additions.

Other minor fixes related to CI. (simulator has gotten task_wdt support but,
it's currently broken P4)

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
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.

2 participants