Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Ripping Code (2008) (http://www.chiefdelphi.com/forums/showthread.php?t=76451)

jamie_1930 02-04-2009 18:34

Ripping Code (2008)
 
I was wondering does anyone remember how to take code of the robot and put it in a file to fix. We lost last year's code and we might be making some changes for an upcoming demo.

tsiersema 02-04-2009 18:44

Re: Ripping Code (2008)
 
i may let me get back with you

Alan Anderson 02-04-2009 19:12

Re: Ripping Code (2008)
 
Quote:

Originally Posted by jamie_1930 (Post 845101)
I was wondering does anyone remember how to take code of the robot and put it in a file to fix. We lost last year's code and we might be making some changes for an upcoming demo.

The code in an IFI Robot Controller is compiled bits for the PIC processor. There is a utility that will allow you to pull the bits out and make a file of data that you can put back in later, but there is no reasonable way to turn that file into C source code.

Mark McLeod 02-04-2009 22:24

Re: Ripping Code (2008)
 
You can turn the binary you pull off the IFI controller into assembly code if you're feeling adventurous...

Nathan 07-04-2009 19:29

Re: Ripping Code (2008)
 
Quote:

Originally Posted by Mark McLeod (Post 845193)
You can turn the binary you pull off the IFI controller into assembly code if you're feeling adventurous...

Really? So there's no code protection on PICs then?

dtengineering 07-04-2009 20:13

Re: Ripping Code (2008)
 
Code protection on PICs (at least most of them, if not all of them) is an option that you set when you program the chip.

Jason

Chris27 07-04-2009 20:27

Re: Ripping Code (2008)
 
Well now's a good time as any to learn how to read assembly :P.

keehun 07-04-2009 22:56

Re: Ripping Code (2008)
 
Or rewrite! :)

Roger 08-04-2009 12:16

Re: Ripping Code (2008)
 
Real programmers program down to the metal! :cool:

Quote:

Originally Posted by Chris27
Well now's a good time as any to learn how to read assembly.

Well, once you get it translated from hexadecimal code. I don't know if this PDF is the correct one, but it is from the same PIC family and shows you the instruction set. Maybe if you google some more you can find a Hex to Assembler translator. Or write your own? Here's an on-line lesson on the instruction set.

Now, after writing all that, I still don't remember the method to get the code off the robot, but I do remember it was possible. And desperate. Writing new code is easier.

nathanww 13-04-2009 21:47

Re: Ripping Code (2008)
 
No, real programmers use butterflies :p

Roger 16-04-2009 12:56

Re: Ripping Code (2008)
 
Yeah, but is it haiku-compliant?

But I'm rather partial to the International Obfuscated C Code Contest.

I wonder if jamie_1930 got the code out of the robot?

jamie_1930 20-04-2009 01:25

Re: Ripping Code (2008)
 
Quote:

Originally Posted by Roger (Post 850917)
Yeah, but is it haiku-compliant?

But I'm rather partial to the International Obfuscated C Code Contest.

I wonder if jamie_1930 got the code out of the robot?

Actually looking around forever I finally realized that under the download for the ifi loader on www.ifirobotics.com there is a link to download the device reader and this is, I'm pretty sure, what I'm looking for. Although I'm not sure now because I'm trying to upload new code onto the board so I can test out the programming, but I'm getting a no programming board found error on the ifi loader. I'll let you guys know if I get it working

Roger 20-04-2009 07:50

Re: Ripping Code (2008)
 
Jamie's saga continues over on this thread...


All times are GMT -5. The time now is 01:11.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi