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.
Thanks,
Gopal.k
Discussion Forums
Proprietary
Answered
Answered
You may take a look at the driver for mx25 here to see if it helps:
What is the purpose for connected a external Flash?
Example code,you can refer to example "bootloader-storage-spiflash-single".
0
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,
Gopal.
0
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?
uint8_t ptr,z;
int x,y;
x = MX25_RES(&z);
y = MX25_RDID(&ptr);
printf("data == 0x%X == %d\n\r",ptr,y);
thanks ,
Gopal.
0
Hi,
Anybody give me reply?
Thanks,
Gopal.
0
Hi,
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".
How to Read and Write the SPI Flash Memory?
Hi,
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.
Thanks,
Gopal.k
You may take a look at the driver for mx25 here to see if it helps:
C:\SiliconLabs\SimplicityStudio\v4\developer\sdks\gecko_sdk_suite\v2.4\hardware\kit\common\drivers
Thanks for Reply,
Do you have any Example code or Application for these,Please send me.
Thanks,
Gopal.
As far as I know, there is no application note on this.
There is a good blog.
https://www.silabs.com/community/blog.entry.html/2016/02/08/chapter_9_4_spi_fla-vVBC
We have some KBA, maybe they are written for different use case, you could take a look at it. Not sure if they helps.
https://www.silabs.com/community/thunderboard/knowledge-base.entry.html/2016/09/19/mx25_flash_driver-1OBl
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,
Gopal.
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?
uint8_t ptr,z;
int x,y;
x = MX25_RES(&z);
y = MX25_RDID(&ptr);
printf("data == 0x%X == %d\n\r",ptr,y);
thanks ,
Gopal.
Hi,
Anybody give me reply?
Thanks,
Gopal.
Hi,
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".
BR,
/sza2