Author Topic: Device Id Check in flash  (Read 13655 times)

Harshadbhai Ukani

  • Guest
Device Id Check in flash
« on: October 17, 2004, 08:26:50 pm »
Dear Andrew,

Will you please add signature verification before dumping the data in next version of flash magic?.

Problem is by mistake we load the programme while selected IC is 89C51rd2xx and the Target is having 89V51 then we don't get any prompt and the CODE gets programmed in 89V51 successfully, But target instrument  does not work. Porbably it corrupts block1 of 89V51 and after power on it never returns to user code.

If Flash Magic simply verifys the device ID before programming, it will solve this problem and will help a LOT.

-Harshadbhai

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Device Id Check in flash
« Reply #1 on: October 18, 2004, 08:10:05 am »
That is on our list of things to do in a future version of Flash Magic. There are still some devices in use that do not have unique signature bytes or have test signature bytes however and that is a problem that still needs to be resolved.

Embedded Systems Academy, Inc.
support at esacademy dot com

Harshadbhai Ukani

  • Guest
Re: Device Id Check in flash
« Reply #2 on: October 18, 2004, 09:59:04 pm »
Dear Andrew,
Please do for atleast which ever device have unique ID and give warning message for those for which do not have unique ID.

Your earlier action will be highly appreciated, as at present we have 89C51 and 89V51 for same type of instruments and are facing problems.

-Harshadbhai

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Device Id Check in flash
« Reply #3 on: October 18, 2004, 10:09:07 pm »
It's on our list of things to do. Right now you have a couple of ways for making accidental selection less likely. Select one device and save the configuration, then select the other device and save that configuration. Before using Flash Magic, load the configuration for the correct device.

Also you can create two batch files - one for each device.

Embedded Systems Academy, Inc.
support at esacademy dot com

Harshadbhai Ukani

  • Guest
Re: Device Id Check in flash
« Reply #4 on: October 19, 2004, 09:02:21 pm »

Dear Andrew,

One more request, Please add general communication port selection module, where in we can select Port from 1 to 16. With LAP top, using USB to serial convertor will give Port no. from 5 onwards and just because we don't have selction in Flash Magic we can not use LAPTOP

Secondly, Please give some delay after opennibg a port, before sending 'U' on the port. Or can flash magic transmitt contineous 'U' (Till it gets response) insted of just 1 U as you are doing in case of 89V51?. This will also help a lot for establissing connectivity.

-Harshadbhai

erikm

  • Guest
Re: Device Id Check in flash
« Reply #5 on: October 20, 2004, 05:23:15 am »
Please add general communication port selection module, where in we can select Port from 1 to 16. With LAP top, using USB to serial convertor will give Port no from 5

I second that request - and it is not a big job.

Not only that, but I, for instance, am running with 9 occupied serial ports on my desktop PC.  Way too many programs assume you need the excersice of switching plugs on an hourly basis to accomodate your stuff.

What do i have

2 CEIBO ICEs (Rx2 and LPC)
2 SILabs JTAGS (to debug 2 communicating chips)
1 J1708 port (converter equipped)
1 232 port
1 485 port (converter equipped)
1 ISP port for the Philips board
1 port for the Noritake display development board

As you see, it is quite a mess when most of those are 1-4 only.

Erik

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Device Id Check in flash
« Reply #6 on: October 20, 2004, 08:23:37 am »
You can use any COM port by simply typing in it's name, for example type in "COM 5", and Flash Magic will use COM Port 5.

You should reset your device into ISP mode before trying to do anything in Flash Magic. Then the device will be ready for the U. Alternatively you can use the option to place the device into ISP mode using DTR and RTS. When doing that you can control the delays by changing T1 and T2 in Flash Magic.

Embedded Systems Academy, Inc.
support at esacademy dot com

erikm

  • Guest
Re: Device Id Check in flash
« Reply #7 on: October 20, 2004, 10:30:00 am »
Please add general communication port selection module,

You can use any COM port by simply typing in it's name, for example type in "COM 5", and Flash Magic will use COM Port 5.

Is it not wonderful how "intuitive" windows is.

Erik

Harshadbhai Ukani

  • Guest
Re: Device Id Check in flash
« Reply #8 on: October 22, 2004, 08:20:44 pm »

Dear Andrew,

It is not very difficult to add module or to have multiple U transmission till you get 'U' from device. It will make Flash Magic easy to use on LapTop having Wnodws XP.

-Harshadbhai

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Device Id Check in flash
« Reply #9 on: October 25, 2004, 08:10:41 am »
I don't really see what the problem is. Flash Magic is developed on a laptop running Windows XP and I don't experience any problems.

Embedded Systems Academy, Inc.
support at esacademy dot com

Harshadbhai Ukani

  • Guest
Re: Device Id Check in flash
« Reply #10 on: October 26, 2004, 08:45:29 pm »

I have HPNX5000, problem is these models have TXD asserted while port is not open, and when FLASHMAGIC opens port TXD comes to normal state(Inactive). Target Micro assumes it to be a valid start bit and response with a null character,  Flash on getting character comes out of wait loop and as it has not received 'U' gives stanadered message Try to reduce baud rate.

-Harshadbhai

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Device Id Check in flash
« Reply #11 on: October 26, 2004, 09:12:34 pm »
Sounds like your COM port is defective perhaps? Maybe the manufacturer of your PC has a driver patch?

Embedded Systems Academy, Inc.
support at esacademy dot com

Harshadbhai Ukani

  • Guest
Re: Device Id Check in flash
« Reply #12 on: October 27, 2004, 08:38:42 pm »
Com port is not deffective as it works well with all my other application, and we can not force the manufacturer to have the port out put (TX) in some particular state when we are not addressing or the port is not opened.

-Harshadbhai