PDA

View Full Version : I got a Hydra today!



4x5n
10-27-2011, 12:10 AM
Picked it and a couple of quickstart boards (with FM modules) and when I started to read the very large manual was sadly disappointed. The documentation took great pride in bragging about how the EEPROM can hold 128KB and then points out that the propeller tool won't load any code past 32KB and suggested that the reader write their own apps for their pc and propeller to load code into the remaining 96KB of EEPROM. I was hoping that there would be some info on how to actually do that! I've done a bit of research on how to read and write to an I2C eeprom but my intention was for my propeller code to write state information to it a few longs at a time.

My question is this. Has anyone written code to write binary data from a pc to the upper 96KB of the eeprom preferably from linux. :-)

RossH
10-27-2011, 01:32 AM
My question is this. Has anyone written code to write binary data from a pc to the upper 96KB of the eeprom preferably from linux. :-)

Under Windows, you would use the Hydra Asset Manager (http://forums.parallax.com/showthread.php?91596-Hydra-Asset-Manager-released!&p=628778#post628778). I've not tried it under Linux, but I think it is a .NET app, so it may run under Mono.

Ross.

blittled
10-27-2011, 01:52 AM
Check out the I2C objects in the OBEX under the Protocol heading. Most of these objects have demos that access EEPROMS at any address

4x5n
10-27-2011, 02:58 AM
Check out the I2C objects in the OBEX under the Protocol heading. Most of these objects have demos that access EEPROMS at any address

I spent the weekend going through the I2C objects and managed to figure out how to use a couple of the objects in the obex to read and write to eeprom. My desire was to use eeprom to save state between power cycles and resets. The problem with using those objects is getting the up to 96KB of data from a computer to the eeprom in the hydra. What would be cool we be to be able to launch a cog with a pasm program located in eeprom beyond 32KB. :-)

4x5n
10-27-2011, 03:35 AM
Under Windows, you would use the Hydra Asset Manager (http://forums.parallax.com/showthread.php?91596-Hydra-Asset-Manager-released%21&p=628778#post628778). I've not tried it under Linux, but I think it is a .NET app, so it may run under Mono.

Ross.

I can't seem to find the download. The link in the thread is broken and google isn't helping. :-( I did find an old version of HAM but it only seems to download from the expansion card and I'm trying to download from the on board eeprom. At first I thought well I could upload to the expansion eeprom and then write a program using I2C objects and copy info over. Excited I downloaded the contents from the expansion card with the tool and then found that I could upload the 128K image. When I try the HAM tool complained that the file was to big.

Sigh!

kuroneko
10-27-2011, 03:49 AM
AFAIK 1.09 is the latest released revision. Always worked for me.

4x5n
10-27-2011, 05:04 AM
AFAIK 1.09 is the latest released revision. Always worked for me.

That did it! Thanks for posting the zip file.

4x5n
10-27-2011, 06:00 AM
I was hoping that the HAM would work with non-hydra boards but I guess that would have been asking for a bit much. :-)

kuroneko
10-27-2011, 06:06 AM
I was hoping that the HAM would work with non-hydra boards but I guess that would have been asking for a bit much. :-)
IIRC it's just the clock setting which needs changing (10MHz vs 5MHz). And the included drivers (TV & Co) may need replacement. This comes up every now and then ...

RossH
10-27-2011, 06:16 AM
IIRC it's just the clock setting which needs changing (10MHz vs 5MHz). And the included drivers (TV & Co) may need replacement. This comes up every now and then ...

Yes, kuroneko is right - I have had the HAM work on other boards. There is a file that needs editing - can't remember the name of it, but one of the threads about the HAM has the details.

Ross.

kuroneko
10-27-2011, 01:30 PM
Found it: http://forums.parallax.com/showthread.php?p=843433

jazzed
10-27-2011, 04:46 PM
Picked it and a couple of quickstart boards (with FM modules) and when I started to read the very large manual was sadly disappointed. The documentation took great pride in bragging about how the EEPROM can hold 128KB and then points out that the propeller tool won't load any code past 32KB and suggested that the reader write their own apps for their pc and propeller to load code into the remaining 96KB of EEPROM.
I had a different impression about what I might be able to do with that big old 128KB EEPROM when I bought my Hydra. It was my own fault I guess, but I had naively assumed one could execute code stored in all that space. I was "sadly disappointed" too.

Fast forward 5 years now ... I am no longer sadly disappointed.

Today at Meetup Group I will be demonstrating a Propeller-GCC generated C program application that will use much of that EEPROM for code storage; the program will be executed by the Propeller. There is lots of HUB/COG left over for other things.

I'm sure some would ask "what good is that"? Well, the main program is slow (code running in other cogs is not), but it works and all you have to do is use a bigger EEPROM. The 64KB EEPROMs will also benefit from this. We expect to have a similar feature with an SD card at some point.

4x5n
10-27-2011, 07:56 PM
Can't wait to give that a try! Of course I have no need for it now. Just like the idea of it being available!!