Writing QSPI Flash on FRDM-MXCN947 board.

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

Writing QSPI Flash on FRDM-MXCN947 board.

994 Views
takagi_y
Contributor III

I am using the FRDM-MXCN947 board and am trying to write to QSPI Flash from the download during debugging in MCUXpresso IDE, but the following error occurs.

 

a.bmpb.bmpc.bmp

The flash driver uses MCXN9xx_SFDP_FlexSPI.cfx.

Do I need to modify the driver?

Thank you.

Labels (1)
0 Kudos
Reply
5 Replies

854 Views
takagi_y
Contributor III

Thank you for your reply.

It is now possible to write to Flash from the IDE using XIP with FRDM-MXCN947.

Best regards

0 Kudos
Reply

966 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @takagi_y 

If you want to run code from external memory,

You can refer to this article

Running code from external memory with MCX N94x - NXP Community

BR

Harry

0 Kudos
Reply

962 Views
takagi_y
Contributor III

Thank you for your reply.

I have checked the article you introduced.

In this case, you need to start the board in ISP mode.

Is it possible to write to the QSPI Flash by downloading (debug) from the MCUXpresso IDE like the RT1060?

If there is a way to write from the IDE, please let me know.

Best regards

Tags (1)
0 Kudos
Reply

956 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @takagi_y 

"Is it possible to write to the QSPI Flash by downloading (debug) from the MCUXpresso IDE like the RT1060?"

Yes, but you need to change the CMPA to boot from external flash.

Snipaste_2025-02-25_18-14-54.png

So first you need to refer to this article to change CMPA.

And then write to the QSPI Flash by downloading (debug).

BR

Harry

0 Kudos
Reply

953 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @takagi_y 

You can also refer to hello_world_qspi_xip example.

Snipaste_2025-02-25_18-34-22.png

BR

Harry

0 Kudos
Reply