chipKIT® Development Platform

Inspired by Arduino™

More Linux installation instructions and fixes

Created Sun, 04 Sep 2011 00:56:18 +0000 by pickey


pickey

Sun, 04 Sep 2011 00:56:18 +0000

I've downloaded the new mpide-0022-linux32-20110822 - don't have a pic board but I am following the interesting development.

Dudes you really need a page with some basic installation instructions. Like [url]http://www.arduino.cc/playground/Learning/Linux[/url] , which pops up when selecting help->Getting Started from the IDE (ok a little chicken and egg, but have to start somewhere).

Here's some more information for such a page:

On 64bit Linux systems, your avrdude needs the 32bit versions of these packages installed (on 32bit Linux system these can be assumed to be installed already):

libreadline6-32bit

I had earlier reported that some part (compiler?) needed

libelf1-32bit

Both can be trivially fixed with running

zypper -vv libreadline6-32bit libelf1-32bit

Other bugs to fix:

  1. hardware/tools/avrdude64 is not set executable. (If it is meant to be run on a 64bit system, it isn't, unless there's an automatic fallback to run 32bit if the 64bit doesn't start - which fails if the 32bit doesn't start either.)

  2. The serial comms stuff and java on linux 64bit seems to be a continuous problem. The RXTXcomm.jar you ship this time works. Your librxtxSerial.so causes the IDE startup to fail.

I must have had the same problem with the Arduino IDE, because there I replaced that file with the one from Arduino 0021, which worked. The functional file is 181429 2010-10-04 12:13 librxtxSerial.so

  1. Your current mpide IDE is unable to compile many, if any, Arduino programs because of a fault in assembling the compiler defines for the compiler command line. You produce
avr-g++    -c  -g  -Os  -w  -fno-exceptions  -ffunction-sections  -fdata-sections  -mmcu=atmega328p  -DF_CPU=16000000L  -DARDUINO=22  -DARDUINO=     -I/home/...

which would probably work, if you removed the -DARDUINO= , or at least moved it in front of the correct one. The preprocessor fails on any line testing this ARDUINO macro for a certain number.

This is a K.O. bug for getting any Arduino use out of the IDE.

Is there a real bug tracker for reporting this?


whoover

Mon, 05 Sep 2011 16:26:02 +0000

You may be better off waiting until 11-2011 for the release of the 700mHz ARM based Rasberry PI [url]http://www.raspberrypi.org/[/url]. It will also be $25 USD and is intended to run various Linux distros out-of-the-box.


pickey

Mon, 05 Sep 2011 21:23:51 +0000

Hi whoover,

Thanks, but I don't see any info about an ARM based box running Linux for $25 (I'll be buying quick) at the link you give, maybe that's intentional, but my post was pointing out bugs and giving some help for making the pic32 Arduino IDE run on Linux.

The ARDUINO= bug is a k.o. but should be easy to fix (the pic guys added code for putting additional arguments on the compiler command line dealing with pic-specific things and didn't test that it still works with the avr). The workaround is to use the avr arduino IDE for avr work, just as before.


whoover

Tue, 06 Sep 2011 23:28:11 +0000

You cannot buy it until November 2011. It clearly states at the top of the page "An ARM Linux box for $25. Take a byte!".

I referred you there because the device is specifically designed to run Linux, Whereas, chipkit is not.

My apologies... I didn't read your post carefully. I thought you were trying to run Linux on your chipkit.


pickey

Wed, 07 Sep 2011 11:00:54 +0000

Well, "taking a byte" looked too much like a site logo to make any sense at all, esp. "for sale after November".


ricklon

Sun, 11 Sep 2011 00:43:20 +0000

These are really good issues and fixes.

Please feel free to file them or any other issue here: https://github.com/chipKIT32/chipKIT32-MAX/issues

--Rick