Using K20 with external SPI flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using K20 with external SPI flash

1,396 Views
lategoodbye
Senior Contributor I

Hi,

we want to use Kinetis K20 with external SPI flash (only block level read and write access, no filesystem necessary) in combination with Processor Expert.

Is there any sample code for SPI flash driver?

BR Stefan Wahren

Labels (1)
0 Kudos
2 Replies

765 Views
mjbcswitzerland
Specialist V

Stefan

SPI Flash code for AT45DBXXX, SST25 and STM25 Flash devices (for all K, KL parts) is included in the uTasker project: http://www.utasker.com/forum/index.php?topic=1721.0

Files are spi_flash_kinetis_stmicro.h, spi_flash_kinetis_sst25.h and spi_flash_kinetis_atmel.h

It has a low level read/write/delete interface as described in chapter 6 of http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF  (this part if in kinetis.c). The driver allows multiple SPI Flash chips to be cascaded to increase total memory size.

The Kinetis and SPI Flash can also be simulated (using VisualStudio), allowing testing, developing and debugging without need for physical HW.

It doesn't use PE though since it has full code without further generation needs.

Regards

Mark

http://www.utasker.com/kinetis.html

765 Views
lategoodbye
Senior Contributor I

Hi Mark,

thanks for your reply. I will give it a try soon.

0 Kudos