Flash/EEPROM

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

Flash/EEPROM

2,697 Views
Program2er
Contributor I
Hi,
I am using the CodeWarrior for HCS12 (with 512K).
I want to use some of the 512K flash memory for data logging (store data in the flash).
 
Is storing data (variables) in the Flash memory possible? and How?
 
and does anyone have a software for writing to EEPROM/FLASH? (I didn't see pre-defined Library for writing to either EEPROM or FLASH in Codewarrior).
 
thanks a lot and I hope someone have the answers.
 
progm2er.
 
 
0 Kudos
Reply
2 Replies

924 Views
J2MEJediMaster
Specialist I
Below is a list of technical notes and application notes that provide information on Flash programming. In many cases the source code is available, so that you can adopt it for your own use.

Note: The list presented here is by no means exhaustive. Use the Freescale search page to look for application notes specific to your target processor.

TN228 - Metrowerks Technical note for copying code to ram and executing it. Preliminary step for writing to flash memory, as program usually must execute from RAM. Source code in document.

AN2548 - Application note for a serial monitor with some basic debugging operations and writing to flash. HCS12-specific, using heavily-commented assembly language. Probably overkill in some cases, but still an excellent source of information. Source code is in two separate archive files, AN2548SW1.zip and AN2548SW2.zip.

AN2720 - Flash programming routines, written in assembly, but with a C-callable interface wrapper. For HCS12 processors only. Source code in document.

Also, you can use the search function at the bottom of this forum page and do a search on "flash programming".

---Tom
0 Kudos
Reply

924 Views
EM1
Contributor I
thanks Tom, I appreciate it.
0 Kudos
Reply