|
|
![]() :: Research Group Embedded Interaction :: Media Informatics :: Ludwig-Maximilians-University Munich Particle How-To and Documentation PageHow to get started with Particle software development (please see at the end of the page for other related links and how-tos). 1.
Install the Compiler We use
PCH compiler, update to revision 3.219, later versions make problems in the
form of compiler error messages which do not occur with ealier versions. To successfully compile code, you need to pass the ccsc a corresponding argument: +STDOUT +FH +LN +T -A +M +Z +Y=0 +EA I="C:\PROGRAM FILES\PICC\devices;C:\PROGRAM FILES\PICC\drivers;$PARTICLEBASESYSTEM_HOME" "$(FilePath)" Please note the double quotes around the include directories. These are needed in some cases, e.g. as in EditPlus (as argument when defining user tools). For compiling code using our I2D display, the Barton 96040, please download the files from our Particle Source Code page.Make sure you can compile the template.c file! Please note that you may have to change some slashes in the TecO code! See our template. It seems that the conversion seems necessary to make the code compile under windows. We need / under windows. The base system comes with \.
3. Chose Programmer
We definitely prefer the ICD-U as it is one of the fastest programmers and offers command line functionality which makes it usable by many editors and IDES. For the USB Bridge, you need to install JAVA version
greater 1.5 update 4. You also need the drivers for the USB to serial conversion
of the data arriving via RF. You can
download the operation software from
TecO and the drivers from
www.ftdichip.com. It seems that the USB bridge JAVA program does not always work with the Particle Analyzer (new or old). Packets are received by the bridge (counters go up and increase) but no packets are displayed in the analyzers.
Attention: the java version (latest version of the bridge software)
does receive data but this is somehow not provided to any particle analzer
or network. So we are using the bridge software of 2004 which works fine
for us. You should be able to program Particles over the air (otap) by using the old Particle Analyzer (see development tools below). The new analzyer does not support otap as of writing. I will omit the steps to set up MPLAB to work as it is documented from Microchip. For the ICD-U download the drivers and software. It will immediately work.
4. Editor and IDEs
We prefer any other program other than MPLAB (everyone who has ever used MPLAB will know why) but is the only tool using the MPLAB ICD2 programmer. Please follow the links above for instructions on how to integrate the compiler and the programmers into the editors and ides.
5. Development of Particle Code (to run on
the Particles) Make sure the send and receive ports of e.g. the USB bridge and the Particle Analyzer are switched, so if the USB bridge does use port 5555 for sending and port 5556 for receiving, the analyzer has to use port 5556 for sending and port 5555 for receiving. Since service pack 2 for Windows XP, the old Prticle Analyzer can not do a "scan network" anymore for discovering Particles. You have to start the the console and then switch on a Particle and listen for its CTR boot packets. The new Particle Analyzer can do a (passive or active) scan. But it seems that the new Particle Analyzer does not always seem to work with the USB bridge (when its connected to the same host), no matter which software you run for the USB bridge (old or new JAVA version). Packets are received by the bridge (counters go up and increase) but no packets are displayed in the analyzers. The old Particle Analyzer does support over the air programming (otap). But from time to time it does not work and deletes the program on the Particle. Then manual programming with a physical programmer is required to get the Particle back working. 6.
Development of Particle Code (to run on a host PC)
Please see also our other how-to pages:
How-Tos
|