SECTORS AND BLOCKS IN LPC936

Started by dptxp, April 22, 2010, 10:46:58 AM

Previous topic - Next topic

dptxp

Well it may hold for other members of LPC9XX family but I will talk for LPC936.

As per data sheet there are 8 nos 2K sectors. Each sector has 3 security bits assigned to it.
As per Flashmagic there are 32 Blocks. Each Block has 3 security bits assigned to it.

1) How do I interpret? Are security bits assigned to 2K sectors OR 512Byte Blocks (Mathematics says 4 blocks per sector).
2) Will I be able to use sectorerase and reprogram if I set the bit 1s of Blocks?

Sorry if I have missed in the datasheet or User Manual. 

Andy Ayre

When I select the LPC936 in Flash Magic I see eight blocks. One block = one sector.

Can you please post a screenshot where it shows 32 blocks for the LPC936. Thanks.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

dptxp

Actually later I realized that I can select only 8 out of 32 for LPC936, perhaps the list is for upto any 64K device
for future.

I have attached the image, it is in options on main form.

dptxp

I am setting bit1's for all sectors, cannot use bit 0.
All sectors have code except the 7th with boot code, so no one
can program any one sector without full sector erase to use MOVC.
And that takes of a part of useful code.

Is this logic OK? Does not look fool proof. If someone uses the last sector,
I can see problems.

So better to to put some program code in sector7 also?