Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: dptxp on April 22, 2010, 10:46:58 AM

Title: SECTORS AND BLOCKS IN LPC936
Post by: dptxp on April 22, 2010, 10:46:58 AM
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. 
Title: Re: SECTORS AND BLOCKS IN LPC936
Post by: Andy Ayre on April 23, 2010, 08:59:16 AM
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
Title: Re: SECTORS AND BLOCKS IN LPC936
Post by: dptxp on April 25, 2010, 09:56:42 AM
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.
Title: Re: SECTORS AND BLOCKS IN LPC936
Post by: dptxp on April 25, 2010, 10:03:56 AM
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?