Main Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dptxp

With both enabled, only the Clock bit gets set (2X mode) and and device has to be set into ISP mode again
to program the P89VRD2 again to set the security bit.

This is true for all the versions I have used so far.

Problem vanished in
version 5.75.2177

I lost quite a few in 5.70, was using 4.6, took risk with 1 device
in 5.75.2177. Fortunately all seems OK.


LPC9xx/LPC9xxx / Re: Read Flash Memory?
May 15, 2010, 04:04:23 AM
Quote from: Ralf_Brandt on May 03, 2010, 12:45:54 PM
Maybe you need to get an updated Doc from NXP.

The Bootlodercode supplyied by NXP does contain a
Function 09 -Read User

And if I open a Terminal and type in:
I will get a perfect Memory Dump.
Tested with a brand new 89LPC921.

So at least the current 921 do support memory read.


There is no such doc, please give link if there is one.
LPC9xx/LPC9xxx / Re: Read Flash Memory?
May 15, 2010, 03:01:28 AM
Actually they are bits 0 to 2, I had also made the same mistake.
So Bit 0 (not 1) is to disable movc. But how can one set it if movc is used in the software?
The software will not work.
LPC9xx/LPC9xxx / Re: Read Flash Memory?
May 06, 2010, 10:36:57 PM
Security bit 1 stops movc from the sector in which it is set, bit 2 stops erase and program, bit 3 makes device useless for ISP.

So with movc to use and ISP to be enabled, only bit 2 set in all sectors except the one with ISP, can be a bit of help.

There is no read option, except the way given in the post (do not know if it is true), so there is no read protection bit.
LPC9xx/LPC9xxx / Re: Read Flash Memory?
May 06, 2010, 05:36:24 AM
This is bad. This means that anyone can read the code. And there is no way to stop this.
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?
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.
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. 
In options>>Advanced>>Hardware Config, Have you unchecked the DTR/RTS ? If not, please do.
You need to connect Tx and Rx only and RESET the device (power-off and then ON) or switch it ON from OFF
after you get the message to get into ISP mode.
Sometimes you may need more than 1 attempt.
Works at 57600 bps too.
1) I am aware that the device has to be powered down for the serial number to work. I have been using RD2 for years now.
This is the only way to verify that serial number is set. This is how I found out that it is not working with FM 5.61.

2) Occasionally a device does not go into ISP mode as I just insert the USB power cable to power up after clicking on
'read device signature'. So if I had to do it twice, it was normal. Normally it gets into programming mode in one go.
But not always, even in new device.

3) I checked today again though I am 100% sure of the problem.

4) It was just that I had an older setup file. From where can one download older versions of Flashmagic?

And thanks.
Here is the debug file.
I could not see any readable character in notepad.
So it is obviously not text.

I had to power up twice to read device ID.

Well, I use address 3000H for this (>1FFFH), write 01H and the 00H to FCF (0B1H) to get into boot code, call PGM_MTP (1FF0H) with right parameters, exit by writing 01H to FCF to get back to user code.

Nothing happens when I run. The bits do not get set and the micro resets.

Since it takes 2 steps to program the security and clock bit by flashmagic (security bit does not set if clock bit programed in same programed cycle), I had tried this.
Boot loader version is 7. FM version 4.60 (reason of not using 5.61 given in previous post).

Why IAP does not work to program these bits?
I use RD2BN.