Difference between revisions of "Selecting Compiler Options (dsPIC/PIC24)"

From Flowcode Help
Jump to navigationJump to search
(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...")
 
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
<sidebar>Sidebar: Managing Compiler Options</sidebar>
 
Allows users to set the Compiler options.
 
Allows users to set the Compiler options.
  
Line 4: Line 5:
 
'''Options list'''
 
'''Options list'''
  
See the [[Managing compiler options|Managing Compiler Settings]] topic for more information on using this feature.
+
See the [[Managing Compiler Options]] topic for more information on using this feature.
  
  
'''Substitute variables used by Flowcode'''
+
[[Managing_Compiler_Options#Compiler_variables|Substitute variables used by Flowcode]] are the same for all platforms.
  
%t Target name e.g. 30F2011
+
__NOTOC__
 +
==Compiler==
 +
[[File:Gen_Compiler_Options_Compiler_PIC16.png|right|524x400px]]
 +
'''Compiler location'''
  
%a Alternate target name e.g. dsPIC30F2011
+
Sets the location of the Microchip C30 compiler.
  
%f  Filename without extension e.g. C:\Dev\Test\Mytest.fcf becomes - C:\Dev\Test\Mytest
+
Default:
  
%d Directory location of the Flowcode file
+
<code>'''$(compilerpic16)batchfiles\pic16_C30_comp.bat'''</code>
  
  
'''Compiler location'''
+
'''Compiler parameters'''
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
 
Adds command line parameters when called from Flowcode
 +
 
Default:
 
Default:
"%f" "%D" %T
 
  
Linker/Assembler location
+
<code>'''"$(outdir)$(target)" "$(outdir)" "$(chip:u)"'''</code>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
==Linker/Assembler==
 +
[[File:Gen_Compiler_Options_Linker_Assembler_PIC16.png|right|524x400px]]
 +
'''Linker/Assembler location'''
 +
 
 
Sets the Assembler program location.
 
Sets the Assembler program location.
 +
 
Default:
 
Default:
C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\MX_bats\pic16_C30_link.bat
 
  
Linker/Assembler parameters
+
<code>'''$(compilerpic16)batchfiles\pic16_C30_link.bat'''</code>
 +
 
 +
 
 +
'''Linker/Assembler parameters'''
 +
 
 
Adds command line parameters when called from Flowcode
 
Adds command line parameters when called from Flowcode
 +
 
Default:
 
Default:
"%f" %T %y
 
  
Programmer location
+
<code>'''"$(outdir)$(target)" $(chip:u) $(family)'''</code>
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
+
==Programmer==
C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PICkit3\pk3cmd.exe
+
[[File:Gen_Compiler_Options_Programmer_PIC16.png|right|524x400px]]
 +
'''Programmer location'''
 +
 
 +
Sets the Programmer application location.
  
Programmer parameters
 
Adds command line parameters for  the Programmer application.
 
 
Default:
 
Default:
-chip%T -f"%f.hex"
 
  
To use the PICkit2 programmer change the parameters to
+
<code>'''$(appdir)tools\mLoader\mLoader.exe'''</code>
-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
+
'''Programmer parameters'''
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
+
Adds command line parameters for  the Programmer application.
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:
 
Default:
-cs 1 -chip %a -config
 
  
Note: The above Programmer defaults assume that you are using the mLoader Programming application from Matrix Multimedia.
+
<code>'''-chip $(chip:u) "$(target).hex"'''</code>
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
+
[[Supporting_Third_Party_Programming_Tools|Click here for details on using a third party programming e.g. PICkit]]
Adds command line parameters for the File viewer program
 
Default:
 
Blank. NO PARAMETERS.
 

Latest revision as of 10:38, 14 November 2018

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


Options list

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


Substitute variables used by Flowcode are the same for all platforms.


Compiler

Gen Compiler Options Compiler PIC16.png

Compiler location

Sets the location of the Microchip C30 compiler.

Default:

$(compilerpic16)batchfiles\pic16_C30_comp.bat


Compiler parameters

Adds command line parameters when called from Flowcode

Default:

"$(outdir)$(target)" "$(outdir)" "$(chip:u)"









Linker/Assembler

Gen Compiler Options Linker Assembler PIC16.png

Linker/Assembler location

Sets the Assembler program location.

Default:

$(compilerpic16)batchfiles\pic16_C30_link.bat


Linker/Assembler parameters

Adds command line parameters when called from Flowcode

Default:

"$(outdir)$(target)" $(chip:u) $(family)









Programmer

Gen Compiler Options Programmer PIC16.png

Programmer location

Sets the Programmer application location.

Default:

$(appdir)tools\mLoader\mLoader.exe


Programmer parameters

Adds command line parameters for the Programmer application.

Default:

-chip $(chip:u) "$(target).hex"


Click here for details on using a third party programming e.g. PICkit