Author Topic: ISP options in FLASHMAGIC  (Read 5644 times)

Hitesh

  • Guest
ISP options in FLASHMAGIC
« on: September 15, 2004, 07:04:12 pm »
I have installed FlashMagic v2.07 (DLL v1.74). I use it for LPC932.

Some of the ISP menu options are not functional. viz.
Display Flash Memory...
Verify...
Execute...
Reset...
Read Clocks...
Serial Numbers...  (Not interested)
Enable SoftICE...  (Not interested)


I am able to enter ISP mode by my own RESET hardware & RX/TX chip. LPC932 responds to all commands. Code is written to also. I am using internal oscillator. But device donot function after programming.

Please suggest.

With warm regards
Hitesh Mahant
VITAL TECHNOLOGIES


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ISP options in FLASHMAGIC
« Reply #1 on: September 16, 2004, 09:30:10 am »
Display flash memory: LPC932 does not this functionality

Verify: you cannot read data out of the LPC932 to compare

Execute: to my knowledge LPC932 does not support this

Reset: to my knowledge LPC932 does not support this, but is not needed when using DTR and RTS anyway

Read Clocks: LPC932 does not support this

Serial Numbers: LPC932 does not support this

Enable SoftICE: LPC932 does not support this

If items are disabled in Flash Magic, it is because the selected device does not support it. You might want to take a quick look at the LPC932 datasheet to find out the capabilities of the device you are using.

Embedded Systems Academy, Inc.
support at esacademy dot com

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ISP options in FLASHMAGIC
« Reply #2 on: September 16, 2004, 09:31:28 am »
If you can repeatedly enter ISP mode but your code does not work, then you might have made a mistake somewhere. The simplist test is to toggle a pin. You can simulate this in a simulator first to ensure your code is correct.

Embedded Systems Academy, Inc.
support at esacademy dot com

Hitesh

  • Guest
Re: ISP options in FLASHMAGIC
« Reply #3 on: September 16, 2004, 09:14:14 pm »
Thanks ANDY for replies.

Regarding menu items disabled,  possible if LPC932 doesnot support these functions. I don't know as trying to use it for first time.

Regarding functioning, i wrote a small program to make all ports as quasi i/o by writing 00h to all PxM1 & PxM2 registers. And then  by just software delays, i toggle all ports, an LED conected to p1.2. LED donot blink. Also no port pins show any status on logic-probe, so still these are input only! means my code is not executing?

i know it might be a silly mistake i may be making! i am still trying to figure out.

Hitesh


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ISP options in FLASHMAGIC
« Reply #4 on: September 17, 2004, 08:26:47 am »
I can't give advice on programming devices, except to suggest that you try it in an LPC9xx simulator, such as Keil's uVision2/3. You might want to post your question on the forum at www.8052.com.

Are you sure quasi-bidirectional is the right choice for your hardware design???

Embedded Systems Academy, Inc.
support at esacademy dot com

Hitesh

  • Guest
Re: ISP options in FLASHMAGIC
« Reply #5 on: November 07, 2004, 10:25:17 pm »
Andy,

As i said, it was silly mistake.

The PCB had provision for TSSOP, so i tried straight-away,  didnot worked! Then I breadboarded a small ckt for PLCC, and it worked. Then i compared CPU-stamps and came to know, TSSOPs are Ctype and PLCC are Ftype! Supplied in same lot by local Dealer.

The problem is TSSOP with F-version is not available here, i will have import!

Anyway thanks for your valued help.

Regards :cheers:
Hitesh
www.vital4all.com


Anurag

  • Guest
query
« Reply #6 on: September 16, 2005, 07:41:20 am »
hello everybody ,
I have an issue
could any one guide me how to reprogram an IC of P89v51rd2fa whose security bit has been set previously while programming with flash magic
In other words how to remove the security bit .
Anurag

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ISP options in FLASHMAGIC
« Reply #7 on: September 16, 2005, 08:58:43 am »
It looks to me from the datasheet that the only way to clear the security bits is to perform a full device erase (erase all flash).

Andy

Embedded Systems Academy, Inc.
support at esacademy dot com

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re:erasing a locked P89V51RD2
« Reply #8 on: September 16, 2005, 09:56:17 am »
I would expect that even for full chip erase via ISP, entering the correct password first is necessary.

Jan Waclawek

erikm

  • Guest
Re: ISP options in FLASHMAGIC
« Reply #9 on: September 16, 2005, 01:38:37 pm »
I would expect that even for full chip erase via ISP, entering the correct password first is necessary.

WHY, who will gain anything from "breaking" the security bit when the result is a blank chip??

as far as I know the above is not true, no "password" required.  

Erik

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ISP options in FLASHMAGIC
« Reply #10 on: September 16, 2005, 01:44:24 pm »
Duh - my answer was for the 89CRx2xx. I'm not 100% sure how the security bit is erased on the V and LV devices. Setting it does not disable ISP reading of flash though - that is the purpose of the serial number.

Embedded Systems Academy, Inc.
support at esacademy dot com

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: ISP options in FLASHMAGIC
« Reply #11 on: September 16, 2005, 02:01:45 pm »
P89V51RB2_RC2_RD2-03.pdf, 7.2.5 Using the serial number, page 25:
Quote
If the serial number is in use, reading, programming, or erasing of the user code memory or the serial number is blocked until the user transmits a