mc908gp32 - using flash as eeprom? I can´t

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

mc908gp32 - using flash as eeprom? I can´t

3,117 次查看
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
标签 (1)
0 项奖励
回复
4 回复数

1,218 次查看
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 项奖励
回复

1,218 次查看
Ake
Contributor III
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 项奖励
回复

1,218 次查看
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 项奖励
回复

1,218 次查看
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 项奖励
回复