Selecting Compiler Options (PICmicro)

From Flowcode Help
Revision as of 11:59, 25 July 2013 by ReeceL (talk | contribs)
Jump to navigationJump to search

<sidebar>Sidebar: Managing Compiler Options</sidebar> Allows users to set the Compiler options.


Options list

See the Managing Compiler Settings topic for more information on using this feature.


Substitute variables used by Flowcode

%t Target name e.g. 16F88

%f Filename without extension e.g. C:\Dev\Test\Mytest.fcf becomes - C:\Dev\Test\Mytest

%d Directory location of the Flowcode file


Using the BoostC Compiler


Compiler location

Sets the Compiler location.

Default:

$(appdir)compilers\pic\boostc\boostc_$(family:/12F/16F).exe

Compiler parameters

Adds command line parameters when called from Flowcode

Default:

-v -t PIC$(chip:u) "$(target).c"


Linker/Assembler location

Sets the Assembler program location.

Default:

$(appdir)compilers\pic\boostc\boostlink_picmicro.exe

Linker/Assembler parameters

Adds command line parameters when called from Flowcode

Default:

-ld "$(appdir)compilers\pic\boostc\lib" libc_$(family:/12F/16F).lib rand_$(family:/12F/16F).lib float_$(family:/12F/16F).lib "$(target).obj" -t PIC$(chip:u) -d "$(outdir:~-1)" -p "$(target)"


Using the HI TECH C Compiler


Compiler location

Sets the Compiler location.

Default 16F:

C:\Program Files\Matrix Multimedia\Flowcode V4\PICC\PRO\9.65\bin\picc.exe

Default 18F:

C:\Program Files\Matrix Multimedia\Flowcode V4\PICC-18\PRO\9.63\bin\picc18.exe


Compiler parameters

Adds command line parameters when called from Flowcode

Default:

--CHIP=%p -N48 %f.c


Linker/Assembler location

Sets the Assembler program location.

Default:

C:\Program Files\Matrix Multimedia\Flowcode V4\tools\Dummy\DoNothing.exe


Linker/Assembler parameters

Adds command line parameters when called from Flowcode

Default:


Programmer location

Sets the Programmer application location.

Default:

$(appdir)tools\PPP\PPPv3.exe


To use the PICkit2 programmer change the location to

C:\Program Files\Matrix Multimedia\Flowcode V4\tools\PICkit2\pk2cmd.exe


To use the PICkit3 programmer change the location to

C:\Program Files\Matrix Multimedia\Flowcode V4\tools\PICkit3\pk3cmd.exe


Programmer parameters

Adds command line parameters for the Programmer application.

Default:

-cs 2 -chip PIC$(chip) -nogui "$(outdir)$(target).hex"


To use the PICkit2 programmer change the parameters to

-BC:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PICkit2\ -PPIC%p -F%f.hex -M -A5 -R


To use the PICkit3 programmer change the parameters to

-P%p -F%f.hex -E -M -Y


Use Programmer to set configuration options

Check box to allow the Programmer application to be used to set up the configuration of the device. This setting needs to be unticked to allow you to use non default programming applications such as the PicKit2.


Configuration parameters

Supplies the command line parameters needed for configuration.

Default:

-cs 2 -chip PIC%p -config

Note: The above Programmer defaults assume that you are using the PPP Programming application from Matrix Multimedia. If you are using an alternative programming application you will need to consult the documentation for that application for the required parameters and settings.

Additionally configuration words can be embedded into the program using the Supplementary code feature, or C Code icons.


For help using the PicKit2 Programmer with Flowcode, untick the "Use Programmer to set configuration options" button and then click here to view the configuration settings required.


File Viewer location

Sets the File viewer location for viewing C and Assembly files.

Default:

C:\Windows\Notepad.exe


File Viewer parameters

Adds command line parameters for the File viewer program

Default Assembly file viewer

$(outdir)$(target).asm

Default external program to view source files

$(outdir)$(target).c