View Full Version : IFI Loader for Linux
rwaliany
07-01-2004, 07:24
I've created something, it almost works, theres about 10 glitches on the writes and there is no verification yet, but it would be greatly appreciated if people could look over errors. It's roughly done, I'm just trying to get it to work currently.
debug-recv.txt - matches every sent line
debug-sent.txt - output on uploading EDU_default.hex
to run,
mkdir test
cd test
tar -xzvf /path/to/ifi-linux.tar.gz
make
./picloader EDU_default.hex /dev/SERIALPORT
http://ryan.scv.net/x2545/ifi-linux.tar.gz
http://67.115.226.221/x2545/ifi-linux.tar.gz if the above link doesn't work due to my name server being down.
I'll work on it some more tomorrow, or thursday.
Skabana159
07-01-2004, 13:45
I've created something, it almost works.
Ryan, I could just about kiss you. I will try to test this, but it may be hard to get the EDU RC until we actually have the RC on saturday...
rwaliany
07-01-2004, 13:59
Note: If you look at the debug-sent.log it appears, if you send a write with an invalid checksum you will receive
00 0F 02 FE 04
instead of
0F 0F 02 FE 04
or any wriet with an invalid command
00 + Last command
I'll work on those today, got done at like 5am last night. I'm hoping to have it completely before Saturday.
Thanks,
Ryan Waliany
Joe Ross
07-01-2004, 14:50
A couple of suggestions (I can't actually do anything usefull with the program since I don't have a controller)
When you tar up the stuff, do it from the previous directory, so that you don't have to copy the tar file to a new directory. Also, use some type of version number or date in both the tar file and the directory for your sake, and everyone else's. You can use a command like this for the tarring: tar -cvzf ifi_loader-0.01.tar.gz ifi_loader-0.01/
Right now, you program is copyrighted and you have all the rights and protections that provides, which means we can't modify it. I assume, since you are releasing it to us, that isn't what you intended. Thus, you need to license the code to give up some of your copyright rights. There are virtually unlimited open source licenses, some of which are listed at http://www.opensource.org/licenses/ You should choose one of those (I prefer the BSD license) and license your software with it.
Can you include a short readme that tells, at a minimum, where to get the information that you used to write this loader?
Thanks for the time that you've spent on this.
:D
Looks like someone had more time than me. Cool.
GPL!
Random Dude
07-01-2004, 17:49
Can you include a short readme that tells, at a minimum, where to get the information that you used to write this loader?
Joe,
The info can be found here: http://www.microchip.com/download/appnote/pic16/00851b.pdf (Well, Ryan may have other sources, but that should provide most of what you need)
Also check out my (basic) notes here: http://www.chiefdelphi.com/forums/showthread.php?p=196395#post196395
rwaliany
07-01-2004, 21:15
A couple of suggestions (I can't actually do anything usefull with the program since I don't have a controller)
When you tar up the stuff, do it from the previous directory, so that you don't have to copy the tar file to a new directory. Also, use some type of version number or date in both the tar file and the directory for your sake, and everyone else's. You can use a command like this for the tarring: tar -cvzf ifi_loader-0.01.tar.gz ifi_loader-0.01/
Right now, you program is copyrighted and you have all the rights and protections that provides, which means we can't modify it. I assume, since you are releasing it to us, that isn't what you intended. Thus, you need to license the code to give up some of your copyright rights. There are virtually unlimited open source licenses, some of which are listed at http://www.opensource.org/licenses/ You should choose one of those (I prefer the BSD license) and license your software with it.
Can you include a short readme that tells, at a minimum, where to get the information that you used to write this loader?
Thanks for the time that you've spent on this.
Thanks, I know. I haven't had time, I finished it and decided to upload to people to look at at like 5-6am in the morning. I've only spent two days actually working on it trying to parse the data and write it and a couple days just looking over the packet communications. I'll try to finish it sometime tonight, I've been working on our blimp project and haven't had time today. By Monday, I'll have GPL, etc...with versions. Anyways I'm going to work on it around 11PM Pacific Time, if anyone wants to help on AOL instant messenger, screenname "Ryan Waliany" Today the other control members burnt out the EduRobot by hooking it up to a power supply, but I've managed to use a backdoor to turn it on by skipping the on switch. So I might be able to finish it using the EduRobot still. If not, It might have to wait till next monday.
Thanks,
Ryan Waliany
rwaliany
08-01-2004, 01:48
IT WORKS IT WORKS IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
I'll put up a source forge page soon and add a graphical interface!!!!!!!!!!!!
LINUX HERE I COME!
Get releases here...
http://ryan.scv.net/x2545/picloader/
tar -xzvf ifi-picloader.0.1.tar.gz
cd ifi-picloader
make
./picloader (HEX) (SERIAL)
ex:
./picloader EDU-default.hex /dev/usb/tts/0
Talk to me if you want to help with GUI, would you people prefer GTK QT, or?
Also, new website for it, http://ryan.scv.net/x2545/pic/ soon to be at sourceforge.net.
Thanks,
Ryan Waliany
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.