Heap addendum to handle changes in NON-OS SDK 3.0.x #8746
Merged
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.
Changes to better support new SDKs v3.0.0-v3.0.5
WPA2 Enterprise connections
References - merged PRs:
The NON-OS SDK 3.0.x has breaking changes to the
pvPortMalloc
function. They added a newbool
argument for selecting a heap.To avoid breaking the build, I added a new thin wrapper function
sdk3_pvPortMalloc
toheap.cpp
.Edited new SDK LIBs to call
pvPortMalloc
's replacementsdk3_pvPortMalloc
.They also added
pvPortZallocIram
andpvPortCallocIram
, which are not a problem to support. Support added toheap.cpp
.Issues with WPA2 Enterprise in new SDKs:
Updated
wpa2_eap_patch.cpp
and binary patch scripts to handle v3.0.0 through v3.0.5.Patched SDKs v3.0.0 through v3.0.5
Duplicate Non-32-bit exception handler
Issue: At v3.0.0 and above
libmain.a
supplies a built-in exception handler (load_non_32_wide_handler
) for non-32-bit access. Our non-32-bit access handler (non32xfer_exception_handler
) overrides it.Solution: Add "weak" attribute to symbol
load_non_32_wide_handler
. Adjust the build to default to the SDK's built-in non-32-bit handler. If there is a need to use our non-32-bit handler, make the selection from the Arduino IDE Tools menuNon-32-Bit Access: "Byte/Word access to IRAM/PROGMEM (very slow)"
.With SDKs v3.0.0 and above a "non-32-bit exception handler" is always present.
Edited to describe the current contents of the PR.