I am using the NXP RT1020 EVK with MCUXpresso IDE v11.6.0 and the latest SDK version ksdk2_0.
The project is an example from the SDK: evkmimxrt1020_sai_edma_record_playback.
I am trying to make use of the onboard SDRAM (region RAM4) by declaring a global variable "test_array[4]". Building the project did not reveal any errors.
But when it is downloaded to be debugged, the "IMPRECISERR (2) Imprecise data bus error" popped up.
When this global variable is removed, the error does not appear.
I realise that this may be a duplication of another issue BOARD_InitBootClocks causes hard fault when put inside the SystemInitHook function . However, it is unclear how to achieve the SDRAM initialisation using the DCD mechanism.
Perhaps someone may shed some light on the method to perform SDRAM memory initialisation.
Solved! Go to Solution.
Great news, Jay.
Defining the following in Project Properties > Settings > MCU C Compiler > Preprocessor resolved the issue:
SKIP_SYSCLK_INIT
USE_SDRAM
XIP_BOOT_HEADER_DCD_ENABLE=1
You can check project setting to see whether XIP_BOOT_HEADER_DCD_ENABLE is set
Great news, Jay.
Defining the following in Project Properties > Settings > MCU C Compiler > Preprocessor resolved the issue:
SKIP_SYSCLK_INIT
USE_SDRAM
XIP_BOOT_HEADER_DCD_ENABLE=1
Thanks, Jay.
I just tried it, and after downloading to the RT1020 EVK. The same error popped up.
In any case, I am very interested in getting more documentation on the the ways and means to configure project properties.
Also I have attached the project which generated the above behaviour.
Keep up the good work!