Flash programming routine/EEPROM emulation

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

Flash programming routine/EEPROM emulation

2,600 Views
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
Labels (1)
0 Kudos
3 Replies

391 Views
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 Kudos

391 Views
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 Kudos

391 Views
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 Kudos