-
Notifications
You must be signed in to change notification settings - Fork 4
OTA on M4 #40
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
base: main
Are you sure you want to change the base?
OTA on M4 #40
Conversation
Memory usage change @ 3fd0d32
Click for full report table
Click for full report CSV
|
Memory usage change @ 3eac365
Click for full report table
Click for full report CSV
|
* This example demonstrates how to update the firmware of the Arduino Portenta H7 M4 core | ||
* using a firmware image stored on the QSPI. | ||
* | ||
* WARNING: Only 1MB M7 + 1MB M4 flash split is supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this flash split maybe creating a compiler define that can be checked in code using the preprocessor, i.e.
#ifndef FLASH_SPLIT_1_1
# error "Only a flash split of 1MB M7 + 1MB M4 is allowed"
#endif
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just thinking a compilation error is the simplest way to prevent foot-shooting 😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! Thanks for the suggestion 🥇 i think we can use something like
#if CM4_BINARY_START != 0x08100000
# error "Only a flash split of 1MB M7 + 1MB M4 is allowed"
#endif
I'll test it later
Constraints:
Notes: