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

Commits on Aug 1, 2024

  1. RPC: Add license file and headers.

    Signed-off-by: iabdalkader <[email protected]>
    iabdalkader committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    fa34b9d View commit details
    Browse the repository at this point in the history
  2. RPC: Configure M4 memory as strongly ordered if booting from SDRAM.

    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 committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    96ccceb View commit details
    Browse the repository at this point in the history
  3. openamp: Load the resource table manually in resource_table_init.

    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]>
    iabdalkader committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    a208513 View commit details
    Browse the repository at this point in the history
  4. variants/GENERIC_STM32H747_M4: Update linker_script to support DRAM f…

    …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 committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    6ffb9a3 View commit details
    Browse the repository at this point in the history
  5. Add linker script patch.

    Signed-off-by: Martino Facchin <[email protected]>
    iabdalkader committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3b4c179 View commit details
    Browse the repository at this point in the history