I'm trying to execute hello_world project without evkmimxrt1064_sdram_init.mac(and with MIMXRT1064xxxxx_sdram.icf) on EVK-MIMXRT1064.
I know that I need to initialize the external SDRAM which *.mac do, so I add the initialization code in SystemInitHook().
But It does not work I expected. I get Hard Fault Exception at the beginning of SystemInit() function.
Why the Exception is occurred?
How do I fix the code to work well?
# I guess it's caused by accessing to uninitialized SDRAM, (because STACK and HEAP are allocated to SDRAM)
# but I cannot to find where it's caused.
Please tell me any ideas or useful documents/website to solve the probrem.
Target Board: EVK-MIMXRT1064(iMXRT1064)
Compiler/IDE: IAR EWARM
Project: hello_world(I got from NXP web site, https://mcuxpresso.nxp.com/en/builder)