Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this matters to users
Dessen applications should not be limited to readers with PSRAM just because they need Wi-Fi. A richer application can run successfully on an X3 or X4, yet fail as soon as it tries to pair with a service, retrieve a forecast, or fetch updated data. The application, display buffers, firmware and Wi-Fi/TLS stack all compete for the same internal RAM on these ESP32-C3 devices.
This was observed during actual application development. Simply reducing the guest allocation was not a satisfactory solution: in a controlled earlier build, 72 KiB corrupted dashboard text in the test fixtures, whereas 80 KiB passed the dashboard and pairing suites. Reducing avoidable firmware allocations helped, but did not eliminate the networking problem. CrossPoint PR crosspoint-reader/crosspoint-reader#4596 documents an isolated test with only 896 bytes free and a largest allocatable block of 404 bytes at Wi-Fi initialization.
The following measurements come from physical X3 and X4 tests on November 27, 2026, using an integrated prototype that releases an 83 KiB (84,992-byte) guest and restarts before native transport:
Both devices completed the network request. However, even after Wi-Fi was released, neither largest contiguous block could accommodate the original 84,992-byte guest. Total free memory alone does not tell the whole story; fragmentation matters when restoring the application.
The prototype addresses that by restoring the saved guest after a clean restart. From the user's perspective, the application can continue its original operation instead of crashing, closing, or forcing them to start over. A PSRAM-equipped device generally does not face the same guest-memory constraint.
This PR supplies the generic runtime mechanism needed for that approach: detach a parked guest, then resume it with the completed operation's result. It does not prescribe rebooting, store snapshots, or implement Wi-Fi. The integrated hardware measurements motivate the design; the isolated SDK PR verifies the continuation mechanism with a real guest in host tests. The corresponding firmware integration is still required.
Summary
Allow memory-constrained hosts to release a guest allocation while completing an asynchronous operation and resume the same guest afterward.
Validation
Full upstream make test passed with the pinned FreeInk SDK. A real guest parks on an async request, the host saves its full image, detaches and frees the original allocation, then reconstructs the guest in a fresh host and allocation. The test exercises success and transport failure, invalid metadata, no live overwrite, and verifies the original request is not polled or repeated.
No firmware build or persistence integration is included.