external serial flash memory mapping with mkl16z256vlh4

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

external serial flash memory mapping with mkl16z256vlh4

1,341 次查看
durgeshk
Contributor II

Hi

Interface serial flash memory through SPI with MKL16Z256 controller. how to know what addresses in the processors address space are to be mapped to that external memory for read and write some data....?

please help

标签 (1)
0 项奖励
回复
1 回复

950 次查看
mjbcswitzerland
Specialist V

Hi

SPI Flash is not memory mapped so it doesn't fit into the Kinetis address space. It is addressed by defining pages and offsets in the pages, which is not related to memory mapping in normal use and so also doesn't have any chance of collisions.

It is however possible to virtually memory map it at the API layer - see this video showing this in the uTasker project: https://www.youtube.com/watch?v=Pe9A8qsefzQ&index=12&list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q
It doesn't specifically discuss SPI Flash in the video but the technique is the same and you can in fact see SPi Flash in the diagrams.

The open source uTasker project on GitHub includes support for about 5 different SPI memory manufacturers on most Kinetis parts, including storage display allowing it to be accessed in a virtual memory mapped environment (for file system use, for example) and testing using the same commands shown in the video. It also allows the Kinetis parts, SPI and these SPI Flash devices to be simulated for simplified development and debugging.

Regards

Mark

0 项奖励
回复