Welcome, Guest. Please login or register.

Username: Password:
Pages: [1] 2

Author Topic: Read failed  (Read 6269 times)

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Read failed
« on: April 05, 2018, 06:02:39 »

Strange new error now that Im trying to put in my TMC2100 drivers.  I can't configure using the latest utility, it times out.  Strangely if I run "update firmware" it seems to go through all the motions and avrdude reports complete.

Any suggestions?  I had a similar problem a while back and Tom asked me to upload a specific hex file to troubleshoot, but I never did because it magically started working again.

I have a manufactured 4.4 astroeq.
Logged

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Re: Read failed
« Reply #1 on: April 06, 2018, 04:14:41 »

I followed the instructions to upload a config checker to the astroeq via avrdude.exe from a couple years ago.  here is the output.

So it seems like something is working, just can't change the config, or load eqmod.

àààààààààààààààààààààààààààààààààààààààààààààààààààààààààààààAEQ8.11è
RA Reverse = 0
DEC Reverse = 1
Driver Version = [1] = DRV882x
Microstep Mode = [32] = 1/32
RA aVal = [0,64,56,0] = 3686400
DEC aVal = [0,64,56,0] = 3686400
RA bVal = [207,51] = 13263
DEC bVal = [207,51] = 13263
RA sVal = [0,100] = 25600
DEC sVal = [0,100] = 25600
RA IVal = [54,1] = 310
DEC IVal = [54,1] = 310
RA Goto Encoded = [1]
DEC Goto Encoded = [1]
Logged

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Re: Read failed
« Reply #2 on: April 06, 2018, 05:26:51 »

put the normal hex back on.  still not working... Tried a different computer, nothing.  Went back to the original computer.  Now it's working.

Hmm

well now I can try the TMC2100 drivers at least.  Not sure if something is dying on my board..  I guess I should get a different cable to try too.  MiniUSB not so common anymore..
Logged

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Re: Read failed
« Reply #3 on: April 08, 2018, 19:00:30 »

Ok, I lied.  I put everything back up on the roof (semi permanent setup), and it's not working again.  Ill try a different cable, but I think something is wrong with my board somewhere.

Back to the original problem on the first post.
Logged

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Re: Read failed
« Reply #4 on: April 09, 2018, 00:09:11 »

tried different cable and usb port in the computer.  still no dice
Logged

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Re: Read failed
« Reply #5 on: April 11, 2018, 17:40:15 »

and tried again on a different computer.  Just back to read failed.  Before I could update the firmware even though I couldn't configure.  Now I can't even update the firmware.

See attachement.
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Read failed
« Reply #6 on: April 11, 2018, 18:37:02 »

Sorry for the lack of responsiveness, I've got lots of work to do.

It sounds like there is a hardware failure somewhere, but hard to say where.

I would start by removing the ICs and plugging them back in again. V4.4 puts you somewhere back in early 2015 if I'm not mistaken, so after 3 years it's quite possible that the contacts on the IC sockets have oxidised. This could cause weird intermittent failures.

If that doesn't help, have a quick look over the solder joints to see if there are any that look cold.

Let me know how it goes.
Logged
Tom Carpenter (AstroEQ)

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Re: Read failed
« Reply #7 on: April 11, 2018, 18:44:18 »

I get being busy!

Thanks for the reply.  Ill reseat the chips, and I can drop an iron on each solder joint as well.
Logged

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Re: Read failed
« Reply #8 on: April 11, 2018, 18:53:46 »

I Removed the chips and put them back in.  Now it's letting me configure and update the firmware.

Thanks.  I can test out the TMC2100 drivers now.
Logged

Washy

  • Full Member
  • ***
  • Posts: 19
    • View Profile
Re: Read failed
« Reply #9 on: April 12, 2018, 08:44:00 »

So I've just built a new mega2650/tmc2100 based box (didn't want to disturb my old 8825 one in case we get a clear sky!), and I cant read the eeprom - it was working at first (well the motors didn't do anything), so I configured it again with 4ustep rather than 16ustep and that worked but really high pitched noises and wrong speeds so I tried to configure again...

... I thought I'd give the advanced h/c button a go, bad idea that's bricked my eeprom I can read and write sketches to the board, and upload the astroeq firmware but I can't configure because eeprom reading fails - I suspect the bootloader is at fault and I will put that right today and see if I can't get it working...
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Read failed
« Reply #10 on: April 12, 2018, 08:54:54 »

When you plug in a H/C it detects the speed button shorting one of the ST-4 pins to GMD and then switches from EQMOD mode to standalone mode. You can't program in standalone mode.
To change back, simply unplug the H/C and either power-cycle the board or for Mega press the reset button.
Logged
Tom Carpenter (AstroEQ)

Washy

  • Full Member
  • ***
  • Posts: 19
    • View Profile
Re: Read failed
« Reply #11 on: April 12, 2018, 09:05:48 »

When you plug in a H/C it detects the speed button shorting one of the ST-4 pins to GMD and then switches from EQMOD mode to standalone mode. You can't program in standalone mode.
To change back, simply unplug the H/C and either power-cycle the board or for Mega press the reset button.

I don't actually have a h/c though, when I get to the office I'll see whats what and if I can interface with the eeprom with a normal sketch or if I've broken something and put the correct bootloader on the board either way.
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Read failed
« Reply #12 on: April 12, 2018, 09:19:43 »

Ahh. Ok.

How long ago did you build the Mega? Do you have R21 (shown here)? If not, place a 1k resistor between digital pin 21 and digital pin 23. Without that resistor it will always think a hand controller is connected.
Logged
Tom Carpenter (AstroEQ)

Washy

  • Full Member
  • ***
  • Posts: 19
    • View Profile
Re: Read failed
« Reply #13 on: April 12, 2018, 10:46:07 »

I only built it yesterday - but I only have the motor drivers - dont really need the other bells and whistles...  As you recommend however the resistor has fixed the issue and I've now disabled the HC again...  Thanks :)

So when I get home I can get back to making it work properly...

... I'm getting that sinking feeling one of the config jumpers on the TMC2100 isn't soldered properly, and I've soldered them onto a protoboard, and of course they are on the bottom  :o :(
Logged

pterodyne

  • Sr. Member
  • ****
  • Posts: 91
    • View Profile
Re: Read failed
« Reply #14 on: April 12, 2018, 16:34:24 »

So, even though it can write the config now and update the firmware, eqmod keeps disconnecting over and over.

Probably I need some new chips..  Or there is some other fault in the board.  I guess I could try to go back to the DRV8825 drivers and see if the problem still occurs.
Logged
Pages: [1] 2