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 - Mucter

Thank you for replying.

I only advise that it is better for "Serial Number" dialogbox's Reset Serial Number sub box to
have a following red note.

WARNING: Resetting the serial number will erase not only serial number but also
user code and SoftICE mode.

See NXP's Datesheet in Table 12,Record Type 07.
"07 Reset serial number, erase user code, clear SoftICE mode"
seems Documented about how to disable SoftICE mode at least.

top window's web link bellow doesn't work!


P89V51Rx2/P89LV51Rx2 / How to Disable SoftICE mode
April 21, 2010, 11:06:04 PM
I have tested My target to enter SoftICE mode.
My target entered to SoftICE mode successfully.
But I couldn't find out how to disable SoftICE mode using Flash magic.

The Datesheet says in Table 12,Record Type 07
07 Reset serial number, erase user code, clear SoftICE mode
xxxxxx = required field but value is a 'don't care'
07 = reset serial number function
cc = checksum

ISP -> Serial Number -> Reset Serial Number seems to this function.
But there in no Keyword "SoftICE" in this dialog box.

I have an idea.
If your target doesn't run properly with Flash Magic,you can restore MCU flash by parallel programer.

1) download from

2) update bootloader
case 1) communication between MCU and Flash Magic is good.
From flash magic Isp -> Update Bootloader, you can simply update latest bootloader.
case 2) communication between MCU and Flash Magic is no good.
2-1) By parallel programmer, fill memory 0 to 11fff with 0xff
2-2) download corresponding Hex file in above zip file to parallel programmer.
2-3) overwrite 0x10000 to 0x10002 with 43 B1 02 (ORL FCF,#002H).
2-4) put your MCU to programmer and erase and program and verify.
2-5) put your MCU to your target board.
2-6) power on your target board.
2-7) From Flash Magic , Isp-> Read Device Sigcature

I have some questions.

1. Why Do You set TL1,TH1 in infinite loop.
If you intend to set initial value of TL1,TL2 , You must set values only one time.
TL1,TL2 can be overwriten by 0x33, 0xEE before interrupt occurs.

2. Do you intend to operate in timer 1 mode 1 [16-bit Timer/counter 'THx' and 'TLx' are cascaded;
there is no prescaler]
in datesheet Fig 9.[Timer/counter 0 or 1 in mode 1 (16-bit counter)] ?
If so , why don't you set TL1 and TH1 to next values in interrupt rootine TIMER1_ISR. your sample code, there are 3 {s and 4 }s. Is A } after TR1=1; not needed?

I didn't understand your intention in your sample code.
regards, Mucter.

P89V51Rx2/P89LV51Rx2 / Re: Programming of a P89V51RB2FN
November 17, 2009, 06:35:43 PM
To diagnose Simply ,
(1) Check the com # of the USB-ICP-80C51ISP using device manager.
(2) from Flash Magic Tools menu select Terminal
(3) Set Com port to (1)'s number,
     Set Baud rate to 9600
     click OK
(4) Power off the your target.
(5) Enter "U" continuously to input box bellow
(6) Power on the your target.

(7) IF target echo "UUUUUUUUUUUUUUUU" ...., first step is cleared.

(8) if not replied from target, check the RXD and TXD lines using oscilloscope.

P89V51Rx2/P89LV51Rx2 / Re: Programming of a P89V51RB2FN
November 15, 2009, 07:09:25 PM
According to
USB-ICP-80C51ISP supports NXP P89C51 Flash, not P89V51.

PSEN doesn't have special function on P89V51's ISP
Refer flash Magic's pdf users manual Page 44 (for P89C51) and Page 48(for P89V51).

3. Is your target /EA setting "HI"?
If low , target boot from external ROM.


Off-Topic (Read Only) / Re: post system errors
October 19, 2009, 05:00:57 PM
I have treid Firefox353 now.
It seems just like IE6.
I can't remove a top item of topic,but I can remove a sub item posted by myself.

I guess that user cannot delete a topic itself.


Off-Topic (Read Only) / post system errors
October 18, 2009, 10:23:03 PM
hi Andy

I tested post system.

A logout error
logout error occurs only on the Sleipnir browser.
error procedure is following.
1. from Sleipnir 2.85 go
2. Logon
3. Logout
4. message displays
Session verification failed. Please try logging out and back in again, and then try again.

B delete error
1. from IE 6
2.Login a test post on the "off-toppic"
4.attempt to Remove
5. Message displays
An Error Has Occurred!
You cannot delete your own topics in this board.  .


P89V51Rx2/P89LV51Rx2 / Re: about SoftICE
October 17, 2009, 06:41:41 AM
NXP answered to me following.

- SoftICE is a SST's Product.
- SST asked NXP to install SoftICE to shiped MCU.
- NXP can't offer latest SoftICE. If required , a user must purchase SoftICE from SST.

uuum. not so bad.
I wonder if SoftICE is so worth.
Off-Topic (Read Only) / Session verification failed
October 15, 2009, 10:45:47 PM
I attempted to delete some topic.
and system alarted as following.

Session verification failed. Please try logging out and back in again, and then try again.

I tried to logging out but same message was displayed.

Hi Andy.

It's understandable you said. I was thinking so after I posted.

But "File -> Save as" Command use same 16bytes command.
I think that this command would use rather 1-all comand than 16bytes command.

"1-all" means that user specified range(textbox from 0x___ to 0x____ ).


In Display Memory menu,
Flash Magic sends like following to target.

In this way it takes so many time because of short record length(16bytes)
My proposition is that Flash Magic just sends
(record length is 0x10000 bytes)
to target.

from my experiment,( in 9600 bps)
present way: 4:45
proposal way: 2:50


P89V51Rx2/P89LV51Rx2 / Flash Eraser
October 13, 2009, 08:51:59 PM

I made a utility "Flash Eraser"

I hope this help you.


Flash Eraser written by Mucter

How to Use Flash Eraser

1.What is Flash Eraser
In Normal Flash Magic and normal bootloader, if Security bit or Clock bit is once programmed
it cannot be erased using ISP.A parallel programmer is required.

Using Flash Eraser you can erase Security bit and Clock bit without parallel programmer.

1) Target board should has jumper SW setting /EA pin (GND or VCC)
2) Target board should has an External ROM socket.

1) Using a parallel programmer , program an external ROM with corresponding HEX file
    (you should do once only)
2) Attach the external ROM to your target board.
3) Change /EA setting from VCC to GND.
4) Power ON the target board.
5) from terminal software, send "U" charactor.
    (Flash Eraser responses "U*")

6) Power OFF the target board.
7) Change /EA setting from GND to VCC.

Now Your target is in following state.
  block0 : erased.
  block1 : bootloader is installed.
  security bit : unprogramed.
  clock bit    : unprogramed.

Then you can program anything again.
P89V51Rx2/P89LV51Rx2 / about SoftICE
October 08, 2009, 07:40:30 PM
I am researching for SoftICE.
I found same word SoftICE that SST developed and works with Keil debugger.
Its Hex data is downloadable from SST website.

It and NXP shiped MCU's SoftICE located at 0x10800-0x11F00 look like very well.
For Example,
SST: 0xE556 : 56 33 2E 34 (=> V3.4)

Shiped NXP MCU: 0x10D56 : 56 33 2E 34 (=> V3.4)
               : 0x0D56  : 56 33 2E 34 (=> V3.4) 
(linked from forum. I can't come to this address normaly in NXP web site,then I cannot judge if
this is the latest .At least Bootloader in this is for 89V51RD2 and old.)

I guess these origins might be identical.

Through my destributer, NXP answered that they don't support SoftICE, ask Keil.

I have 3 questions.
Though it might be different from the aim of this forum,
if someone knows, let me know.

(1) Where Can I get latest SoftICE for P89LV51Rx2.
(2) Who developed the SoftICE for P89LV51Rx2?
(3) If (2)'s answer is SST, Why NXP doesn't mention about SST through they ship SoftICE into MCU.
Hi Andy.

I found another bug.

1) From Isp Menu select Display Memory command.
2) Enter something in textbox(default: 0x0000 - 0xFFFF) at the bottom
3) Flash Magic crashes.