Flash programming routine/EEPROM emulation

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

Flash programming routine/EEPROM emulation

3,437 次查看
FordFairlaneBen
Contributor I
Hi:
I´m looking for a routine which allows me to write in flash and use it like an EEPROM in a MC9s08AW60. I only want to write some bytes like date, serial number and things like that. Is there any AN or something like that where shows how to do that?.
Thanks.
Best Regards
标签 (1)
0 项奖励
回复
3 回复数

1,228 次查看
Alban
Senior Contributor II
Hello,

In the page of the device, you will find the tools to program it.
There is a file for Flash programming drivers to include in your project.

Search for Flash Drivers in the AW60 MCU page.

Cheers,
Alban.
0 项奖励
回复

1,228 次查看
FordFairlaneBen
Contributor I
Hi it´s me again:
I have downloaded what you said but the  code is in assembler. I am programming in C. How can I do to mix both langauges in Code Warrior?.
Sorry about so many questions but  this MCU is new for me and I have lot of doubts.
Thank you very much.
Best regards.
0 项奖励
回复

1,228 次查看
irob
Contributor V
See the old Metrowerks technical note, TN015 "Mixing Assembly and ANSCI C in an Application". I don't think it's on Freescale's server anymore, so I've attached it for you.

Also, here are some other good places to start:

Flash Writing and Erasing for the MC9S08QG8

HCS08 Flash Erase/Write Routines

FLASH PROBLEMS HELP

Message Edited by irob on 2007-01-0912:28 PM

0 项奖励
回复