chipKIT® Development Platform

Inspired by Arduino™

MPIDE question

Created Mon, 23 May 2011 18:43:23 +0000 by sierrasmith71


sierrasmith71

Mon, 23 May 2011 18:43:23 +0000

I just down loaded the Windows version and started to play with it..It indeed looks just like the version 22 from Arduino.

I wanted to see if it would compile (when I selected either the MAX 32 or the UNO 32) any of the examples for any of the standard libraries included...Most but not all compiled..None of the Servo examples would..throws lots of errors...when a MAX 32 or UNO32 is selected

I tried the Stepper one reolution example and it does compile, but with interesting results. The code size changes depending on what processor you select:

MAX32-- 16.7K of 512k available UNO32 13.6K of 127K available

UNO 3.3K of 32K available

Not sure what this all means in the final analysis, but I hope someone does! Why the big difference in the code size???? --is it because we are now dealing with 32 bit instructions?

I will most likely purchase one of each of these new devices as I am a sucker for new stuff....do I need an 80 Mhz 32 bit processor to control my servos and Stepper motors? I am pretty sure I don't, as I have not uncovered any processing speed problems--yet. but there are more pins to play with!!!!

Best to all that have worked on this project.

David Garrison


ricklon

Mon, 23 May 2011 20:47:31 +0000

Thanks for reviewing the IDE build. There was a lot of last minute work to get the builds ready from Maker Faire.

There should be issues filed for the those two libraries on Github, if not I'll get them posted. The issue repository is here. https://github.com/chipKIT32/chipKIT32-MAX/issues?sort=created&direction=desc&_pjax=true&state=open

I think there is more branding to fix, but the real goal is to get the changes we made back into the master repository in Arduino. Eventually, it would be great for all platforms to maintain a hardware folder, and the libraries, and IDE stay the standard. So I'll be helping to get Arduino 1.0 and see if we can get these staged for post 1.0.

--Rick


jasonk

Tue, 24 May 2011 00:37:35 +0000

The difference in code size between the UNO32 and the MAX32 is worth investigating. Off the top of my head, I don't know what the difference is.

As for the difference in code size between the Uno and the UNO32, there are a number of factors to consider. The PIC32 has some things that get statically linked like a default general-exception handler, a 1K exception vector table, some bus-matrix configuration code, etc. These items are a static size, so they won't increase as the size of your sketch increases.


Mark

Tue, 24 May 2011 03:16:23 +0000

MAX32-- 16.7K of 512k available UNO32 13.6K of 127K available UNO 3.3K of 32K available

This is correct, the UNO has 32K of flash memory

The Max32 has 512K of flash memory

the UNO32 has 128K of flash memory

The pic32 does not have EEPROM like the AVR chips and we are reserving at least the top 4K for eeprom emulation.

The Arduino environment uses boards.txt to specify the amount of memory each board has so that you dont try to exceed it. If the memory used is greater than that amount, it wont try to program it.

Mark