Example Code writing to FLASH on K60

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

Example Code writing to FLASH on K60

2,574 次查看
FirmEE
Contributor II

Does anyone have example of Erasing and Writing FLASH sectors on the K60?  One would think that these functions would be provided as an library extension in the compiler.  Any help would be appreciated. Do not want to re-invent the wheel.

Mike B.

0 项奖励
回复
2 回复数

828 次查看
Thommi_Tulpe
Contributor IV

Hello Mike

 

you can download a flash driver for K60and K40.

 

 

C90TFS_FLASH_DRIVER:

http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.zip?fpsp=1&WT_TYPE=Device Drivers&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=zip&WT_ASSET=Downloads&sr=16

 

The demo is for the IAR IDE.

I'm trying to change it for the CodeWarrior 10.1 IDE. First I copied the header files in the folder of my project headers.

Than I added the .c files to my project. I took the code of the NormalDemo.c in my main program.

I can compile my project, but it will not work. I think I have to change the .lcf - File, because the K60N512 has no D Flash.

I think I have to make the P Flash smaler.

 

Best Regards and good luck

 

Thomas

 

0 项奖励
回复

828 次查看
Dekiru
Contributor IV

The guide to have SSD Flash driver working on CW10.1 is posted here: https://community.freescale.com/thread/97094

 

Regards

0 项奖励
回复