Forum Discussion
Arria 10 can't read from flash via Generic Serial Flash Interface
- 5 years ago
Hi John,
1) We are using the GSFI, but gsfa_asmi_access_granted_reg is a register in the Serial Flash Loader.
2) Yes, that is correct, we wanted to start out by seeing the device ID read work correctly before moving on to reading and writing the flash memory.
We have the baud rate divisor set to 0x10 and we have seen the SPI pins behave as expected.
We were able to get everything to work once we removed the Serial Flash Loader from our design, leaving the GSFI directly connected to the SPI interface. I don't think we will need any further assistance; thank you for your help.
Frank
Hi,
1) Set bit 0 of the "gsfa_asmi_access_granted_reg" register to 0 in order to give the GSFA module access to the flash.
May I know if you are refering to GSFI module? I do not observed any gsfa_asmi_access_granted_reg.
2) Write 0x0000489F to the Flash Command Setting Register (register offset 0x7).
From the setting used, you are reading the ID of the flash.
3) Write 0x00000001 to the Flash Command Control Register (register offset 0x8).
4) Read the Flash Command Read Data 0 Register (register offset 0xC).
May I know what is the Baud rate Divisor used? Have you try to measure the SPI pin?
- FZOVK5 years ago
New Contributor
Hi John,
1) We are using the GSFI, but gsfa_asmi_access_granted_reg is a register in the Serial Flash Loader.
2) Yes, that is correct, we wanted to start out by seeing the device ID read work correctly before moving on to reading and writing the flash memory.
We have the baud rate divisor set to 0x10 and we have seen the SPI pins behave as expected.
We were able to get everything to work once we removed the Serial Flash Loader from our design, leaving the GSFI directly connected to the SPI interface. I don't think we will need any further assistance; thank you for your help.
Frank