Writing Boolean Variables to Flash

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

Writing Boolean Variables to Flash

跳至解决方案
1,068 次查看
Fortchio
Contributor I

Hi All,

 

I am a bit of a novice when it comes to embedded programming. I am using codewarrior (C programming language) and the 56F8346 microcontroller.

 

I want to write the value of my boolean operator define as : "bool PASSWORD_Enable;" to the flash memory. 

 

What is the key words for this, as have tried   " IFsh1_SetWordFlash" as I have saw this used for other but it doesn't seem to work.

 

Can anyone give me any advice on how to save this value to the flash memory?

 

Many thanks,

 

Steve

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
576 次查看
J2MEJediMaster
Specialist I

You just cannot write to a Flash memory address and program it. Special techinques are involved. For starters, read the DSCxxxx Targeting manual that came with the CodeWarrior installation, with regards to flash programming. Also, type "flash programming" in the search box at the upper right of this web page and you will get a number of hits on similar queries asked in the forums. Hope this helps.

 

---Tom

在原帖中查看解决方案

0 项奖励
回复
1 回复
577 次查看
J2MEJediMaster
Specialist I

You just cannot write to a Flash memory address and program it. Special techinques are involved. For starters, read the DSCxxxx Targeting manual that came with the CodeWarrior installation, with regards to flash programming. Also, type "flash programming" in the search box at the upper right of this web page and you will get a number of hits on similar queries asked in the forums. Hope this helps.

 

---Tom

0 项奖励
回复