Other Parts Discussed in Thread: HALCOGEN
Hi, I am trying to use SDRAM on RM57 dev kit.
I want to read and write.
I tried the earlier post for RM48 SDRAM.
However, the code hangs at
malloc();
I set up the Halcogen as
VCLK3 = 110 Mhz and enabled EMIF on Pin Mux page.
Also configure SDRAM as the spec.
Here's my linker setting.
MEMORY
{
VECTORS (X) : origin=0x00000000 length=0x00000020
FLASH0 (RX) : origin=0x00000020 length=0x001FFFE0
FLASH1 (RX) : origin=0x00200000 length=0x00200000
STACKS (RW) : origin=0x08000000 length=0x00001500
RAM (RW) : origin=0x08001500 length=0x0007EB00
SDRAM (RW) : origin=0x80000020 length=0x007FFFE0
/* USER CODE BEGIN (3) */
/* USER CODE END */
}
--heap_size 0x7F0000
SECTIONS
{
.intvecs : {} > VECTORS
.text align(8) : {} > FLASH0 | FLASH1
.const align(8) : {} > FLASH0 | FLASH1
.cinit align(8) : {} > FLASH0 | FLASH1
.pinit align(8) : {} > FLASH0 | FLASH1
.bss : {} > RAM
.data : {} > RAM
.sysmem : {} > SDRAM
}
I called these before main() starts.
emif_SDRAMInit();
systemREG1->GPREG1 |= 1u << 31;
Do you see anything wrong?
Any help will be very appreciated.
Thanks.
-Young