Example Code writing to FLASH on K60

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

Example Code writing to FLASH on K60

2,624 Views
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 Kudos
Reply
2 Replies

878 Views
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 Kudos
Reply

878 Views
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 Kudos
Reply