Writing Boolean Variables to Flash

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

Writing Boolean Variables to Flash

Jump to solution
932 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Solution
440 Views
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

View solution in original post

0 Kudos
1 Reply
441 Views
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 Kudos