9S08DZ60 0x1080-0x13FF flash area

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

9S08DZ60 0x1080-0x13FF flash area

373 Views
nicolaskouznetz
Contributor I

Hello,

I have a question regarding the flash area located at addresses 0x1080-0x13FF on 9S08DZ60.

The datasheet mentions a sector size of 768 bytes for the 9S08DZ60.

Of course the area 0x1080-0x13FF is not 768 but 896 bytes.

After doing some testing, I have found the following :

- From 0x1080 to 0x12FF  first "sector" of 640 bytes.

- From 0x1300 to 0x13FF second "sector" 256 bytes.

As I do not like to make a rule from experiments, I wonder if anyone has ever asked the same question ?

0 Kudos
1 Reply

295 Views
kef2
Senior Contributor IV

It's interesting. I think you figured it right. Looking at DZ16/32/48 memory maps, flash sectors seem being top aligned. I mean that for DZ16 with bottom flash address 0x7c00:

(0x7C00 % 768) != 0  // not bottom aligned

((0x10000 - 0x7C00) % 768) == 0 // top aligned

The same applies to DZ32 and DZ48 and should be valid as well for DZ60, though we don't see bottom physical flash address on DZ60, it must be hidden under RAM. We still can assume that DZ60 flash is similar to DZ16/32/48 flash and that flash pages in 0x1080..0x13FF area should end/start at

0x10000 - ((int)((0x10000 - 0x1080) / 768) * 768 = 0x1300.

Edward

0 Kudos