Zephyr Linker modification to use SRAM_2 #70715
Unanswered
AlbertPJoshi
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Did you ever figure out how to do this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Are you using ethernet? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While building an application my SRAM area is overflowed. During the investigation i noticed that in the current set up(based on the post build prints and linker scripts, .map file) zephyr not using the SRAM_2(my MCU have two separate RAM regions called SRAM_1 and SRAM_2, it is not continuous memory)
My MCU's SRAM allocation is :
SRAM1 - 32 KB(this one is currently using by zephyr)
SRAM2- 30KB(It is not used by the zephyr)
So in order to use this (unused SRAM_2)area i have tried modifying the linker using CONFIG_CODE_DATA_RELOCATION(in project.conf), but even though adding this and some proposed changes on the CMakeList.txt i was not able to use the SRAM_2 area.
Is there any way to combine these two RAM areas(it is not continuous as i mentioned).?
Or
What is the proper way to modify the linker in order to use the SRAM_2 and how to allocate memory to that region?
Beta Was this translation helpful? Give feedback.
All reactions