Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ARM Cortex M4 Architecture Memory map

Status
Not open for further replies.

chirag2239

Member level 3
Joined
Jul 29, 2011
Messages
64
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
2,048
Hi Gurus,

I got to know that in ARM Cortex M3/M4 architecture, processor uses the code and SRAM region for the program execution. But sometime it integrates the Code as well as SRAM regions. Can anyone guide me how and why is this integration possible?

I need one example for that. Can anyone please explain? Why there is a need for integrating these both regions? Because architecturally, code regions are ROM which is read only where RAM provides an access to processor for read as well as write also. So this integration can cause any kind of segmentation fault if we try to write in code region after integration? The properties remains as it is or it will be changed after integration of CODE and SRAM region?

One more question is that, as these areas are already defined with the some particular limitation, then architecture will allow this integration?

Please provide the explanation. Hoping for the best explanation from all the Gurus.

Reference: The definitive guide for ARM Cortex M3 and Cortex M4 MCUs - Joseph Yiu. Topic Number: 4.4.2

Thanks.
Chirag
 

For example you connect to you arm external sram. Having his own ram now he has 2 regions internal+external. This regions you define in project settings to let compilier know where to place the variables. Another option is to not tell compilier where you gonna add region and use it for dynamic allocation (malloc, free). Or use both.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top