Memory paradigm with ARM Cortex-MX

Hi guys,

I'm relatively new to ARM development and am moving from simpler micro-controllers where all memory is on-board.

I was hoping someone would be so kind as to help me understand the modern memory paradigm employed by a Cortex-M chip.

- Assuming I am using external SPIFI (NXP4350) to store my program, does the compiler handle generating stack data in RAM for me or is there some copying/fetching that must be done?

- If I had an external SRAM/SDRAM attached, is this a case of editing the location of stack and heap memory in the project to have it execute purely in the external memory, can I mix and match in any way?

- What approaches are typically employed by users on this forum?

Many thanks for any advice.

More questions in this forum