Flash Mass Erase 9s12X

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

Flash Mass Erase 9s12X

1,207 Views
micromo
Contributor I
I am using the 9s12X512
 
Question is regrading using the Flash mass erase command
 
I noticed in the docs it does divid the Flash in to BLOCKS, but where do the BLOCkS
begin. for example
 
Block 0
780000 - 79FFFF
Block 1
7A0000 - 7BFFFF
Block 2
7C0000- 7DFFFF
Block 3
7E0000- 7FFFFF
 
using PAGING to MASS erase BLOCK 0  I would use PPAGE = F8
and point to address 0x8000 and it will earse the whole BLOCK ?
 
Thank you in advance for any help
 
 
Labels (1)
0 Kudos
1 Reply

270 Views
kef
Specialist I


micromo wrote:
I am using the 9s12X512
 
Question is regrading using the Flash mass erase command
 
I noticed in the docs it does divid the Flash in to BLOCKS, but where do the BLOCkS
begin. for example
 
Block 0
780000 - 79FFFF
Block 1
7A0000 - 7BFFFF
Block 2
7C0000- 7DFFFF
Block 3
7E0000- 7FFFFF
 
That's right.
 
using PAGING to MASS erase BLOCK 0  I would use PPAGE = F8
and point to address 0x8000 and it will earse the whole BLOCK ?
 
No, you should use PPAGE = $E0 and point to $8000
 
Thank you in advance for any help
 
 



0 Kudos