Difference between revisions of "Selecting Compiler Options (dsPIC/PIC24)"
(Created page with "Allows users to set the Compiler options. '''Options list''' See the Managing Compiler Settings topic for more information on using this featu...") |
|||
Line 9: | Line 9: | ||
'''Substitute variables used by Flowcode''' | '''Substitute variables used by Flowcode''' | ||
− | %t Target name e.g. 30F2011 | + | '''%t''' Target name e.g. 30F2011 |
− | %a Alternate target name e.g. dsPIC30F2011 | + | '''%a''' Alternate target name e.g. dsPIC30F2011 |
− | %f Filename without extension e.g. C:\Dev\Test\Mytest.fcf becomes - C:\Dev\Test\Mytest | + | '''%f''' Filename without extension e.g. C:\Dev\Test\Mytest.fcf becomes - C:\Dev\Test\Mytest |
− | %d Directory location of the Flowcode file | + | '''%d''' Directory location of the Flowcode file |
'''Compiler location''' | '''Compiler location''' | ||
+ | |||
Sets the location of the Microchip C30 compiler. | Sets the location of the Microchip C30 compiler. | ||
+ | |||
Default: | Default: | ||
− | |||
− | Compiler parameters | + | ''C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\MX_bats\pic16_C30_comp.bat'' |
+ | |||
+ | |||
+ | '''Compiler parameters''' | ||
+ | |||
Adds command line parameters when called from Flowcode | Adds command line parameters when called from Flowcode | ||
+ | |||
Default: | Default: | ||
− | |||
− | Linker/Assembler location | + | ''"%f" "%D" %T'' |
+ | |||
+ | |||
+ | '''Linker/Assembler location''' | ||
+ | |||
Sets the Assembler program location. | Sets the Assembler program location. | ||
+ | |||
Default: | Default: | ||
− | |||
− | Linker/Assembler parameters | + | ''C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\MX_bats\pic16_C30_link.bat'' |
+ | |||
+ | |||
+ | '''Linker/Assembler parameters''' | ||
+ | |||
Adds command line parameters when called from Flowcode | Adds command line parameters when called from Flowcode | ||
+ | |||
Default: | Default: | ||
− | |||
− | Programmer location | + | ''"%f" %T %y'' |
+ | |||
+ | |||
+ | '''Programmer location''' | ||
+ | |||
Sets the Programmer application location. | Sets the Programmer application location. | ||
+ | |||
Default: | Default: | ||
− | C:\Program Files\Matrix Multimedia\Flowcode V4\tools\mLoader\mLoader.exe | + | |
+ | ''C:\Program Files\Matrix Multimedia\Flowcode V4\tools\mLoader\mLoader.exe'' | ||
+ | |||
To use the PICkit2 programmer change the location to | To use the PICkit2 programmer change the location to | ||
− | C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PICkit2\pk2cmd.exe | + | |
+ | ''C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PICkit2\pk2cmd.exe'' | ||
+ | |||
To use the PICkit3 programmer change the location to | To use the PICkit3 programmer change the location to | ||
− | |||
− | Programmer parameters | + | ''C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PICkit3\pk3cmd.exe'' |
+ | |||
+ | |||
+ | '''Programmer parameters''' | ||
+ | |||
Adds command line parameters for the Programmer application. | Adds command line parameters for the Programmer application. | ||
+ | |||
Default: | Default: | ||
− | -chip%T -f"%f.hex" | + | |
+ | ''-chip%T -f"%f.hex"'' | ||
+ | |||
To use the PICkit2 programmer change the parameters to | To use the PICkit2 programmer change the parameters to | ||
− | -BC:\Program Files\Matrix Multimedia\Flowcode PIC16BIT V4\Tools\PICkit2\ -P%a -F%f.hex -M -R | + | |
+ | ''-BC:\Program Files\Matrix Multimedia\Flowcode PIC16BIT V4\Tools\PICkit2\ -P%a -F%f.hex -M -R'' | ||
+ | |||
To use the PICkit3 programmer change the parameters to | To use the PICkit3 programmer change the parameters to | ||
− | |||
− | Use Programmer to set configuration options | + | ''C:\Program Files\Matrix Multimedia\Flowcode PIC16BIT V4\Tools\PICkit3\ -P%p -F%f.hex -E -M'' |
+ | |||
+ | |||
+ | '''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. | 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 Location | + | |
+ | '''Configuration Location''' | ||
+ | |||
Sets the Configuration application location. | Sets the Configuration application location. | ||
+ | |||
Default: | Default: | ||
− | |||
− | Configuration parameters | + | ''C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PPP\PPPv3.exe'' |
+ | |||
+ | |||
+ | '''Configuration parameters''' | ||
+ | |||
Supplies the command line parameters needed for configuration. | Supplies the command line parameters needed for configuration. | ||
+ | |||
Default: | Default: | ||
− | -cs 1 -chip %a -config | + | |
+ | ''-cs 1 -chip %a -config'' | ||
+ | |||
Note: The above Programmer defaults assume that you are using the mLoader Programming application from Matrix Multimedia. | Note: The above Programmer defaults assume that you are using the mLoader 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. The above configuration editor defaults assume that you are using the PPP configuration tool from Matrix Multimedia. We recommend that you retain these settings to allow PPP to be able to specify the correct configuration for your device. | If you are using an alternative programming application you will need to consult the documentation for that application for the required parameters and settings. The above configuration editor defaults assume that you are using the PPP configuration tool from Matrix Multimedia. We recommend that you retain these settings to allow PPP to be able to specify the correct configuration for your device. | ||
+ | |||
Alternatively configuration words can be embedded into the program using the Supplementary code feature, or C Code icons. | Alternatively configuration words can be embedded into the program using the Supplementary code feature, or C Code icons. | ||
− | File Viewer location | + | |
+ | '''File Viewer location''' | ||
+ | |||
Sets the File viewer location for viewing C and Assembly files. | Sets the File viewer location for viewing C and Assembly files. | ||
+ | |||
The default is empty, this activates the use of the internal C code viewer. | The default is empty, this activates the use of the internal C code viewer. | ||
+ | |||
Default: | Default: | ||
− | |||
− | File Viewer parameters | + | ''<empty>'' |
+ | |||
+ | |||
+ | '''File Viewer parameters''' | ||
+ | |||
Adds command line parameters for the File viewer program | Adds command line parameters for the File viewer program | ||
+ | |||
Default: | Default: | ||
+ | |||
Blank. NO PARAMETERS. | Blank. NO PARAMETERS. |
Revision as of 12:16, 16 May 2013
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. 30F2011
%a Alternate target name e.g. dsPIC30F2011
%f Filename without extension e.g. C:\Dev\Test\Mytest.fcf becomes - C:\Dev\Test\Mytest
%d Directory location of the Flowcode file
Compiler location
Sets the location of the Microchip C30 compiler.
Default:
C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\MX_bats\pic16_C30_comp.bat
Compiler parameters
Adds command line parameters when called from Flowcode
Default:
"%f" "%D" %T
Linker/Assembler location
Sets the Assembler program location.
Default:
C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\MX_bats\pic16_C30_link.bat
Linker/Assembler parameters
Adds command line parameters when called from Flowcode
Default:
"%f" %T %y
Programmer location
Sets the Programmer application location.
Default:
C:\Program Files\Matrix Multimedia\Flowcode V4\tools\mLoader\mLoader.exe
To use the PICkit2 programmer change the location to
C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PICkit2\pk2cmd.exe
To use the PICkit3 programmer change the location to
C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PICkit3\pk3cmd.exe
Programmer parameters
Adds command line parameters for the Programmer application.
Default:
-chip%T -f"%f.hex"
To use the PICkit2 programmer change the parameters to
-BC:\Program Files\Matrix Multimedia\Flowcode PIC16BIT V4\Tools\PICkit2\ -P%a -F%f.hex -M -R
To use the PICkit3 programmer change the parameters to
C:\Program Files\Matrix Multimedia\Flowcode PIC16BIT V4\Tools\PICkit3\ -P%p -F%f.hex -E -M
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 Location
Sets the Configuration application location.
Default:
C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PPP\PPPv3.exe
Configuration parameters
Supplies the command line parameters needed for configuration.
Default:
-cs 1 -chip %a -config
Note: The above Programmer defaults assume that you are using the mLoader 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. The above configuration editor defaults assume that you are using the PPP configuration tool from Matrix Multimedia. We recommend that you retain these settings to allow PPP to be able to specify the correct configuration for your device.
Alternatively configuration words can be embedded into the program using the Supplementary code feature, or C Code icons.
File Viewer location
Sets the File viewer location for viewing C and Assembly files.
The default is empty, this activates the use of the internal C code viewer.
Default:
<empty>
File Viewer parameters
Adds command line parameters for the File viewer program
Default:
Blank. NO PARAMETERS.