PaxInstruments / t400-electronics

Electronics for the Pax Instruments T400 temperature datalogger
20 stars 9 forks source link

Electronics version 0.9 stopped working #130

Closed charlespax closed 9 years ago

charlespax commented 9 years ago

I have two Electronics version 0.9 assembled boards from @samchoy88. I've have been flashing them via USB as I develop T400 testing firmware. One board mysteriously stopped working. Now the second board is not recognized by OSX. When I plug in each board I get the following error after running sudo dmesg.

USBF:    1613.173    The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 1 of Hub at 0x14000000)
USBF:    1613.474    The IOUSBFamily was not able to enumerate a device.
USBF:    1614. 30    The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 1 of Hub at 0x14000000)
USBF:    1614. 30    The IOUSBFamily gave up enumerating a USB device after 10 retries.  (Port 1 of Hub at 0x14000000)
USBF:    1614. 30    The IOUSBFamily was not able to enumerate a device.
samchoy88 commented 9 years ago

Can you re-program the MCU by ICSP port with LilyPad Arduino USB bootloader?

charlespax commented 9 years ago

I cannot reprogram the bootloader with any of my programmers on my OSX machine or on another Windows machine.

On one of the boards I removed the 32u4 and soldered on a new one. I successfully flashed the bootloader via ICSP.

I think there is a problem with the power being supplied from the wall. I can sometime feel a buzz on my computer. From now on I will not plug the T400 into my computer while it is plugged into the wall.

samchoy88 commented 9 years ago

It seem the computer is not grounded properly. http://apple.stackexchange.com/questions/10545/is-it-bad-that-my-macbook-air-is-passing-me-electricity

charlespax commented 9 years ago

At a coffee shop running on battery power I just killed another board! It seemed to happen after I accidentally released the SW_PWR button while the firmware was uploading.

I closed my laptop and went home where I unsuccessfully reflashed the boot loader using a TinyISP programmer using the Arduino IDE. The error I get is below.

avrdude: verification error, first mismatch at byte 0x0000
         0xff != 0x00

I was then successfully flashed the firmware via USB using a short USB cable. Then I was able to reflash the firmware using the USB cable I was using in the coffee shop.

This is very weird.

charlespax commented 9 years ago

I think this whole thing was a ICSP programmer issue. Closing.