Alternative Software with new functions

Topics related to the HV Rescue Shield:
http://mightyohm.com/hvrescue2
Post Reply
trickedjmo
Posts: 1
Joined: Wed Jan 11, 2012 8:48 am
Location: UK

Alternative Software with new functions

Post by trickedjmo » Thu Jan 12, 2012 12:59 am

Hi,

I thought I'd share with other users of the HV Rescue shield an enhanced Arduino script I have written, based on Jeff's original software v212.

I've called the new software HVRescue_Plus to distinguish it from Jeff's package which remains the official software for the board. The Software is covered by the same GPL licence as the original.

The new software retains the look and feel of the original, it can still be run in interactive and non interactive mode and starts by requesting the AVR family as before. The existing fuse settings are then printed along with the device signature and lock bits. After this the user is presented with a menu of functions.

The E command allows the user to erase the AVR.

The F command allows the fuses to be set as before. OK or fail will be printed depending on the success of the operation.

The R command allows a block of the flash memory to be dumped to screen. The user has to input the required start address in hex.

The P command is similar to the R command but operates on the EEPROM

The W command performs a simple test of the flash by writing a small block of data to it and checking it programs correctly. The user has to input the required start address in hex, which must be the first byte of a page (see device datasheet for details about page size). The user can view the test pattern written by using the R command to read it back.

The T command performs a similar test on the EEPROM but with a different shorter 4 byte pattern as EEPROM page sizes are smaller.

Since multiple commands are available the script does not request a button press between each operation, instead use the S command to 'safely remove' the device from the socket. Programming mode will be exited, the socket powered down and the green LED lit.

The software has been built successfully on both Arduino release 22 and 1.0. It has been tested on a 32k Arduino Duemilanove with the HV Rescue Shield 2.1 and an ATtiny85, ATtiny2313 & ATmega48, but should work with other devices. I don't have a mega to test but it should work. Depending on the system and device in use some garbage may appear within the display, this is due to the shield sharing the serial data lines with the target AVR and is unavoidable.

Please be aware the Erase and Test functions WILL clear/overwrite existing data in the device so please use caution when selecting these functions.

Please post any feedback to the forum.

Dennis
HVRescue_Shield_Plus_100.zip
(24.05 KiB) Downloaded 2971 times

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

Re: Alternative Software with new functions

Post by mightyohm » Mon Feb 13, 2012 9:16 am

Dennis,

Thanks for posting this, I will add a link to the HV Rescue Shield kit page.

x-warrior
Posts: 3
Joined: Wed Nov 28, 2012 7:02 am

Re: Alternative Software with new functions

Post by x-warrior » Sun Dec 02, 2012 7:59 pm

I'm trying to use HC RESCUE Shield V1.0 with your code.

I tried to unbrick my old atmega328p with the version 1.0 and it worked, now I want to use the V2.0 program using 1.0 board. I updated the pin configuration to the same as Version 1.0, and tried to use, but it says the wrong fuses on read and I get a fail on write.

Any ideas? Or maybe some tip how to do this?

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

Re: Alternative Software with new functions

Post by mightyohm » Sun Dec 02, 2012 9:14 pm

Hi,

This software is designed to work with the 2.1 version of the hardware and won't work with the original circuit without modifications.
At a minimum, you need to invert the control signal to the HV switch, and there may be other more subtle issues as well.

valentyn
Posts: 2
Joined: Sun Dec 07, 2014 7:32 am

Re: Alternative Software with new functions

Post by valentyn » Sun Dec 07, 2014 7:39 am

Hi, the new software is great! (The rescue shield is great too!) It even worked with my Arduino Leonardo (Chinese clone) without problems.

I was wondering though, if you (after all these years) accept patches. I rewrote a couple of input routines, because my Leonardo has this disappearing/reappearing serial line. My patch now:
- waits for valid input; if the input is invalid, it will reprint the menu or message. This greatly improves the user experience when just using the rescue shield connected to a serial port (i.e. without a programmer)
- the fuse entry will also retry valid input (i.e. you can enter 2 digits; any invalid entry will be wiped out and the prompt will reappear.

Maybe it's time for the software to be put in a public repository somewhere?

Best regards,

Valentijn

Post Reply