Sunteți pe pagina 1din 3

05.08.

2010 Matrix Multimedia Frequently Asked Q…

Matrix Multimedia Frequently Asked


Questions
Solutions to common problems.

Skip to content

Search… Search
Advanced search

Board index ‹ Software ‹ Flowcode V4


Change font size
Print view

FAQ
Login

Using MPLAB with Flowcode v4


Moderator: Steve

Topic locked
Search this topic… Search

1 post • Page 1 of 1

Using MPLAB with Flowcode v4

by Support » Thu Jul 02, 2009 12:04 pm

Software : TEFLC104, TEFLCSI4, TEFLCSL4, TEFLCST4 - Flowcode V4


---------------------------------------

Symptoms :
----------------
Using MPLAB to compile code generated by Flowcode can be handy to use tools such as Microchips ICD
tool etc. There is a standalone license for the BoostC compiler for use with MPLAB but the code from
Flowcode does not compile correctly using MPLAB.

Cause :
----------------
There are a few reasons that could cause this compilation to fail, normally incorrect settings.
…matrixmultimedia.com/…/viewtopic.… 1/3
05.08.2010 Matrix Multimedia Frequently Asked Q…

Solution :
----------------
Firstly we have to setup MPLAB to use the BoostC compiler.

1) In MPLAB use the Project menu and select "select language toolsuite"
2) Set the active toolsuite to use the BoostC C Compiler for PIC16 / 18 depending on your target, click ok.
3) Use the Project menu and select "select language tool locations"
4) Expand the BoostC Compiler for PIC16
5) Check that the locations exist for the linker and compiler and search paths. The locations should point to
files within your Sourceboost folder.

Linker - C:\Program Files\SourceBoost\boostlink.pic.exe


Compiler - C:\Program Files\SourceBoost\boostc.pic16.exe

Assembler Include - C:\Program Files\SourceBoost\include


Include - C:\Program Files\SourceBoost\include
Library - C:\Program Files\SourceBoost\Lib
Linker Script - C:\Program Files\SourceBoost\include

Then to create your project in MPLAB you will need to do the following.

1) Using Flowcode create your program and compile to C.


2) Open MPLAB and click on the Project Menu and click New.
3) Give the project a name and select a directory on your hard drive to store the project.
4) Click on Project menu and select Add files to project
5) Select your C code file created by Flowcode
6) Click on Project menu and select Add files to project
7) Select the internals.h file located inside the "Flowcode vX/FCD" folder
8 ) Click on Project menu and select Add files to project
9) Browse to the "Sourceboost/Lib" folder, type *.* into the File name parameter box and press enter, now
select the "libc.pic16.lib" file and click open
10) Click on Project menu and select Add files to project
11) Browse to the "Sourceboost/Lib" folder, type *.* into the File name parameter box and press enter, now
select the "float.pic16.lib" file and click open
12) Use the configure menu and select "select device" to specify your target microcontroller
13) Use the configure menu and select "configuration bits" to specify the microcontrollers configuration
settings.
14) Use the Project menu and select Build to compile and create your source code files.

For the attached example project to work you must extract it to the root of your C drive. This will give you a
folder with the path "C:\Example"

www.matrixmultimedia.com/software/Example.zip

Support

Posts: 189
Joined: Wed Nov 22, 2006 2:49 pm
…matrixmultimedia.com/…/viewtopic.… 2/3
05.08.2010 Matrix Multimedia Frequently Asked Q…
Location: matrixmultimedia

Website

Top

Topic locked
1 post • Page 1 of 1

Return to Flowcode V4

Jump to: Flowcode V4 Go

Who is online
Users browsing this forum: No registered users and 1 guest

Board index
The team • Delete all board cookies • All times are UTC

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

…matrixmultimedia.com/…/viewtopic.… 3/3

S-ar putea să vă placă și