Author Topic: == Building the project ==  (Read 30008 times)

modtro2

  • Administrator
  • Hero Member
  • *****
  • Posts: 564
    • View Profile
== Building the project ==
« on: February 21, 2006, 04:28:29 PM »
Building the project with the MPLAB C18 Compiler
The free student version, or commercial version of the C18 compiler can be used for building the various projects (SBC44EC, SBC45EC, SBC65EC, SBC68EC...). They both work fine. Some optimization in the student version will be disabled after 60 days, but this only increases your code size by about 10 to 15% - the compiler still works fine!. The license even states that the free student version can be used for commercial purposes! The downloaded source code contains MPLAB projects for using this compiler to build projects for various hardware versions of the boards.

There are conflicts when trying to use a different version of the C18 compiler to build a project! You have to build a project with the exact version of the C18 compiler as stated on the source code download web page!

Building the project with the Hi Tech PICC18 compiler
The Hi Tech PICC18 compiler can also be used for compiling the projects. The downloaded source code contains MPLAB projects for using this compiler to build projects for various hardware versions of the boards.

Programming the SBC65EC and SBC68EC boards
The SBC65EC and SBC68EC boards are shipped with bootloaders, and don't require a PIC programmer to be programmed. See product documentation for details on using the bootloader. If a programmer is used, the user must take care not to overwrite the bootloader! For details, see http://forum.modtronix.com/index.php?topic=944.0

« Last Edit: March 30, 2008, 08:51:29 PM by modtro2 »

Tester0

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: == Building the project ==
« Reply #1 on: June 03, 2006, 11:42:58 AM »
Solved Problem! Thank you:  I used an old version of MPLAB(7.1) and C18...


Hello!

Trying to compile a project for SBC44EC rev 2.03(last version ?) with MPLAB 7.40 and MPLAB C18 3.02, I got the following error messge:

MPLINK 4.02, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find file 'c018i.o'.
Errors    : 1

It seems  to me that certain one already have this problem but with other board...

Could you help me? Thank's!



« Last Edit: June 04, 2006, 03:05:05 PM by Tester0 »

jaa

  • Full Member
  • ***
  • Posts: 16
    • View Profile
Re: == Building the project ==
« Reply #2 on: August 20, 2006, 04:57:48 PM »
Hello,

Trying to compile a project for SBC68EC rev 3.04 with MPLAB 7.30 and MPLAB C18 3.02, I got the following error message:

MPLINK 4.02, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'AARGB3' in file 'C:\mp730b_full\websrvr68_v304\src\net\tmp\helpers.o'.
Errors    : 1


After I tried with SBC68EC rev 3.02 . I got :

MPLINK 4.02, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'FPFLAGS' in file './c018i_v300_x800.o'.
Errors    : 1


Does someone can help me?

Br,
jaa

Wbi_tech_Brasil+

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: == Building the project ==
« Reply #3 on: November 23, 2006, 09:25:14 AM »
I program my unit  SBC45CR2 with original hex file and everything is right, but when compile the source file for SBC45CR2

Deleting intermediary files... done.
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "arp.c" -fo="arp.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "arptsk.c" -fo="arptsk.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "helpers.c" -fo="helpers.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "http.c" -fo="http.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "icmp.c" -fo="icmp.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "ip.c" -fo="ip.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "mpfs.c" -fo="mpfs.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "tcp.c" -fo="tcp.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "tick.c" -fo="tick.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "xeeprom.c" -fo="xeeprom.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "delay.c" -fo="delay.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "ftp.c" -fo="ftp.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "mxwebsrvr.c" -fo="mxwebsrvr.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "appcfg.c" -fo="appcfg.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "httpexec.c" -fo="httpexec.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
C:\websrvr45_v203\websrvr45_v203\src\httpexec.c:1166:Warning [2065] static function 'getHTTPWordVar' never referenced
C:\websrvr45_v203\websrvr45_v203\src\httpexec.c:1166:Warning [2065] static function 'getHTTPStringVar' never referenced
C:\websrvr45_v203\websrvr45_v203\src\httpexec.c:1166:Warning [2065] static function 'getHTTPStringVar' never referenced
C:\websrvr45_v203\websrvr45_v203\src\httpexec.c:1166:Warning [2065] static function 'getHTTPWordVar' never referenced
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "stacktsk.c" -fo="stacktsk.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "serint.c" -fo="serint.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F452 "mac.c" -fo="mac.o" /i".." /i"c:\mcc18\h" /i".\src" /i".\mxmctcpip" -sco
C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\mac.c:1373:Warning [2065] static function 'WaitForDmaToFinish' never referenced
Executing: "c:\mcc18\bin\mplink.exe" /l".." /l"." /l".\src" /l"c:\mcc18\lib" /k".\src" "src\18f452.lkr" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\arp.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\arptsk.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\helpers.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\http.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\icmp.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\ip.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\mpfs.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\tcp.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\tick.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\xeeprom.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\delay.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\ftp.o" "C:\websrvr45_v203\websrvr45_v203\src\mxwebsrvr.o" "C:\websrvr45_v203\websrvr45_v203\src\appcfg.o" "C:\websrvr45_v203\websrvr45_v203\src\httpexec.o" "C:\websrvr45_v203\websrvr45_v203\src\mxmctcpip\stacktsk.o" "C:\websrvr45_v203\websrvr45_v203\src\serint.
MPLINK 3.40, Linker
Copyright (c) 2003 Microchip Technology Inc.
Errors    : 0

MP2COD 3.40, COFF to COD File Converter
Copyright (c) 2003 Microchip Technology Inc.
Errors    : 0

MP2HEX 3.40, COFF to HEX File Converter
Copyright (c) 2003 Microchip Technology Inc.
Errors    : 0

Loaded C:\websrvr45_v203\websrvr45_v203\mpmxwebee.cof
BUILD SUCCEEDED: Thu Nov 23 15:18:02 2006

All look good, but when i program the new hex file the unit doesnt work.
Please someone help me...


Leycester

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: == Building the project ==
« Reply #4 on: November 30, 2006, 02:48:33 AM »
Hello,

In migrating to MPLAB v7.5 and MCC18 v3.02 I get the same error as Jaa did when compiling websrvr65_v305.

MPLINK 4.02, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol '__FPFLAGS' in file './c018i_v302_x800.o'.
Errors    : 1

BUILD FAILED: Thu Nov 30 09:26:31 2006

Any help would be appreciated. Thanks, Leycester.


mastua

  • Sr. Member
  • ****
  • Posts: 35
    • View Profile
Re: == Building the project ==
« Reply #5 on: November 30, 2006, 08:46:29 AM »
It's seem the paths are wrong, Have you installed the MCC compiler in the c:/ disk, I had the same issue, try to do it in that folder

Leycester

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: == Building the project ==
« Reply #6 on: November 30, 2006, 12:04:01 PM »
Have resolved issue, simply by moving the compiler code to the location recommended. Not clear why this is so at the moment as previous setups worked okay in different locations!

robabz

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: == Building the project ==
« Reply #7 on: January 22, 2007, 10:22:38 AM »
I am trying to compile the web server for SBC45EC.  I can not get it to compile.  I am using MPLAB 7.50 which does not seem to recognize the workspace mpmxwebee.mcp.  It is expecting an *.mcw.  When I load mpmxwebee.mcp the ability to do a build is not enabled.  There does not appear to be a tool to upgrade an older MC project to a MC workspace.  Can you assist me to get over this hump?

Thanks

sk_uk

  • Hero Member
  • *****
  • Posts: 80
    • View Profile
    • http://www.skpang.co.uk
Re: == Building the project ==
« Reply #8 on: January 22, 2007, 12:25:17 PM »
I am trying to compile the web server for SBC45EC.  I can not get it to compile.  I am using MPLAB 7.50 which does not seem to recognize the workspace mpmxwebee.mcp.  It is expecting an *.mcw.  When I load mpmxwebee.mcp the ability to do a build is not enabled.  There does not appear to be a tool to upgrade an older MC project to a MC workspace.  Can you assist me to get over this hump?

Thanks

Have you installed the MPLAB C18 Compiler?
Cut and paste the error you see and post it here.

robabz

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: == Building the project ==
« Reply #9 on: January 22, 2007, 12:38:29 PM »
I am trying to compile the web server for SBC45EC.  I can not get it to compile.  I am using MPLAB 7.50 which does not seem to recognize the workspace mpmxwebee.mcp.  It is expecting an *.mcw.  When I load mpmxwebee.mcp the ability to do a build is not enabled.  There does not appear to be a tool to upgrade an older MC project to a MC workspace.  Can you assist me to get over this hump?

Thanks

Have you installed the MPLAB C18 Compiler?
Cut and paste the error you see and post it here.

I have installed the C18 compiler.  The download version of mpmxwebee does not include a workspace for the IDE, so there is no error code, just no ability to build either.  I have tried to find the new Beta version of the server software, but all Modtronix pointers to that appear broken.  The older code (version 2.03) that is posted does not have the workspace necesary for MicroChip's IDE.

Alain

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: == Building the project ==
« Reply #10 on: October 03, 2007, 09:55:46 AM »
Hello

I'm a newbe working with MPLAB C projects but I made many assembly code programs with older and smaller PICs
I'm trying to build this project:

websrvr65_hw301.mcw installed in C:\websrvr65_v306

With:
MPLAB V7.60 installed in "C:\Program Files\Microchip\MPLAB IDE\Core\MPLAB.exe"
MCC18 student V3.12 installed in "C:\Program Files\MCC18"

This is the message I got from MPLAB

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\MCC18\bin\mcc18.exe" -p=18F6627  /i"C:\mcc18\h" -I".." "arp.c" -fo="arp.o" -Oi -sco -DBRD_SBC65EC
Thread would not exit normally.
Could not read language tool output from pipe.  (5)
A language-plugin exception occurred and was logged.
BUILD FAILED: Wed Oct 03 12:15:56 2007

Any help would be appreciated. Thanks

Dern

  • Sr. Member
  • ****
  • Posts: 34
    • View Profile
Re: == Building the project ==
« Reply #11 on: October 06, 2007, 02:23:34 AM »
Hi Alain,

I think your directories don't match: you installed mcc18 in c:\Program files\... but the project assumes everything is in c:\mcc18\... (see the 'Executing' line). Try updating the directories in Project->Build Options->Project

Nico

Alain

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: == Building the project ==
« Reply #12 on: October 06, 2007, 07:18:21 PM »
Nico

I uninstalled mcc18 and installed it in c:\mcc18

Now I have:
Loaded C:\websrvr65_v306\src\websrvr65_mc_hw211.cof.
BUILD SUCCEEDED: Sat Oct 06 22:10:26 2007

What about those warnings:
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F6627  /i"c:\mcc18\h" -I".." "http.c" -fo="tmp\http.o" -sco -DHAS_BOOTLOADER -DBRD_SBC65EC
C:\websrvr65_v306\src\net\http.c:347:Warning [2066] type qualifier mismatch in assignment
C:\websrvr65_v306\src\net\http.c:411:Warning [2066] type qualifier mismatch in assignment
C:\websrvr65_v306\src\net\http.c:662:Warning [2066] type qualifier mismatch in assignment

Now how I can do my own webpages?
I'm reading many postings here. Maybe I can find something?

Thanks
Alain

Smurf0

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: == Building the project ==
« Reply #13 on: January 07, 2008, 08:09:33 PM »
This is my first project using this type of board. I am using a SBC68EC and MPLAB IDE v7.6 and C18 v3.12 Student edition but I am having trouble compiling the example project + some of the example code for SPI comms with LCD2S. The error message I get is:

H:\Projects\GD6 Upgrade\Programs\websrvr68_v306\src\net\http.c:347:Warning [2066] type qualifier mismatch in assignment
H:\Projects\GD6 Upgrade\Programs\websrvr68_v306\src\net\http.c:411:Warning [2066] type qualifier mismatch in assignment
H:\Projects\GD6 Upgrade\Programs\websrvr68_v306\src\net\http.c:662:Warning [2066] type qualifier mismatch in assignment
H:\Projects\GD6 Upgrade\Programs\websrvr68_v306\src\net\http.c:1218:Error [1300] stack frame too large
H:\Projects\GD6 Upgrade\Programs\websrvr68_v306\src\net\http.c:1219:Error [1300] stack frame too large
H:\Projects\GD6 Upgrade\Programs\websrvr68_v306\src\net\http.c:1220:Error [1300] stack frame too large
H:\Projects\GD6 Upgrade\Programs\websrvr68_v306\src\net\http.c:1221:Error [1300] stack frame too large
H:\Projects\GD6 Upgrade\Programs\websrvr68_v306\src\net\http.c:1222:Error [1300] stack frame too large
Halting build on first failure as requested.
BUILD FAILED: Tue Jan 08 15:01:51 2008

I have not changed anything in http.c so I assume this problem is caused by something else I have/have not done. Does this look familiar to anyone? or does anyone have any ideas?

Thanks
Shane.

marc

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: == Building the project ==
« Reply #14 on: April 04, 2008, 03:27:48 AM »
How to build a hex file?

I get a cof file as a result after a succesful compile, but where do I specify in the project settings to build a hex file for use with the bootloader?