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

From Flowcode Help
Jump to navigationJump to search
 
(3 intermediate revisions by 2 users not shown)
Line 10: Line 10:
 
[[Managing_Compiler_Options#Compiler_variables|Substitute variables used by Flowcode]] are the same for all platforms.
 
[[Managing_Compiler_Options#Compiler_variables|Substitute variables used by Flowcode]] are the same for all platforms.
  
 
+
__NOTOC__
 
==Compiler==
 
==Compiler==
 
[[File:Gen_Compiler_Options_Compiler_PIC16.png|right|524x400px]]
 
[[File:Gen_Compiler_Options_Compiler_PIC16.png|right|524x400px]]
Line 19: Line 19:
 
Default:
 
Default:
  
<code>'''$(appdir)compilers\pic16\batchfiles\pic16_C30_comp.bat'''</code>
+
<code>'''$(compilerpic16)batchfiles\pic16_C30_comp.bat'''</code>
  
  
Line 45: Line 45:
  
  
==Linker==
+
==Linker/Assembler==
 
[[File:Gen_Compiler_Options_Linker_Assembler_PIC16.png|right|524x400px]]
 
[[File:Gen_Compiler_Options_Linker_Assembler_PIC16.png|right|524x400px]]
 
'''Linker/Assembler location'''
 
'''Linker/Assembler location'''
Line 53: Line 53:
 
Default:
 
Default:
  
<code>'''$(appdir)compilers\pic16\batchfiles\pic16_C30_link.bat'''</code>
+
<code>'''$(compilerpic16)batchfiles\pic16_C30_link.bat'''</code>
  
  
Line 88: Line 88:
  
 
<code>'''$(appdir)tools\mLoader\mLoader.exe'''</code>
 
<code>'''$(appdir)tools\mLoader\mLoader.exe'''</code>
 
 
To use the PICkit2 programmer change the location to
 
 
<code>'''$(appdir)Tools\PICkit2\pk2cmd.exe'''</code>
 
 
 
To use the PICkit3 programmer change the location to
 
 
<code>'''$(appdir)Tools\PICkit3\pk3cmd.exe'''</code>
 
  
  
Line 109: Line 99:
  
  
To use the PICkit2 programmer change the parameters to
+
[[Supporting_Third_Party_Programming_Tools|Click here for details on using a third party programming e.g. PICkit]]
 
 
<code>'''-B$(appdir)Tools\PICkit2\ -P$(chipalt) -F$(target).hex -M -R'''</code>
 
 
 
 
 
To use the PICkit3 programmer change the parameters to
 
 
 
<code>'''$(appdir)Tools\PICkit3\ -P$(chip) -F$(target).hex -E -M'''</code>
 
 
 
Or for dsPIC and PICkit3
 
 
 
<code>'''$(appdir)Tools\PICkit3\ -P$(chip) -F$(target).hex -E -M -L -V3.3'''</code>
 
 
 
Where -V3.3 specifies the voltage of the hardware.
 
 
 
 
 
'''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 PPP as used in previous versions of Flowcode.
 
 
 
 
 
'''Configuration Location'''
 
 
 
Sets the Configuration application location.
 
 
 
Default:
 
 
 
<code>'''$(appdir)Tools\PPP\PPPv3.exe'''</code>
 
 
 
 
 
'''Configuration parameters'''
 
 
 
Supplies the command line parameters needed for configuration.
 
 
 
Default:
 
 
 
<code>'''-cs 1 -chip $(chipalt) -config'''</code>
 
 
 
 
 
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==
 
[[File:Gen_Compiler_Options_File_Viewer_PIC16.png|right|524x400px]]
 
'''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:
 
 
 
<code>'''C:\Windows\Notepad.exe'''</code>
 
 
 
 
 
'''File Viewer parameters'''
 
 
 
Adds command line parameters for the File viewer program
 
 
 
Default Assembly file viewer:
 
 
 
<code>'''$(outdir)$(target).asm'''</code>
 
 
 
Default external program to view source files:
 
 
 
<code>'''$(outdir)$(target).c'''</code>
 

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