P89LPC922 Security bits

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

P89LPC922 Security bits

1,275 Views
rafal_obirek
Contributor I

Hi everybody,

I have microcontroller LPC922 and he has some sectors locked with security bits ( 0x07 ).

In the documentation is written ( as I understood ) that "global erase" shall clear these bits with 0x00  ( parallel programmer )

http://www.keil.com/dd/docs/datashts/philips/ps_900.pdf 

I bought a programmer TOP2013 and during ERASE I have observed with logic analyzer what is written to.

As I expected there was written 0x72 order to FMCON register and than is few reads from FMCON to check if programming was successor not.  This checking takes around 4ms  and status is always F0 what tells that chip is BUSY  ( probably erasing is in progress ). But programmer doesn't wait until the status is 0x70 and breaks VCC and return SUCCESS.

Later after reading security bits is still the same and nothing changes.

Writing 0x07 to other sectors which were 0x00 before works perfectly, but restoring it back by global erase not.

And my question is now :

1. When security bits for given sector is already 0x07 is it possible to restore it back with 0x00 via global erase at all?

2. How long can take the execution of GLOBAL ERASE for this chip ?

Regards

Rafael

Labels (1)
0 Kudos
5 Replies

1,176 Views
rafal_obirek
Contributor I

Update from yesterday :

I tok Nucleo board and I have generated sequence to send "global erase".  Status was changed from BUSY to READY after around 7ms.   Security bits were succesfully erased. That means it is a bug in programmer or programmer application  TopAll8. After erasing all my microcontrollers with Nucleo board, I was able to program bootloader using TOP2013 and then access to uC via ISP.  Everything works now.

0 Kudos

1,176 Views
jacekgałuszczyń
Contributor I

Witam,czy mógłbyś udostępnić kod do Nucleo na global erase?

Pozdrawiam,

JacekG

0 Kudos

1,176 Views
rafal_obirek
Contributor I

Hej.

Teraz jestem na urlopie do 28 lipca więc nie mam możliwości.

Ale jak wrócę to się podzielę. Wszystko chyba jest jako projekt w środowisku Cube. Spakuję i wyślę całość. Mogę dodatkowo dać bootloader do poprawnego działania isp.

Ustawiłem sobie przypomnienie na telefonie to nie zapomnę.

Regards/MfG/Pozdrawiam

Rafal Obirek

0 Kudos

1,176 Views
jacekgałuszczyń
Contributor I

Dzięki, miłego urlopu.

0 Kudos

1,176 Views
rafal_obirek
Contributor I

Wrzuciłem wszystko tutaj :   GitHub - kociejsko/lpc922_erase_Nucleo 

0 Kudos