mc908gp32 - using flash as eeprom? I can´t

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

mc908gp32 - using flash as eeprom? I can´t

2,656 Views
GTE
Contributor I
I need to store data in flash memory of mc908gp32
I have followed step by step, which indicates the manual. I can not find the mistake.
Could someone giving me an example of how to store data in flash memory in assembler language
Thanks for your help
 
 
 
 
 
 
 
 
 
Added p/n to subject.


Message Edited by NLFSJ on 2007-10-31 04:57 PM
Labels (1)
0 Kudos
Reply
4 Replies

757 Views
blaz
Contributor I
Remember that you have to run the program on the ram is not on the rom. That could be your mistake
0 Kudos
Reply

757 Views
Ake
Contributor II
Hi,
I wrote this GP32FLASH8 assembler routine several years ago.
It was written in the P&E assembler, so it needs rewriting if you want to use it in a CodeWarrior environment.
It shows how to change single bytes as used in an EEPROM.
 
(I have written it myself, so no guaranteee that it works)
 
Regards,
Ake
0 Kudos
Reply

757 Views
Technoman64
Contributor III
This might help, I use FLASH with MC908GT8 mcu for user settings and trim values. There is a demo project in the last post. I should have used the first two 64 byte sectors of FLASH instead of the last two. This way the FLashBlockProtect can be used to protect the FLASH the code resides in. I have corrected this in my own software but not in the demo project.
 
 
 
0 Kudos
Reply

757 Views
peg
Senior Contributor IV
Hi GTE,
 
Have you seen AN2183? It seems to be exactly what you want.
Plug it in to the keyword search at the top right of this page.
Good Luck!
 
0 Kudos
Reply