Pramod Korti

MC9S12Q96 / MC9S12C96 FLASH Module - Reg.

Discussion created by Pramod Korti on Mar 22, 2007
Latest reply on Mar 26, 2007 by Pramod Korti
I have used Freescale Codewarrior ver 4.5 for programming Flash in MC9S12C96. The problem that I am facing is as follows
1. I am not able to write more than two bytes at once. After writing two bytes, I am getting access error and the flash program is comming out.
2. If the program is executed using single step (F11) option in debugger mode, the required amount of data is written on to the flash locations as desired.
3. If the program is run in a single strech (F5), then only two bytes are written and the program hangs.
Flash programming was done with all interrupts disabled while write operation was in progress.
Please suggest some alternative method for programming flash or a sample code for writing and reading would be very useful.
Pramod Korti