Author Topic: PXA-G49/USB-ICP-80C51ISP  (Read 1553 times)

jdr

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
    • Email
PXA-G49/USB-ICP-80C51ISP
« on: March 18, 2016, 05:06:11 pm »
Hello,
Programming a PXA-G49 with an 80C51ISP. I have the Flash Magic utility setting at: Advanced Options/Hardware Config: "Assert DTR and RTS while COM port open"
The attached scope images are of the TX/RX lines and they indicate that the chip gets the "f"... looks like it responds incorrectly the first time then correctly the second time and then a transmission begins... then fails. It throws a "unable to communicate" error.
I am using this setting because I can not get past the autobaud "f" without holding the PSEN down.
What could be the problem?
Thanks for your time.
Jeff

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2103
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: PXA-G49/USB-ICP-80C51ISP
« Reply #1 on: March 21, 2016, 09:32:18 am »
Please post a debug file. Instructions are here: http://www.flashmagictool.com/debugfile.html
Embedded Systems Academy, Inc.
support at esacademy dot com

jdr

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
    • Email
Re: PXA-G49/USB-ICP-80C51ISP
« Reply #2 on: March 21, 2016, 06:10:34 pm »
I've attached the debug file. It consists of a series of "Read Device Signature" commands with different baud rates and one command to program.
Thanks for taking a look.
Jeff

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2103
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: PXA-G49/USB-ICP-80C51ISP
« Reply #3 on: March 22, 2016, 01:15:13 pm »
All I see is that the Future Designs interface is echoing back what is sent to it. The command that Flash Magic sends is not acted upon, only echoed back. So there is no confirmation coming back saying that the command was processed.

Embedded Systems Academy, Inc.
support at esacademy dot com

jdr

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
    • Email
Re: PXA-G49/USB-ICP-80C51ISP
« Reply #4 on: March 22, 2016, 08:21:44 pm »
Isn't the echo coming from the PXA-G49? The ISP firmware is echoing back what the Flash Magic is sending. Maybe I am confused about that but I thought that the fact that the echo existed meant that the chip is in the ISP mode. I am using the "terminal" option in Flash Magic and getting the same echo but it is very inconsistent ... input matches output then it will start sending garbage. Are my assumptions incorrect?


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2103
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: PXA-G49/USB-ICP-80C51ISP
« Reply #5 on: March 22, 2016, 10:34:10 pm »
The interface you are using converts ISP to ICP. ICP is a hardware-level protocol. The ASCII responses are coming from the interface.
Embedded Systems Academy, Inc.
support at esacademy dot com

jdr

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
    • Email
Re: PXA-G49/USB-ICP-80C51ISP
« Reply #6 on: March 23, 2016, 09:40:55 pm »
The binary ASCII echo is from the TX pin 13 on the microcontroller, after a lower case "f" has been sent to RX pin 11 to establish baud rate. The microcontroller's ISP firmware is auto echoing the character (Application Notes An 716 page 3). no?

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2103
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: PXA-G49/USB-ICP-80C51ISP
« Reply #7 on: March 23, 2016, 10:42:11 pm »
I suggest you contact Future Designs. From your debug file it seems Flash Magic is sending a valid command but is not getting a valid response back. We can tell you what Flash Magic is doing, and we can fix any bugs there if necessary, but we can't tell you what the Future Designs interface is doing. I'm sure they will quickly be able to identify what step is missing.



Embedded Systems Academy, Inc.
support at esacademy dot com