Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12455 Discussions

MPU and linker script for isolation

Altera_Forum
Honored Contributor II
784 Views

Hi everyone, 

 

Now I am working on system partitioning. I am using MPU to isolate a kernel from application tasks, avoiding that application tasks make the kernel corrupted. Therefore, the kernel and application tasks have to be allocated into two memory regions, under the control of linker script. 

 

By now, I know how MPU works, and I am confused with linker script in Altera. 

 

Does anyone have a similar example or give me some advises about how to use the linker script.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
107 Views

Writing a linker script isn't THAT difficult. 

A lot of stuff in the default one isn't needed for a simple script. 

I'd start with a very simple linker script and a simple object file and then look at the linker map file output to see which memory areas get assigned where. 

Then extend it for the sections you have in your real object modules.
Reply