Page boundaries for flash block erase - question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Page boundaries for flash block erase - question

跳至解决方案
727 次查看
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

标签 (1)
0 项奖励
回复
1 解答
584 次查看
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 项奖励
回复
2 回复数
585 次查看
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 项奖励
回复
584 次查看
admin
Specialist II

many thanks for the reply

0 项奖励
回复