Trouble Programming Flash on MC9S12A128 – “Device or region is not blank or failed erase”

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

Trouble Programming Flash on MC9S12A128 – “Device or region is not blank or failed erase”

Jump to solution
1,512 Views
Nico_V
Contributor II

Hi all,
I have a PCB with a Freescale MC9S12A128 MCU. Unfortunately, the source files are long lost. I’m trying to copy firmware version "4.3" from new old stock to some older stock that currently has firmware "4.0".

cfg.png

Using the above memory dump configuration, on an old board (to avoid bricking a new one), I successfully performed a Verify Flash against the dump and it matched. However, when I tried programming it (after a mass erase), the operation failed with "Device or region is not blank or failed erase"

Any help would be appreciated. Thanks!

Tags (2)
0 Kudos
Reply
1 Solution
1,429 Views
Nico_V
Contributor II

Well, it worked... solved! (it wasn't the reset signal)

View solution in original post

0 Kudos
Reply
2 Replies
1,430 Views
Nico_V
Contributor II

Well, it worked... solved! (it wasn't the reset signal)

0 Kudos
Reply
1,433 Views
Nico_V
Contributor II

I was able to flash all the contents, except the last two banks of flash: 3E8000 and 3F8000. (I get lost in the redundancy of protection bits and bytes).
Also, the reset signal doesn't change after a Mass Erase

0 Kudos
Reply