Chameleon-PIC Nurve Networks, Chameleon-PIC Datasheet - Page 111

MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)

Chameleon-PIC

Manufacturer Part Number
Chameleon-PIC
Description
MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)
Manufacturer
Nurve Networks
Datasheet

Specifications of Chameleon-PIC

Processor To Be Evaluated
PIC24
Data Bus Width
16 bit
Interface Type
USB, VGA, PS/2, I2C, ISP, SPI
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
On the left hand side of the dialog is a tree view with a number of different items representing groups you can select. At
this time select “Tools” and the dialog will be updated with that shown in Figure 15.49. Next we need to add a tool, do
this by pressing the <Add> button and a popup menu will allow you to select a few different options. Select <Dos
Command…> from the items and you will be requested for the name of this new tool. Give this new tool the name
“CompileDownload.bat” and click the <OK> button.
A new tool will be added to the list, however, before you can edit the new tool’s options you must first press the <Apply>
button on the Preferences window. Once the <Apply> button has been pressed you can expand the Tools tree view by
clicking on the “+” symbol next to the Tools and our new command will now have a subitem entry. Go ahead and click on
this new item called “CompileDownload.bat” and your Preferences dialog will be updated to allow you to further edit the
tool settings.
Next we need to make some modifications to the tool settings. Take a quick look at Figure 15.50 as it shows the final
settings that we need for this tool. The two modifications that you need to add are first add the parameters $File and
COMX onto the end of the Parameters edit box just after CompileDownload.bat. Second click the “Save all documents
first” checkbox.
By adding on the $File parameter this causes TextPad to take the current file name that you are editing in TextPad and to
send that as a argument to our batch file. The second argument COMX (in my case COM7) is the communications port
that the Chameleon is connected to. This can be found under the Device Manager in Windows and we will show you how
to find it explicitly in Section 15.2.3 below.
The “Save all documents first” checkbox cause TextPad to save all files that have been modified before running the DOS
command line. This is important because the alternative is to manually save your file before compiling which you may
forget to do from time to time and instead it will recompile and download your last change causing you some grief
potentially.
We are now finished with the Preferences dialog and you can click the <OK> button to close it. If you now view the
<Tools> menu in TextPad you will notice that at the bottom there is an item called <External Tools> and if you mouse over
WARNING!
By following the recommend settings for the CompileDownload.bat tool setup we have
caused it so that whenever the tool is ran it selects the currently open file and uses that as
the main file to compile. This can have a negative side effect however when the user is
modifying a different file (perhaps a driver) and then invokes the tool. It most causes the C
compiler will fail since it could not find the main() function. If you do not like this setup you
can always modify the batch file or change the $File parameter to a single file name so that it
always selects the appropriate main file.
Figure 15.50 –CompileDownload.bat tool settings.
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
111

Related parts for Chameleon-PIC