Problems with 3 MB program image loaded to SDRAM

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

Problems with 3 MB program image loaded to SDRAM

1,532件の閲覧回数
stefan_ivanov
Contributor I

I am working on a project with a microcontroller  i.MX RT1052B and MCUXpresso 10.2.0 and EVKB-IMXRT1050. 

SDRAM on my board is  AS4C8M16SA. 

I have no problems loading 30-40 KB program images to the SDRAM with the help of script RT1050_SDRAM_Init.scp to both my board and EVKB. The problems are with my program image about 3 MB. It does not load to both boards.

The messages are:

16: Target error from status-poll
 Wire ACK Fault in DAP access
 Debugging context: IRIS_IMXRT1052B LinkServer Debug

Thanks in advance.

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

739件の閲覧回数
alenagrigorieva
Contributor II

I am using IAR, not MCUExpresso, but may be it is related to Your problem. In NXP examples sdram_debug/sdram_release there are section .data in SDRAM, but section .text is in ITCM.

From IAR's .icf file:
define symbol m_text_start             = 0x00000400;
define symbol m_text_end               = 0x0001FFFF;
Of course it's not enough for 3Mb executable. So I just relocated section .text to SDRAM.

So I advise you to check if .text is really in SDRAM too.

May be it helps.

0 件の賞賛
返信

739件の閲覧回数
stefan_ivanov
Contributor I

Hi Alena,

Thank you for your answer.

With the help of Symbol Viewer I saw that .text, .data, .bss all are placed in SDRAM.

0 件の賞賛
返信

739件の閲覧回数
AldoG
NXP TechSupport
NXP TechSupport

Hello Stefan,

I suggest to mass erase the Hyperflash, then power down and up the board before debuging the rebuilt project, this in case some code is in your Hyperflash and causing the issue, also please take a look to [Overview of using the MIMXRT1050-EVK(B) with MCUXpresso IDE].

BR,

Aldo.

0 件の賞賛
返信

739件の閲覧回数
stefan_ivanov
Contributor I

Hello Aldo,

Thank you for your answer.

In MIMXRT1050-EVK(B) there is Hyperflash, but in my board there is no Hyperflash. 

Only SDRAM and QSPI flash. In QSPI flash there is nothing written.

Best regards,

Stefan Ivanov

0 件の賞賛
返信