Skip to main content
KHira.11
Associate
January 14, 2020
Question

Interfacing issue between the STM32F407 controller and SST25Vf016B flash using SPI

  • January 14, 2020
  • 2 replies
  • 768 views

I am trying to interface the STM32F407 controller and SST25Vf016B flash using SPI protocol for chibios. I have completed the configuration steps  and I am also able to read the manufacturer ID reg, device ID reg for Flash. But when I try to write data and read it I am getting garbage value. Maybe the data is not written properly. I have also enabled different modes for flash like Write enable and EWSR (Enable Write Status Register). Any ideas to solve the issue.

Thanks

Kalpesh

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
January 14, 2020

Before writing, do you erase the respective blocks in FLASH?

After write and erase command, do you read the Status byte and wait until BUSY bit clears?

JW

KHira.11
KHira.11Author
Associate
January 14, 2020

Hi,

I am doing chip erase before writing data into it. After write and erase, when I read status byte , I am getting the following data.

_____________________________________________________________

SPI Initialization

Status reg data-> 1C

Status reg data-> 4

Status reg data-> 4

RECEIVED DATA -> 0

Jedec manufacturer id data-> BF

Jedec memory type data-> 25

Jedec device id data-> 41

------------------------------------------

Status reg data-> 4

RECEIVED DATA -> 0

Jedec manufacturer id data-> BF

Jedec memory type data-> 25

Jedec device id data-> 41

------------------------------------------