Go to Post I think a lifetime of learning properly and then teaching others and inspiring the youth is more important to myself at least than being on the news for a couple seconds during a voice over. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 22-10-2006, 20:48
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
IFI_Loader protocol?

Hi all, I have a few questions for the programmers from AdamBots or anyone else who knows anything about the IFI_Loader protocol, especially in regards to the ifipictools program. I'm sorry this post is so long, but

I am in the process of writing a portable program loader specifically for the FRC. I've written the Intel HEX file reader and I know how I'm going to go about working with input and output from the serial port, but I have really no idea what I'm sending to the FRC's program port. I was originally just going to extend ifipictools, since it has an open license, but upon looking at the code, I have absolutely no idea what's going on, as nothing in the code lends to figuring what exactly it DOES.


Basically, all I really get out of it (based on the variable names in the program, since there are no useful comments) is that to load the program, you have to:
1) Send version information to the PIC.
2) Send a "base read" command to the PIC.
3) Send two commands that erase whatever is currently in flash program memory.
4) "Splice" blocks of memory read from the HEX file into a command that tells the PIC to write that block to whatever address.
5) Close and reopen the connection to the controller
6) Send the reset command to the controller.
And in between reads and writes to /dev/sttywhatever you need to wait a few milliseconds to let the FRC write to the user PIC18 before sending more data.

Could anyone involved in the project please help me understand what exactly is going on in that code sequence? Did you get help from IFI or did you just try to pick apart the data going between the FRC and IFI_Loader by monitoring the serial port? Any help would be GREATLY appreciated.

All the work I'm doing on this project will be released under the GPL and will hopefully be cross-platform, so that any team can use our program loader, whether they're using Linux, Solaris, OSX, Windows, or whatever. Attached is the latest version of ifi-pictools and what I've got for the HEX reader right now, which is mostly useless by itself.

Harry
Attached Files
File Type: tgz ifi-pictools_0.4.97-1.tgz (13.1 KB, 29 views)
File Type: h ihex.h (1.3 KB, 30 views)
File Type: c ihex.c (3.2 KB, 38 views)
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IFI Loader protocol Astronouth7303 Programming 0 31-07-2006 11:52
New IFI_LOADER! Greg Ross Programming 12 09-02-2006 12:05
dashboard protocol sciguy125 Programming 9 22-08-2005 18:36
programming protocol sciguy125 Programming 6 20-06-2005 16:06
Dashboard Protocol Library archiver 2000 9 23-06-2002 22:24


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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