Sign in

username:

password:



Not a member?

Search LPC900_users



Search tips

Subscribe to LPC900_users



Ads

Discussion Groups

Discussion Groups | LPC900 | ISP to ICP Bridge: erasing flash blocks

Find help, specifications and source code for the LPC900. The LPC900 challenges Microchip and AVR based on the worlds most popular 8-bit architecture the 80C51. With a 2-clock core the LPC900 series is a high performance, very flexible and low cost 8-bit microcontroller family. Designers using or interested in these devices are encouraged to share their know-how and ask questions.

ISP to ICP Bridge: erasing flash blocks - maciej_wiatr - Feb 14 6:38:00 2006

All,

I am using the ISP to ICP bridge based on MCB900 from Keil to program 
a PCB-soldered LPC936 (TSSOP). It is possible to read the device ID, 
to program user configuration register and all the additional 
security bits. It is also possible to program the device itself, 
unfortunately only for the first time, when the device is blank. 

All effort to reprogram the device via ISP to ICP bridge was not 
successful. The problem is, that the flash erase operation DOES NOT 
WORK! When you select 'Erase all flash' the erase procedure seems to 
run, you see the flash block numbers, which are currently supposed to 
be erased in the Flash Magic status bar counting from 0 to 7. When 
you look at the CRC of the device once the erase procedure has 
finished you can see only block 0 with CRC of 0x000000. CRCs for all 
other blocks remain always the same as after the first programming on 
the blank device.

I've already tried all that I could imaging would help - without 
success. I tried to erase block-wise or even sector-wise. The 
communication seems not to be the problem, as I can read and write 
all config register etc. The protection bist are unset for all blocks.

Have you experienced similar problems?
Any idea to overcome them?

Thanks a lot,
Maciej
	


(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )


Re: ISP to ICP Bridge: erasing flash blocks - Johann Sohl - Feb 14 9:44:00 2006


Hi,

once I have had similar problems. See at

http://www.esacademy.com/software/flashmagic/forum/read.php?f=1&i=2564&t=2561

Now, I am happy.

Regards,

Johnny
	At 10:38 14.02.2006 +0000, you wrote:
>All,
>
>I am using the ISP to ICP bridge based on MCB900 from Keil to program
>a PCB-soldered LPC936 (TSSOP). It is possible to read the device ID,
>to program user configuration register and all the additional
>security bits. It is also possible to program the device itself,
>unfortunately only for the first time, when the device is blank.
>
>All effort to reprogram the device via ISP to ICP bridge was not
>successful. The problem is, that the flash erase operation DOES NOT
>WORK! When you select 'Erase all flash' the erase procedure seems to
>run, you see the flash block numbers, which are currently supposed to
>be erased in the Flash Magic status bar counting from 0 to 7. When
>you look at the CRC of the device once the erase procedure has
>finished you can see only block 0 with CRC of 0x000000. CRCs for all
>other blocks remain always the same as after the first programming on
>the blank device.
>
>I've already tried all that I could imaging would help - without
>success. I tried to erase block-wise or even sector-wise. The
>communication seems not to be the problem, as I can read and write
>all config register etc. The protection bist are unset for all blocks.
>
>Have you experienced similar problems?
>Any idea to overcome them?
>
>Thanks a lot,
>Maciej
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
	


(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )

Re: ISP to ICP Bridge: erasing flash blocks - Dr. Maciej Wiatr - Feb 17 20:03:00 2006

Hi Johnny,

thanks for your hint. I've checked the message.

Unfortunately, it was not the same problem. I could establish 
communication every time I wanted - reading the device ID was no 
problem. Flash erase could not be done...

After some other tries I was so deperate to install an old version of 
the ISP to ICP code. I'm not quite sure, which version it was. It comes 
with the documentation for Rev. 01 — 24 March 2004. And - it works now! 
An addition option, which had to be set was to NOT PROTECT the ISP code 
which means, that the whole flash memory is erased...

Did PHILIPS make something wrong in the implementation of the latest 
bridge code?

Anyway, it is now stable for me each time I want to reprogram the chip. 
The entire flash erase seems to be necesary, though.

Thanks,
Maciej

Johann Sohl schrieb:
> 
> 
> Hi,
> 
> once I have had similar problems. See at
> 
>
http://www.esacademy.com/software/flashmagic/forum/read.php?f=1&i=2564&t=2561 
>
<http://www.esacademy.com/software/flashmagic/forum/read.php?f=1&i=2564&t=2561>
> 
> Now, I am happy.
> 
> Regards,
> 
> Johnny
> 
> 
> At 10:38 14.02.2006 +0000, you wrote:
>  >All,
>  >
>  >I am using the ISP to ICP bridge based on MCB900 from Keil to program
>  >a PCB-soldered LPC936 (TSSOP). It is possible to read the device ID,
>  >to program user configuration register and all the additional
>  >security bits. It is also possible to program the device itself,
>  >unfortunately only for the first time, when the device is blank.
>  >
>  >All effort to reprogram the device via ISP to ICP bridge was not
>  >successful. The problem is, that the flash erase operation DOES NOT
>  >WORK! When you select 'Erase all flash' the erase procedure seems to
>  >run, you see the flash block numbers, which are currently supposed to
>  >be erased in the Flash Magic status bar counting from 0 to 7. When
>  >you look at the CRC of the device once the erase procedure has
>  >finished you can see only block 0 with CRC of 0x000000. CRCs for all
>  >other blocks remain always the same as after the first programming on
>  >the blank device.
>  >
>  >I've already tried all that I could imaging would help - without
>  >success. I tried to erase block-wise or even sector-wise. The
>  >communication seems not to be the problem, as I can read and write
>  >all config register etc. The protection bist are unset for all blocks.
>  >
>  >Have you experienced similar problems?
>  >Any idea to overcome them?
>  >
>  >Thanks a lot,
>  >Maciej



(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )