- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm using Denebola kit, so now I want to read BPL bit in status register of SPI flash, can anyone tell me How to read status register of SPI flash in Denebola Kit?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
EDITTED
Hello,
The flash used inside Denebola kit is M25P40. The read status register command for this flash is 0x05. The code for reading this register in full can be found in the example project cyflashprog. This project can be found in the following location:
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxflashprog
In the above project, open the source file cyfxflashprog.c and then search for the function CyFxFlashProgEraseSector (). The else part within this function implements status register read. You can alternatively refer to the function CyFxFlashProgSpiWaitForStatus () in the same file. You can parse the individual bits in the status register in the firmware once the register is ready fully.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
EDITTED
Hello,
The flash used inside Denebola kit is M25P40. The read status register command for this flash is 0x05. The code for reading this register in full can be found in the example project cyflashprog. This project can be found in the following location:
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxflashprog
In the above project, open the source file cyfxflashprog.c and then search for the function CyFxFlashProgEraseSector (). The else part within this function implements status register read. You can alternatively refer to the function CyFxFlashProgSpiWaitForStatus () in the same file. You can parse the individual bits in the status register in the firmware once the register is ready fully.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I believe you are referring to write status register command. If yes, then please refer to the datasheet of the flash and the read status register example shared before to implement write status register command.
Jayakrishna