Flash Magic Forum

In-System Programming Support => P89C51Rx+/P89C51Rx2/P89C66x/P89C6xX2/P89V66x => Topic started by: Melina on June 19, 2007, 08:05:21 AM

Title: Device Configuration via Commandline for P89V51RC
Post by: Melina on June 19, 2007, 08:05:21 AM
Hello,

I'll use the command line interface for ISP-programming of P89V51RC2. I have got a bootloader which supports the ISP-EntryMode via a PortPin (high). With fm it works fine but I tried to find the function Device Configuration in the fm-manual for the command line interface but this function doesn't exist.
Does anybody can help me to change the ISP EntryMode via command line instead using the GUI-version.
I use the fm-version 3.60.

Thanks for help.
Title: Re: Device Configuration via Commandline for P89V51RC
Post by: Andy Ayre on June 19, 2007, 05:04:19 PM
Try CONFIG(0xsspp) where ss and pp are the 8-bit values used in the 0CH hex record to configure the device. For details of the 0CH hex record see the PDF file that came with the bootloader. For example:

CONFIG(0x01A7)

should program the device to execute user code if P2.7 = 1, else execute ISP.

Andy
Title: Re: Device Configuration via Commandline for P89V51RC
Post by: TomP on July 25, 2007, 08:16:21 AM
Quote from: Andy Ayre on June 19, 2007, 05:04:19 PM
Try CONFIG(0xsspp) where ss and pp are the 8-bit values used in the 0CH hex record to configure the device. For details of the 0CH hex record see the PDF file that came with the bootloader. For example:

CONFIG(0x01A7)

should program the device to execute user code if P2.7 = 1, else execute ISP.

Andy

The pdf (bootcode_new_LV_ver_71.pdf) says that this is only for the RD2 versions.
Will this work on RB2 & RC2 parts too?

tom
Title: Re: Device Configuration via Commandline for P89V51RC
Post by: Andy Ayre on July 26, 2007, 07:55:44 AM
I double-checked with NXP. This festure is supported in all the new bootloaders in the zip file.

Andy