RT1052 FlexRAM and JLink

cancel
Showing results for 
Search instead for 
Did you mean: 

RT1052 FlexRAM and JLink

616 Views
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

Labels (1)
0 Kudos
1 Reply

126 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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 Kudos