Jump to content

Selecting Compiler Options (PICmicro): Difference between revisions

From Flowcode Help
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 13: Line 13:


==PIC XC8 Compiler==
==PIC XC8 Compiler==
[[File:Gen_Compiler_Options_Compiler_PIC.png|right|524x400px]]
[[File:Gen_Compiler_Options_Compiler_PIC.png|right]]
'''Compiler location'''
'''Compiler location'''


Sets the Compiler location.
Sets the Compiler location.


Default:
Default for E-Blocks:


<code>'''$(appdir)compilers\pic\bin\xc8.exe'''</code>
<code>'''$(fcddir)PIC\batch\pic_xc8_comp.bat'''</code>




Line 27: Line 27:
Adds command line parameters when called from Flowcode
Adds command line parameters when called from Flowcode


Default:
Default for E-Blocks:
 
<code>'''"$(compilerpic)" $(chip) "$(outdir)" "$(target)""'''</code>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


<code>'''--chip=$(chip) "$(target).c" --MSGDISABLE=359,1273,1388'''</code>




==PIC XC8 Linker/Assembler==
==PIC XC8 Linker/Assembler==
[[File:Gen_Compiler_Options_Linker_Assembler_PIC.png|right|524x400px]]
 
[[File:Gen_Compiler_Options_Linker_Assembler_PIC.png|right]]
'''Linker/Assembler location'''
'''Linker/Assembler location'''


Sets the Assembler program location.
Sets the Assembler program location.


Default:
Default for E-Blocks:


<code>'''$(appdir)tools\DoNothing\DoNothing.exe'''</code>
<code>'''$(appdir)tools\DoNothing\DoNothing.exe'''</code>
Line 47: Line 70:
Adds command line parameters when called from Flowcode
Adds command line parameters when called from Flowcode


Default:
Default for E-Blocks:


<code>''''''</code>
<code>''''''</code>




==Programmer==
==Programmer==
[[File:Gen_Compiler_Options_Programmer_PIC.png|right|524x400px]]
[[File:Gen_Compiler_Options_Programmer_PIC.png|right]]
'''Programmer location'''
'''Programmer location'''


Sets the Programmer application location.
Sets the Programmer application location.


Default:
Default for E-Blocks:


<code>'''$(appdir)tools\mLoader\mLoader.exe'''</code>
<code>'''$(appdir)tools\mLoader\mLoader.exe'''</code>
Line 65: Line 111:
'''Programmer parameters'''
'''Programmer parameters'''


Adds command line parameters for the Programmer application.
Adds command line parameters for the Programmer application.
 
Default for E-Blocks:
 
<code>'''-chip $(chip:u) "$(outdir)$(target).hex"'''</code>
 
 
[[Supporting_Third_Party_Programming_Tools|Click here for details on using a third party programming e.g. PICkit]]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
==File Viewer==
[[File:Gen_Compiler_Options_File_Viewer_PIC.png|right]]
 
'''Use external program to view source files'''
 
When ticked, allows an external viewer e.g Notepad to be used instead of the default internal viewer
 
'''Location'''
 
Sets the file viewer location.


Default:
Default:


<code>'''-chip $(chip:u) "$(outdir)$(target).hex"'''</code>
<code>'''C:\Windows\Notepad.exe'''</code>
 
 
'''Parameters'''
 
Adds command line parameters for the file viewer application.
 
Default:
 
<code>'''$(outdir)$(target).c'''</code>
 
 
[[Supporting_Third_Party_Programming_Tools|Click here for details on using a third party programming e.g. PICkit]]

Latest revision as of 11:01, 21 March 2023

<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.


PIC XC8 Compiler

Compiler location

Sets the Compiler location.

Default for E-Blocks:

$(fcddir)PIC\batch\pic_xc8_comp.bat


Compiler parameters

Adds command line parameters when called from Flowcode

Default for E-Blocks:

"$(compilerpic)" $(chip) "$(outdir)" "$(target)""













PIC XC8 Linker/Assembler

Linker/Assembler location

Sets the Assembler program location.

Default for E-Blocks:

$(appdir)tools\DoNothing\DoNothing.exe


Linker/Assembler parameters

Adds command line parameters when called from Flowcode

Default for E-Blocks:

'













Programmer

Programmer location

Sets the Programmer application location.

Default for E-Blocks:

$(appdir)tools\mLoader\mLoader.exe


Programmer parameters

Adds command line parameters for the Programmer application.

Default for E-Blocks:

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


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













File Viewer

Use external program to view source files

When ticked, allows an external viewer e.g Notepad to be used instead of the default internal viewer

Location

Sets the file viewer location.

Default:

C:\Windows\Notepad.exe


Parameters

Adds command line parameters for the file viewer application.

Default:

$(outdir)$(target).c


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