Sample code to interface Hyper Flash in our custom board with MCXN947 MCU

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

Sample code to interface Hyper Flash in our custom board with MCXN947 MCU

1,137 Views
Ramadurai
Contributor II

We require library code for interfacing Hyper Flash with MCXN947 MCU in our custom board.

I could find the sample code “frdmmcxn947_flexspi_octal_polling_transfer_cm33_core0” for Octal Flash in SDK for EVB FRDMFRDM-MCXN947.

Please share the library code for interfacing HyperFlash through FlexSPI in ##MCXN94

Labels (2)
Tags (2)
0 Kudos
Reply
5 Replies

1,057 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Ramadurai 

May I ask what model of Hyper Flash you are using?

BR

Harry

0 Kudos
Reply

1,009 Views
Ramadurai
Contributor II

Infineon make Hyper flash Part S26KL128SDABHI020 is used in our custom board and interfaced through FlexSPI Port A. But why the make is so important?

Irrespective of the flash make, the source code of the Hyper flash for MCXN947 should work with any compatible make Hyper Flash model?

0 Kudos
Reply

940 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Ramadurai 

Different HyperFlash devices all use the HyperBus protocol, but their timing parameters, latency counts, voltage/clock requirements, address modes, and command sequences are not identical. Because the MCXN947 FlexSPI uses a LUT‑based command engine, these device‑specific differences require different LUT entries and FlexSPI configuration settings for each HyperFlash part. Therefore, changing to another HyperFlash device usually means updating the LUT, timing parameters, and related FlexSPI configurations to match the new device’s datasheet.

For the mcxn947, there is currently no demo related to S26KL128SDABHI020.

But you can refer to the evkbimx1060 flexspi hyperflash demo.

Harry_Zhang_0-1769393611377.png

 

For  the MIMXRT1060-EVKB, it connected to the hyperflash  S26KS512SDPBHI020.

Harry_Zhang_1-1769393631205.png

Hope this will help you.

BR

Harry

0 Kudos
Reply

878 Views
Ramadurai
Contributor II

Please inform me the high level changes and config needed when I reuse the code from #evkbimx1060 flexspi hyperflash demo for #MCXN947 custom board to interface the #Hyper Flas

Tags (1)
0 Kudos
Reply

847 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Ramadurai 

Although both platforms use FlexSPI and HyperBus,

Clocking and Pin mux are the most significant changes.

There are no major changes in deviceconfig , LUT and main.

BR

Harry

0 Kudos
Reply