Imprecise Bus Error when trying to make use of SDRAM on RT1020 EVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Imprecise Bus Error when trying to make use of SDRAM on RT1020 EVK

Jump to solution
917 Views
dykwong
Contributor III

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.

var decl.jpg

But when it is downloaded to be debugged, the "IMPRECISERR (2) Imprecise data bus error" popped up.

fault.jpg

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.

0 Kudos
1 Solution
887 Views
dykwong
Contributor III

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

 

solution.jpg

View solution in original post

0 Kudos
4 Replies
902 Views
jay_heng
NXP Employee
NXP Employee

You can check project setting to see whether XIP_BOOT_HEADER_DCD_ENABLE is set

DCD.PNG

888 Views
dykwong
Contributor III

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

 

solution.jpg

0 Kudos
898 Views
dykwong
Contributor III

Thanks, Jay.

I just tried it, and after downloading to the RT1020 EVK. The same error popped up.

20221129_1057.jpg

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!

0 Kudos
890 Views
dykwong
Contributor III
It should also be noted that the addition of "XIP_BOOT_HEADER_DCD_ENABLE=1" triggered the display of the following warning during build:

"SKIP_SYSCLK_INIT should be defined to keep system pll (selected to be SEMC source clock in SDK projects) unchanged"
0 Kudos