Steps to Debug Using XIP

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

Steps to Debug Using XIP

589 Views
rantonetti
Contributor I

I'm trying to reconfigure my IMXRT1050-EVKB to use the serial NOR.  

I have modified the board and the NOR Flash seems to be in place.

I can program from Seggar JFlash and/or I can run the flash_component_nor demo project.

Both work.

Now I want to use MCU Xpresso and to push my code directly to the NOR like anyother memory component to debug/develope.

I have set the preprocessor flags;

XIP_BOOT_HEADER_DCD_ENABLE=1

XIP_EXTERNAL_FLASH=1

XIP_BOOT_HEADER_ENABLE=1

In addition, I have selected MIXRT1050_SFDP_QSPI.cfx for the LinkServer flash driver.

I build and attempt to debug and it fails.

I seem the xip folder and have not modified the contents...I was assuming NXP would have that set up for the NOR flash on the board.

What am I missing?

 

Labels (2)
0 Kudos
5 Replies

552 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, I reviewed your case, and your process seems good I only have questions about your board, what is the number of your QSPI?

Based on this app note the issue that you present may be about the LUT, as default according to the datasheet the QSPI on EVKB is IS25WP064AJBLE, with some rework to work in the board you can use it, if the QSPI is the same the default LUT should work for your board.

The default LUT is activated when the macros XIP are set, evkbimxrt1050_flexspi_nor_config.c

Pavel_Hernandez_0-1710194252513.png

Best regards,
Pavel

0 Kudos

453 Views
rantonetti
Contributor I

I appreciate the reply but this isn't helping me.

What I need to know are the following.

1.  Compiler Flags that should be set

2.  flash_config.c settings for the IMXRT1050-EVKB using the serial nor 

3.  Anything else I'm missing tp use the serial nor instead of the hyper flash

0 Kudos

449 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, maybe this app note could help you AN12108: How to Enable Boot from QSPI Flash – Application Note (nxp.com).

Let me know if you have more doubts.

Best regards,
Pavel

0 Kudos

434 Views
rantonetti
Contributor I

Yes, I have seen this.

My questions are given below.

1.  Is it possible to flash and debug using the serial NOR in MCUXpresso.

2.  What re the steps to debug from MCUXpresso

 

 

0 Kudos

389 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport
0 Kudos