Hello Community,
I'm trying to bring up my custom board which Samsung LPDDR4 1G and S32G274A embedded.
But I don't know why DDR test is only passed with 800MHz and failed with other clocks(upper 800MHz).
I have several problem like below and I need someone's help.
1) Is the DDR tool in S32DS trustable 100%?
2) When I set the clock 800MHz or 1600MHz, and run read/write test(Operational test) on the tool but the measured clock was just 50MHz. What's the problem?
3) When I generate the C source code after run phy init test on the DDR tool and I add ddr_init(), initialization code, ddr_init() was passed but I cannot read DDR memory with below code and HardFault Exception happened.
/* Disable XRDC */
XRDC_REG_RMW32(XRDC_CR_0_ADDR32, XRDC_CR_GLVD_MASK, XRDC_CR_GLVD_DISABLE);
{
uint32_t value = *(uint32_t *)0x80000000;
printf("value=0x%x\n", value);
}
Does anybody know how to read/write on DDR in the M-core?
4) So, I tried to access DDR on u-boot and I can read/write DDR using reference source code on reference board(S32G-VNP-RDB2). But after I copy the DDR codes which were generated by DDR tool to u-boot source tree and build u-boot, then ddr_init was failed.
How can I update DDR source code in u-boot?
If someone succeeded to access DDR on their customized board, then let me know how to do.
Thanks,
Harry