Shop OBEX P1 Docs P2 Docs Learn Events
Hardware debugging help? — Parallax Forums

Hardware debugging help?

ThricThric Posts: 109
edited 2011-12-11 09:32 in Propeller 1
Hi, I'm having some issues (again :confused: )with my current propeller project and the main focus is on programming my chip.

Right now i'm using a custom PCB that uses a FT232RQ chip and the reset transistor circuit to program my propeller (part of the schematic is attached, there are plenty of bypass capacitors that are just not shown). The issue comes up when I try to program; sometimes it works and sometimes it doesn't. i know that that my PC knows that the FTDI chip is there as it scans the comport, but for some reason it doesn't detect the propeller that's connected to it. The times that I have been able to program it I've been able to run the PST object and communicate to my terminal screen through my on-board USB and through my XBEE.

I have noticed a pattern, however, that i believe has something to do with it:
leaving the board to sit for a while (more than an hour or so) I can program it and I can program it repeatedly meaning that if i don't do anything to the board it'll be fine.
Once i add my xbee to my PCB the programing stops, it scans the port but doesn't detect the propeller. The propeller does reset though.

What could be causing the randomness in programming ability?
Are the values for the resistor and capacitor in the Reset circuit correct (as a side note the cap isn't 10nf its actually 22pf)? or more specifically why does the ASC (http://mghdesigns.com/index.php?main_page=product_info&products_id=4) have different resistor and capacitor values than the gadget gangster board (http://gadgetgangster.com/find-a-project/56?projectnum=257)?

I think it may have something to do with the reset curcuit, but then again it does reset fine, even when programming failed (as in my PC scans and fails to connect but reset occurs).
1024 x 576 - 88K

Comments

  • SapiehaSapieha Posts: 2,964
    edited 2011-12-10 20:58
    Hi Thric.

    My guess -- Yours Voltage regulators leave to little current.

    Thric wrote: »
    Hi, I'm having some issues (again :confused: )with my current propeller project and the main focus is on programming my chip.

    Right now i'm using a custom PCB that uses a FT232RQ chip and the reset transistor circuit to program my propeller (part of the schematic is attached, there are plenty of bypass capacitors that are just not shown). The issue comes up when I try to program; sometimes it works and sometimes it doesn't. i know that that my PC knows that the FTDI chip is there as it scans the comport, but for some reason it doesn't detect the propeller that's connected to it. The times that I have been able to program it I've been able to run the PST object and communicate to my terminal screen through my on-board USB and through my XBEE.

    I have noticed a pattern, however, that i believe has something to do with it:
    leaving the board to sit for a while (more than an hour or so) I can program it and I can program it repeatedly meaning that if i don't do anything to the board it'll be fine.
    Once i add my xbee to my PCB the programing stops, it scans the port but doesn't detect the propeller. The propeller does reset though.

    What could be causing the randomness in programming ability?
    Are the values for the resistor and capacitor in the Reset circuit correct (as a side note the cap isn't 10nf its actually 22pf)? or more specifically why does the ASC (http://mghdesigns.com/index.php?main_page=product_info&products_id=4) have different resistor and capacitor values than the gadget gangster board (http://gadgetgangster.com/find-a-project/56?projectnum=257)?

    I think it may have something to do with the reset curcuit, but then again it does reset fine, even when programming failed (as in my PC scans and fails to connect but reset occurs).
  • ElectricAyeElectricAye Posts: 4,561
    edited 2011-12-10 21:16
    Thric wrote: »
    ...
    I have noticed a pattern, however, that i believe has something to do with it:
    leaving the board to sit for a while (more than an hour or so) I can program it and I can program it repeatedly....

    Are you running off a battery of some kind?
  • ThricThric Posts: 109
    edited 2011-12-11 08:13
    The voltage regulator is rated for a good 5 amps output so I don't believe that's the point of failure. I've switched the batteries and fixed some issues with my pcb board and it seems to be working now with the usb, except that it doesn't like the EEPROM any more :frown: . I'll go double check my soldering for that but it was working earlier.. hmmmm.

    Edit: What does the message 'EEPROM programming error on COM14' actually mean?
  • AleAle Posts: 2,363
    edited 2011-12-11 08:37
    It means that it does not recognizes the EEPROM, or the EEPROM does not answer. I'd check the connectios, solder joints of the eeprom and propeller. You can build a simple I2C sniffer with another propeller (this time in a bread-board, for speed :) and check if the EEPROM answers. It could be that one of the two I2C pins is shorted to ground (happened to me). Btw,a propeller pin shorted to ground normally survives (YMMV) but other ICs are not that robust (FT232 I'm looking at you :D)
  • ThricThric Posts: 109
    edited 2011-12-11 09:32
    Alright I think the issue was that there was a short caused by some excess flux that i didn't clean out. After some brushing away and letting the board dry for a while EEPROM is back in action :smile:. So it seems that the problem was caused by low batteries, a backward led on the FT232 (silly me...), and excess flux causing a short. Thanks for all the help! Now on to debugging my BMP085 and compass :P
Sign In or Register to comment.