I am using EFR32FG12P432F1024GM48 and Flex version is 2.4.1,I am connected External SPI Flash chip(MX25L4006E), I need to Write and Read the data from the SPI Flash chip.How to Do these,Please help me.
You may take a look at the driver for mx25 here to see if it helps:
Thanks for Reply,
Do you have any Example code or Application for these,Please send me.
As far as I know, there is no application note on this.
There is a good blog.
We have some KBA, maybe they are written for different use case, you could take a look at it. Not sure if they helps.
What is the purpose for connected a external Flash?
Example code,you can refer to example "bootloader-storage-spiflash-single".
Thanks eric su,
i have customized board flex gecko board and Spi Flash is connected externally. I need to test it is working or not?
Thanks for reply,
Is there any application for these driver, I tried below code it returns success like 0 . I am to printing the device Id i got 0. Please send me example if it is there?
x = MX25_RES(&z);
y = MX25_RDID(&ptr);
printf("data == 0x%X == %d\n\r",ptr,y);
Anybody give me reply?
As Eric mentioned, you may want to study the external SPI flash bootloader code to figure out how to use it.
Additionally, you can open "spiflash-class1.c", it contains the SPI flash routines (open a Connect example project and enable the "SPI flash" plugin, it will add the "spi-flash" folder to the project, there you can open "spiflash-class1.c".