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.