![]() |
Linux: steps to program fullsize RC robot
Post here if you need help and this doesn't work.
Current site: http://ryan.scv.net/x2545/pic Code:
Documentation IFI Linux PICloader setup Fullsize RC with MCC18 compiler:Ryan Waliany |
Re: Linux: steps to program fullsize RC robot
Hmm no luck getting the MPLAB IDE to run under Linux.
I've tried, wine version 20031212, XOffice, and WineX. And they all give me the same responce. The Microchip MPLAB IDE logo loads, and just stays there. Doesn't do anything else. Very strange; It would be nice of Micochip to offer us a C18 compiler... They can keep the IDE, just want the compile =\. *sigh*. Gonna keep trying to get the IDE |
Re: Linux: steps to program fullsize RC robot
The point of this thread is to show steps to bypass the MPLAB Ide allowing you to use any IDE or editor you want, anjuta, vim, or kate for example and be able to compile code and load it to the pic in Linux. MPLAB is limited, need I say more? MPLAB requires internet explorer 5....what for? If you want MPLAB to use the simulator, you should be able to wine the simulator dll mpsim.dll.
Once your done with these steps, you can edit the source files user_routines.c in any editor you would like, then type make in console and then picloader FrcCode.hex <device>, and you would have programmed the PIC with the same functionality as in Windows, with MPLAB etc... |
Re: Linux: steps to program fullsize RC robot
Let me see if I understand this:
The MPLAB_C18.exe is just the compiler; and not the IDE? (sorry, I don't have a copy of the CD; so I'm trying to figure this out.) |
Re: Linux: steps to program fullsize RC robot
Yes, MPLAB_C18 is the compiler.
|
Re: Linux: steps to program fullsize RC robot
Quote:
Note that there's a typo in the Makefile. The line that starts with MCC18DIR should read: Code:
MCC18DIR=$(USER_DIR)/.wine/fake_windows/mcc18/ |
Re: Linux: steps to program fullsize RC robot
Quote:
Also, the project page should be up now at http://ifi-picloader.sourceforge.net . Thanks for your interests, Ryan Waliany |
Re: Linux: steps to program fullsize RC robot
New release 0.3, it should be easier to install now and more user-friendly. Lots of makefile improvements with some suggestions from others. A serial reader will be coming in 0.4 which will allow you to debug using a terminal and read data from the program port.
http://ifi-picloader.sf.net/ |
Re: Linux: steps to program fullsize RC robot
heh, now all we need is a PocketPC running Linux and we'll be able to have a mobile programming and download platform ;)
|
Re: Linux: steps to program fullsize RC robot
compiler is x86 only, so you'll need a pc emulator. dunno how well those run on pocketpc.
|
Re: Linux: steps to program fullsize RC robot
eh, so it's only a mobile download platform. either way, it would still be fun ;)
|
Re: Linux: steps to program fullsize RC robot
Added some more suggestions from Michael Wu, will hopefully release 0.4 tomorrow with serial reader and fixed erasing pic for multiple memory banks.http://xp.scv.net/x2545/picloader/if...der.0.4.tar.gz Beta release
Working on make install, and moving to /usr/share/ifi-picloader/ |
Re: Linux: steps to program fullsize RC robot
I'm having trouble reproducing your results. I'm running Debian Sarge (testing) on my notebook, and tried to apt-get install wine. Upon configuring wine the way you suggest, I can't get the mcc18.exe compiler to work. It keeps bombing out with this error:
Code:
F:\Code\code>mcc18 -p=18F8520 -fo user_routines.o user_routines.c /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- This is the version of wine I'm running: Code:
silas@frink:~$ wine --version |
Re: Linux: steps to program fullsize RC robot
check ~/.wine/config . you need to make sure the native, not wine, version of msvcrt is being used or mcc18 will die with some spawning error. oh, and you need a copy of msvcrt.dll too.
|
Re: Linux: steps to program fullsize RC robot
Thanks for the advice... One step closer in the right direction, but still not there. Hopefully if I can get this working, I can document the process and perhaps package something nice for people to easily get development up and running in Linux. Hopefully it'll help you focus on the excellent work you're doing with the clone of the IFI loader.
I copied my msvcrt.dll from my Windows XP machine (The copy in C:\Windows\System32, there were many copies) into my .../fake_windows/Windows/System32 directory in Linux. I made sure that msvcrt is trying to load native before loading the builtin. It now just refuses to load the exe with the following error: Code:
silas@frink:/var/silas/public/first2004/Code/code$ wine -- "C:\\mcc18\\bin\\mcc18.exe" -p=18F8520 -fo "F:\\Code\\code\\main.o" "F:\\Code\\code\\main.c"Thanks again for your help with this. Here's what my ~/.wine/config looks like: Code:
(Deleted because it was flippin' huge. My windows version line was wrong, see below for fix) |
| All times are GMT -5. The time now is 00:04. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi