RT1052 FlexRAM and JLink

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

RT1052 FlexRAM and JLink

1,956件の閲覧回数
jordanwagner
Contributor I

I'm configuring the FlexRAM on our chip to all 16 banks of OCRAM by writing to the IOMUXC_GPR registers in the startup code.  This successfully flashes over JLink and runs.  However, when trying to flash again, I must now hold reset on the device before JLink can download the new file.  What is causing this?  Does JLink need some DTCM or ITCM memory?

JLink output:

Downloading file [./build/debug/image.hex]...

****** Error: Failed to prepare for programming.

Could not preserve target memory.

Error while determining flash info (Bank @ 0x60000000)

Unspecified error -1

Register writes:

IOMUXC_GPR_GPR17 = 0x55555555   // Set all banks to OCRAM

IOMUXC_GPR_GPR16 &= ~0x3    // Disable ITCM and DTCM

IOMUXC_GPR_GPR16 |= 0x4    // Set FlexRAM Allocation to BankCfg

ラベル(1)
タグ(5)
0 件の賞賛
返信
1 返信

1,466件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Jordan

from log seems it needs some DTCM or ITCM, however since JLink

is developed and supported by segger proper way to post this on vendor support forum:

SEGGER - Support Wiki 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信