Urgent: MCUboot utility issue when SDRAM is configured

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

Urgent: MCUboot utility issue when SDRAM is configured

2,227 Views
farid_mabrouk
Contributor II

Hi, 

I hope someone can help me with this issue. I am stuck on it since last Friday. I am trying to program the flash on evk 1060 dev board using the MCUboot utility. I created a sample hello world FreeRTOS that toggles an LED. The project runs fine when I program the flash with the MCUboot GUI. But since I need to have some data stored in non-chacheable SDRAM, I did my SDRAM configuration as in the picture below. But in this case my code does not run on the dev board, after programming the flash MCU with the utility. 

I am attaching a copy of my sample code. Can someone run it on the EVk1060 dev board and with sdram configured as in the picture and tell me why i m not able to program the flash correctly.

Thank you

Labels (1)
0 Kudos
Reply
2 Replies

2,153 Views
farid_mabrouk
Contributor II

Can anyone one get back to me about my question above. 

Thank you so much in advance! 

0 Kudos
Reply

2,153 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Andre,

This is because SDRAM can not initialized by ROM boot. You must tell ROM Boot how to initialize SDRAM. 

Please follow these step:

1) Add the following to Compiler options:

    XIP_BOOT_HEADER_DCD_ENABLE=1

    SKIP_SYSCLK_INIT

2) Modify the Memory Configuration (In your picture)

3) Explicitly specify the heap/stack placement if you need.

The first step is to add DCD into image head. ROM boot will read DCD data to config SDRAM. Please read AN12107 for more details.

https://community.nxp.com/message/1214852 

Regards,

Jing

0 Kudos
Reply