Go to Post I've come to the conclusion that the only way Pat's awesomeness can be explained is.... Pat Fairbank is a cookie. - Jonathan Norris [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-11-2003, 18:29
Random Dude Random Dude is offline
Oregon State Head FTA
AKA: Chris
no team (Oregon Robotics Tournament & Outreach Program)
 
Join Date: Aug 2002
Rookie Year: 1998
Location: Oregon
Posts: 142
Random Dude will become famous soon enoughRandom Dude will become famous soon enough
Bah thanks for reminding me. The pdf is enough for the most part. The differences the IFI uses are:

Erase the Flash: 0F 0F 09 XX 00 02 00 00 YY 04
where XX is the (highest_mem_to_write)/64
and YY is the checksum (see pdf)

I think the remainder of the data in that command is static.

However the method specified in the pdf also works

Restart the User code: 0F 0F 08 40 B8 04

[edited since i submitted by accident]

Last edited by Random Dude : 17-11-2003 at 18:34.
  #2   Spotlight this post!  
Unread 08-12-2003, 15:54
mikew mikew is offline
crazy coder
#0613 (Franklin RoboWarriors)
Team Role: Programmer
 
Join Date: Apr 2003
Location: Somerset, NJ
Posts: 39
mikew is an unknown quantity at this point
Send a message via AIM to mikew
Re: Linux and new microcontollers.

Ok, I don't want to stuff up the version control thread with off topic posts anymore, so lets continue it here.

I'm gonna write a uploader for Linux if no one else does by the time I need it. (around xmas break) If someone else wants it earlier, they can do it and I'll pitch in later if I can understand the code in 30 minutes. I plan to create an OS agnostic core library that just generates the stuff sent to the serial port, while some wrapper code handles setting up the serial port, sending data, GUI/CLI interface, and whatever else necessary. I guess the parsing of the hex files will be handled by the library, but the wrapper code needs to open the file itself and feed the stuff to the library. Sound like a plan?

I think there's some simple stuff that can be done to make setting up the compiler/linker/assembler toolchain easier. At least some HOWTOs on how to put everything together, and maybe some program/script to automate most of the process. Maybe toss a Makefile in to make things really easy.

I'm not sure if it's possible to use GPUTILS/SDCC instead of the Microchip provided compiler since we need to work with a binary library that communicates with the other microchip inside the controller. I doubt source or specs will be released for that library. I'm not sure if the library is really needed other than to access data from the inputs slowly. Also, SDCC doesn't support the exact chip used in this year's controller, so I don't know if it'll generate working code. GPUTILS works though, you just have to copy the .lnk file (IIRC) since the memory map is slightly different from usual. (can't write to the bootloader region)

The bootloader is the most important part. Let's concentrate on that first. The second most important part is making sure the stuff created by running the toolchain through wine is basically the same as the stuff run natively through windows. My .hex file didn't match the default .hex provided by FIRST, but it may have different code. We need to compare the .hex compiled with mcc on windows, with the .hex provided by first, as well as the .hex generated on linux. Have to be extra careful that the same parameters used on the windows compile is the same in the linux compile. I'll do that this weekend if no one else does it.
  #3   Spotlight this post!  
Unread 24-12-2003, 02:24
mikew mikew is offline
crazy coder
#0613 (Franklin RoboWarriors)
Team Role: Programmer
 
Join Date: Apr 2003
Location: Somerset, NJ
Posts: 39
mikew is an unknown quantity at this point
Send a message via AIM to mikew
Re: Linux and new microcontollers.

Sorry, I've been busy/lazy lately. I just manually compiled the default code through wine with the same commands used by mplab, and the hex files generated are identical. (as I was expecting)

I have access to our robot prototype now, along with the edu-rc. The bootloader is on the bottom half of my list of things to do before the kickoff. I have to get our prototype working, put up a website, and relax before taking on the loader.

I don't think I'll be able to work with sdcc and gputils and see if they're feasible replacements for mcc18. It looks like a LOT of work, and this solution "just works" for me. sdcc and gputils would of course be useful for mac users, or non x86 users in general. I can imagine how cool it would be to edit, compile, and upload code from a zaurus. I'm not likely to get one though.

Last edited by mikew : 24-12-2003 at 11:27.
  #4   Spotlight this post!  
Unread 28-12-2003, 05:55
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
Re: Linux and new microcontollers.

sorry, it's late at night. Read my new thread, it has support using MCC18, seems to work great compiles and links fine. Wine -> MCC18 -> IFI, I'm using codeweavers trial version of wine. Have to use self-made scripts though, check it out.
http://www.chiefdelphi.com/forums/sh...ad.php?t=23254

Also, My LInux HEX
bash-2.05b$ ls -ltra *.hex
-rwxr-xr-x 1 ryan users 24637 Dec 3 17:27 EDU_default.hex
-rw-r--r-- 1 ryan users 24722 Dec 28 02:39 EduCode.hex

vs Windows

root@laptop:/windows/EDU_Default_Code_2003-12-15# ls -ltr *.hex
-rw------- 1 root root 24637 Dec 3 17:27 EDU_default.hex
-rw------- 1 root root 24722 Dec 28 02:09 EduCode.hex

two brand new installs independent of each other
__________________
R
Closed Thread


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
Linux and the New R/C and Strange ideas... Venkatesh Programming 7 28-10-2003 23:54
New programming resource rbayer Programming 0 03-12-2002 00:14


All times are GMT -5. The time now is 17:04.

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