Skip to content
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

RPC/OpenAMP: Support loading sketches to SDRAM. #934

Merged
merged 5 commits into from
Sep 9, 2024

Conversation

iabdalkader
Copy link
Contributor

To use this with MicroPython, to load Arduino sketches to SDRAM, it requires micropython/micropython#15499
Which has been merged, so a nightly build will work.

@iabdalkader iabdalkader requested a review from facchinm August 1, 2024 11:16
libraries/RPC/src/RPC.cpp Outdated Show resolved Hide resolved
If the Cortex-M4 core is booting from SDRAM, the memory region must be
configured as Strongly Ordered. Note that the Cortex-M4 core does not
seem to implement speculative prefetching, so there is no need to protect
the whole region from speculative prefetching with a second MPU region.

Signed-off-by: iabdalkader <[email protected]>
@iabdalkader iabdalkader force-pushed the rpc_openamp_updates branch from dfe850a to 9c74080 Compare August 1, 2024 12:19
This patch allows removing the Open-AMP section used for the resource table
by loading it manually. The Open-AMP ELF loader would attempt to load this
section if the firmware is built for SDRAM.
Note that since we're not using copy tables or ARM CC, the resource table
has always been copied manually.

Signed-off-by: iabdalkader <[email protected]>
…irmware.

To load the M4 firmware into SDRAM, we must ensure the linker script does not
include any loadable sections that are placed in the shared memory region. If
such sections exist, the ELF loader will overwrite the shared memory region
when loading the firmware.

Additionally, the Open-AMP section is no longer required, as the resource table
is now populated manually in resource_table_init. Therefore, this section can
be removed.

Signed-off-by: iabdalkader <[email protected]>
@iabdalkader iabdalkader force-pushed the rpc_openamp_updates branch from 9c74080 to 6ffb9a3 Compare August 1, 2024 12:36
Signed-off-by: Martino Facchin <[email protected]>
@facchinm facchinm merged commit e10dfd2 into arduino:main Sep 9, 2024
10 of 11 checks passed
@iabdalkader iabdalkader deleted the rpc_openamp_updates branch September 9, 2024 09:01
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