PDA

View Full Version : Seemingly dumb question ...



turbosupra
12-22-2009, 12:07 PM
How can I DOWNload the code off of my prop chip in the IDE?

Mike Green
12-22-2009, 12:30 PM
You can't use the IDE to do it and there's not any ready-made program to do so. The program can be stored either in the Propeller's RAM or in an attached EEPROM. If it's in an EEPROM, you can write a program that you download into RAM where it runs and reads the program a little at a time from the EEPROM and dumps it somewhere else (like over the programming serial port to the PC). One of the FemtoBasic variants can be downloaded into RAM and used to display any part of the attached EEPROM using its DUMP statement. You could use DongleBasic and something like Hyperterm on the PC. You'd do a DUMP statement with DongleBasic and capture the displayed text to a file on the PC where you could process it later into any format you want.

Remember that the code on the Propeller is not your source code. The Propeller Tool compiles your Spin program to binary and your assembly language to binary and none of the variable names or method or object names are included in the binary program.

RossH
12-22-2009, 12:39 PM
The Hydra Asset Manager can download the contents of the Prop EEPROM to a PC. But it may not work on Prop platforms other than the Hydra.

Ross.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina (http://forums.parallax.com/showthread.php?p=844004)

Oldbitcollector (Jeff)
12-22-2009, 12:47 PM
RossH said...
The Hydra Asset Manager can download the contents of the Prop EEPROM to a PC. But it may not work on Prop platforms other than the Hydra.

Ross.



Some minor adjustments and it works fine with other boards.

OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Visit the: The Propeller Pages (http://www.warrantyvoid.us/tiki-index.php?page=Propeller) @ Warranty Void.

kuroneko
12-22-2009, 01:08 PM
http://forums.parallax.com/showthread.php?p=843433
http://forums.parallax.com/showthread.php?p=843565

Post Edited (kuroneko) : 12/22/2009 6:08:29 AM GMT

RossH
12-22-2009, 01:26 PM
Aha! Thanks guys.

Ross.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina (http://forums.parallax.com/showthread.php?p=844004)

turbosupra
12-23-2009, 12:28 AM
Sounds easier to rewrite it, haha


Thanks all

heater
12-23-2009, 12:48 AM
If you have lost the source files of whatever it is loaded into the EEPROM then you probably are better off writing it again.

On the bright side, they do say that when writing some software application you should at least throw one version away. Reasoning that the next version will be better now that you know what you are doing:)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.

Post Edited (heater) : 12/22/2009 5:26:12 PM GMT

pmrobert
12-23-2009, 01:19 AM
Two thumbs up in a "Z" pattern for heater's suggestion!