HV Rescue v 2.1 - Both Leds allways on

Topics related to the HV Rescue Shield:
http://mightyohm.com/hvrescue2
Veonix84
Posts: 7
Joined: Tue Mar 08, 2011 2:18 pm

HV Rescue v 2.1 - Both Leds allways on

Post by Veonix84 »

I just purchased an HV Rescue 2.1 board with all components.
I have an ATmega 1280 which seems to have the same pinout as the Unos and such.

Everything seems to be soldered fine but the Red and Green Leds stay on all the time.

I can navigate the menu but when i press GO, nothing happens.

I am concerned in the sketch how it refers to pins 14-19 as AO 0-5.
Since this board has digital pins 14-19, would that be messing things up.

Any help would be greatly appreciated.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: HV Rescue v 2.1 - Both Leds allways on

Post by mightyohm »

Both LEDs on means that the RST line, which is usually analog input 0 on the Arduino, is not being set low.

You are onto something with the extra digital lines on the Arduino mega. The sketch expects Analog Input 0 -5 to be addressable as Digital outputs 14-19.

Apparently the analog inputs can now be referred to as A0, A1, etc (and still be used as outputs) so it's just a matter of fixing the sketch. I think this is a new Arduino feature, as it doesn't work on the old Arduino 0017 software I have on my laptop.

Let me upgrade Arduino and modify the sketch to see if I can fix this.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: HV Rescue v 2.1 - Both Leds allways on

Post by mightyohm »

Try this sketch and see if it works for you.

I changed all of the analog input references to the new Arduino names. It works on my Uno, but I don't have an Arduino Mega to test with.
Attachments
HVRescue_Shield.zip
(19.78 KiB) Downloaded 1009 times
Veonix84
Posts: 7
Joined: Tue Mar 08, 2011 2:18 pm

Re: HV Rescue v 2.1 - Both Leds allways on

Post by Veonix84 »

Thanks for the speedy reply and updated sketch.

I can go through all functions but it reads my fuses as 7 and 7.
After burn, they both where read as 7.

Just for more info. I am trying to recover an ATmega48P 20PU.
I tried a working ATmega48P 10PU but it read 7s as well.

I will try to read them on with an ISP reader to see if the fuses are being written and maybe reading is just failing.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: HV Rescue v 2.1 - Both Leds allways on

Post by mightyohm »

I haven't tested with the 48P, but it should work because the protocol appears to be the same as the 168 and 328P.

Do you have an ATmega168, 328P, or ATtiny2313 you can check to see if those work?

One thing you can check is to measure the voltage from TP1 to ground (the shell of the USB connector on the Arduino is a good ground) and see if it's around 12V when the red light is on (during programming).

I'll see if I can get my hands on an Arduino Mega and 48P for testing.
Veonix84
Posts: 7
Joined: Tue Mar 08, 2011 2:18 pm

Re: HV Rescue v 2.1 - Both Leds allways on

Post by Veonix84 »

Update:
the 48P is still unreadable by with ISP.

I tested an ATmega168 10PU.

I can read the fuse bits with the ISP.
The HV Rescue reads the bits as 7 still.
I did not set the bits with the HV but I checked them again with the ISP and they were the same as before.

The voltage at the test point read 12.24 v. So that seems good.

btw, should I start a new thread. HV Rescue Arduino 1280 series.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: HV Rescue v 2.1 - Both Leds allways on

Post by mightyohm »

No, this thread is ok.

So, let me understand what is happening:

The ATmega48P is read by the Rescue Shield as LFUSE=HFUSE=0x07. Changing fuses has no effect.
You are unable to read from the ATmega48P with your ISP (what programmer are you using and what is the error?)

The ATmega168 is readable by the ISP, but shows LFUSE=HFUSE=0x07 in the Rescue Shield.

Correct?

I am working on getting access to an Arduino Mega and should have test results this weekend.
Veonix84
Posts: 7
Joined: Tue Mar 08, 2011 2:18 pm

Re: HV Rescue v 2.1 - Both Leds allways on

Post by Veonix84 »

That is correct.

I am using an AT Tiny Programmer. The AVR Programmer by SparkFun.

It simply fails to read the device as if there is no chip.
It happened after I tried to set the fuses to an external oscillator setting.
I usually set the LFUSE to FF and that works but I wanted to do it the right way. Error.

Thanks,
Nicholas
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: HV Rescue v 2.1 - Both Leds allways on

Post by mightyohm »

Today I tested an ATmega48P-20PU with the Rescue Shield on my Arduino Uno, and confirmed that fuses read/write correctly.

So there is something about the Arduino Mega that is screwing things up. I'm hopefully picking up an Arduino Mega tonight for testing, I'll let you know what I find.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: HV Rescue v 2.1 - Both Leds allways on

Post by mightyohm »

I borrowed an Arduino Mega tonight and did some preliminary testing.

I have the same LFUSE=HFUSE=0x07 problem that you are having, so there is nothing wrong with your Arduino or your kit.

Hopefully this weekend I'll be able to do some more investigating to see if I can figure out what is going on.

Thanks for your patience.
Post Reply