Page boundaries for flash block erase - question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Page boundaries for flash block erase - question

ソリューションへジャンプ
725件の閲覧回数
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 解決策
582件の閲覧回数
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 返答(返信)
583件の閲覧回数
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 件の賞賛
返信
582件の閲覧回数
admin
Specialist II

many thanks for the reply

0 件の賞賛
返信