Urgent: MCUboot utility issue when SDRAM is configured

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Urgent: MCUboot utility issue when SDRAM is configured

1,887件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,813件の閲覧回数
farid_mabrouk
Contributor II

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

Thank you so much in advance! 

0 件の賞賛
返信

1,813件の閲覧回数
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 件の賞賛
返信