Programming in the FLASH region

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

Programming in the FLASH region

Jump to solution
1,157 Views
mmm
Contributor I
I've tried many times, but I can't store any value in the flash region, it doesn't change. (Flash because my micro, 9S08QG8 has a small RAM memory). Does the program need any espetial intruction? Or what can be the problem?
Labels (1)
Tags (1)
0 Kudos
1 Solution
371 Views
bigmac
Specialist III

Hello,

 

If your program needs additional RAM, the 9S08QG8 may not be suitable, and you will need to use a larger device.  Flash memory is read-only, and cannot be directly written like RAM.

 

It is possible to use flash memory for non-volatile storage of data, but the flash must be programmed with the required data.  This may be done from within the program code, but is much more complex than simply writing to a flash location.  There is also a finite limit to the total number of times that a flash location may be erased, and then re-programmed.

 

I suggest that you use the search engine below (for the 8-bit forum) and you should find many examples that have been previously posted. You will also need to be familar with the flash programming requirements to be found within the datsheet for the 'QG8.

 

Regards,

Mac

 

View solution in original post

0 Kudos
1 Reply
372 Views
bigmac
Specialist III

Hello,

 

If your program needs additional RAM, the 9S08QG8 may not be suitable, and you will need to use a larger device.  Flash memory is read-only, and cannot be directly written like RAM.

 

It is possible to use flash memory for non-volatile storage of data, but the flash must be programmed with the required data.  This may be done from within the program code, but is much more complex than simply writing to a flash location.  There is also a finite limit to the total number of times that a flash location may be erased, and then re-programmed.

 

I suggest that you use the search engine below (for the 8-bit forum) and you should find many examples that have been previously posted. You will also need to be familar with the flash programming requirements to be found within the datsheet for the 'QG8.

 

Regards,

Mac

 

0 Kudos