Skip to content

Commit

Permalink
Create MB_MEM2 shared section for devices with shared RAM up to date …
Browse files Browse the repository at this point in the history
…startup initialize it
  • Loading branch information
xanthio committed May 12, 2024
1 parent 9d7fd38 commit d92c104
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/stm32/linker_ld.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ else()
set(RAM_SHARE_SECTION "
MAPPING_TABLE (NOLOAD) : { *(MAPPING_TABLE) } >RAM_SHARED\n\
MB_MEM1 (NOLOAD) : { *(MB_MEM1) } >RAM_SHARED\n\
MB_MEM2 (NOLOAD) : { _sMB_MEM2 = . ; *(MB_MEM2) ; _eMB_MEM2 = . ; } >RAM_SHARED\n\
_siMB_MEM2 = LOADADDR(.MB_MEM2);\n\
.MB_MEM2 :\n\
{\n\
_sMB_MEM2 = . ;\n\
*(MB_MEM2) ;\n\
_eMB_MEM2 = . ;\n\
} >RAM_SHARED AT> FLASH\n\
")
endif()

Expand Down

0 comments on commit d92c104

Please sign in to comment.