Page boundaries for flash block erase - question

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

Page boundaries for flash block erase - question

Jump to solution
762 Views
russellsher
Contributor III

Hi

I am using an MC9S08QE128. Looking at the memory map:

There is an 8064 byte flash block from 0x2080 to 0x3FFF.

If I want to erase a 512 byte block of flash, (I am using doonstack), must the block start at a page boundary such as 0x2100? The RAM space above this block in the memory map is 0x1880 to 0x207F. Can I erase from 0x2080 since this is not the start of a boundary or would I have to erase from 0x2000 ? (which may cause problems, since the ram extends to 0x207F)

thanks

Russell

Labels (1)
0 Kudos
Reply
1 Solution
619 Views
kef
Specialist I

You can erase sector at 0x2080. This will erase whole 512bytes sector. You'll get erased nonbanked addresses 0x2080..0x21FF, also banked addresses PPAGE=0:0xA000 to PPAGE=0:0xA1FF.

View solution in original post

0 Kudos
Reply
2 Replies
620 Views
kef
Specialist I

You can erase sector at 0x2080. This will erase whole 512bytes sector. You'll get erased nonbanked addresses 0x2080..0x21FF, also banked addresses PPAGE=0:0xA000 to PPAGE=0:0xA1FF.

0 Kudos
Reply
619 Views
admin
Specialist II

many thanks for the reply

0 Kudos
Reply