Hi Dear Colleagues,
There is a requirement from my customer.
Their end customer gave them a library:
And required them to put the library into a specific RAM area, then, use MPU to protect this area.
How to realize this requirement?
Best Regards
Weiyou Wang
Hello Weiyou,
If the library source code has been compiled with custom sections attributes, then they can easily place these sections (e.g. myLibConst) into custom memory space.
Anyway, gcc linker allows placement of any object code (.text) into a custom section. This way they could force to place library code/data/consts into a specitic memory custom sections even if the library object code was NOT compiled with specific placement for code/data/const.
see e.g.
Hope it helps.
Stan