What is the best method for locating the Heap in SDRAM? I modified the fsp.ld file manually. I am not sure this is correct or a good method:
/* .heap (NOLOAD): { . = ALIGN(8); __HeapBase = .; */ /* Place the STD heap here. *//* KEEP(*(.heap)) __HeapLimit = .; } > RAM */
.heap (NOLOAD): { . = ALIGN(8); __HeapBase = .; /* Place the STD heap here. */ KEEP(*(.heap)) __HeapLimit = .; } > SDRAM
Hello,
You can do this and after build you should the heap starting at 0x6800_0000 in the .map file.
The SDRAM should be initialized before any allocation from the heap is made. So place the SDRAM initialization code in R_BSP_WarmStart() after R_IOPORT_Open.
Regards
You can't initialise the SDRAM before the pins have been configured.