This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI Slave Problem

Hi,

I am trying to develop a custom board using NFR52832 which involves writing data to a NAND flash. To download data from NAND to the pc, a ftdi cable (C232hm) is used. The cable has a ftdi chip which acts as the master and connects straight to the NAND flash, however the problem with this setup is that only one page can be read at once per read command sent from the pc, which with a latency of a few ms per each read command this results in 4Gb nand flash taking up to 40mins to download.

To solve this I am using the NFR52832 as a bridge between the NAND and ftdi cable, so that it reads data from the NAND as a spi master then sends the data to the ftdi cable as a slave. The chip will read as much data as its ram then before sending it in bulk ( around 20 pages of the NAND flash) to increase download speed.

In order to read more than 255 bytes I am using the list feature in the SPIM peripheral however according to this thread devzone.nordicsemi.com/.../ spi slave does not have the list feature so is it not possible to send more than 255 bytes in only one transaction/command? If possible could you please provide an example code. Is it possible instead to stream data constantly from nand and sending it to the pc.

Thanks so much for the help.

Rgs,

Bryan

Related