Skip to main content
Visitor II
June 23, 2021
Question

Increasing code size on M4 coprocessor

  • June 23, 2021
  • 2 replies
  • 1070 views

Is there a way to increase code size which is used on M4 MCU? I saw some memory regions in device tree, but it is not clear how to do a change. Any info will be appreciated.

Best regards,

Nenad

    This topic has been closed for replies.

    2 replies

    ST Employee
    June 23, 2021

    Hello @NGajic​ ,

    Have you taken a look here: https://wiki.st.com/stm32mpu/wiki/STM32MP15_RAM_mapping?

    Explorer
    January 17, 2025

    Hello @ArnaudP,

    I have read this article. From what I understand, it should be possible to just enlarge the retram reserved-memory section, where the M4 firmware is initially loaded into. However, rproc_elf_load_segments() is still crashing in the A7 host when trying to copy the code segment from the ELF file.

    See my post for more details: https://community.st.com/t5/stm32-mpus-products/stm32mp157c-how-to-increase-the-m4-image-size/m-p/760904/highlight/true#M12418

    @NGajic, did you ever manage to load an M4 firmware larger than 64kb?

    Best regards