LS1046A QSPI NOR Flash Programming C Code

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

LS1046A QSPI NOR Flash Programming C Code

293 Views
DaT63
Contributor I

Hi,

I need to access the boot NOR Flash memory by C code for read/write/erase operations. I wonder if there are C code examples, API, libraries, ... already available which are not OS dependent

Regards

Daniele

0 Kudos
Reply
5 Replies

260 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

You can use CW flash programmer to perform those operations, Please find the attached file and take a look on chapter 7.3 Using flash programmer.

 

0 Kudos
Reply

204 Views
DaT63
Contributor I

Hello,

I do have a CW flash programmer, but if I am asking for sample code is because I need to do such operations inside an embedded software application (not Linux). I wonder if somewhere is available a sort of SDK or at least an Application Note 

Thank you

0 Kudos
Reply

174 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

We don't have a c code example, but, you can use sf command under U-boot to perform those operations.

https://docs.u-boot.org/en/latest/usage/cmd/sf.html

 

0 Kudos
Reply

56 Views
DaT63
Contributor I

Hello,

accessing the flash memory trough the programmer or u-boot is of no use for me. I need to do it within a custom application. There must be the possibility to do that, I think that NXP should provide a minimal support to do such operation

0 Kudos
Reply

48 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

Please open a new technical case (not community thread) and ask for your c code requirement, if there is something helpful for you it will be provided there.

 

0 Kudos
Reply