RT1064 flash driver API

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

RT1064 flash driver API

1,240 Views
glaukos
Contributor I

Hi,

i have a question about the flash driver API described in chapter 8.13 of the RT1064 processor reference manual. All functions have a uint32_t parameter named "instance". What does this refer to? It's unfortunately not explained in the manual. Thank you for your help.

0 Kudos
4 Replies

915 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Sebastian:

Could you please list one API that have a uint32_t instance?  I didn't find them in chapter 8.13. Sorry.

Regards

Daniel

0 Kudos

915 Views
carstengroen
Senior Contributor II

I think Sebastian means this:

pastedImage_1.png

I would also very much like to know this (I have not yet been successful in using the ROM API for programming the internal Flash of the RT1064)

0 Kudos

915 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi  Sebastian and Carsten:

It is a sequence number.  Just like can interface  has two instances, can0 and can1,  0 and  1 are the instance.

For flexspi, please see below lines:

#define BL_FEATURE_SPINAND_MODULE_PERIPHERAL_INSTANCE      (0)

#define SPINAND_INSTANCE         BL_FEATURE_SPINAND_MODULE_PERIPHERAL_INSTANCE

....

flexspi_nand_init(SPINAND_INSTANCE, config)

....

Regards

Daniel

0 Kudos

915 Views
carstengroen
Senior Contributor II

Thanks.

I managed to get this to work, my test code is here:

https://community.nxp.com/thread/498852 

0 Kudos