Welcome, Guest

Author Topic: C18 and olimex_web : which compiler version ??  (Read 3191 times)

teicors

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
C18 and olimex_web : which compiler version ??
« on: April 08, 2013, 02:41:49 AM »
Hi all,
I'm playing with the soft of a Olimex_WEB-C18, in order to change the ip, logo, etc. I cannot figure out which version of C18 is correct in order to avoid :

Code: [Select]
Error - section '.code_HTTP.o' can not fit the section. Section '.code_HTTP.o' length=0x00000f06 
I'm using the 3.34, 3.40 and 3.45.
The TCPIP stack is the 4.02.
The PIC is 18F452.
The code model is large and data model is small.

Cheers
Angelo

PS here is the output of the log:


Code: [Select]
CLEAN SUCCESSFUL (total time: 297ms)
C:/Programmi/Microchip/MPLABX/gnuBins/GnuWin32/bin/make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/MCHPStack402/TCPIP Demo App/OLIMEX_WEB-C18.X'
C:/Programmi/Microchip/MPLABX/gnuBins/GnuWin32/bin/make  -f nbproject/Makefile-default.mk dist/default/production/OLIMEX_WEB-C18.X.production.hex
make[2]: Entering directory `C:/MCHPStack402/TCPIP Demo App/OLIMEX_WEB-C18.X'
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/Announce.o   "../../Microchip/TCPIP Stack/Announce.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/ARP.o   "../../Microchip/TCPIP Stack/ARP.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/Delay.o   "../../Microchip/TCPIP Stack/Delay.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/DHCP.o   "../../Microchip/TCPIP Stack/DHCP.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/DNS.o   "../../Microchip/TCPIP Stack/DNS.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/FTP.o   "../../Microchip/TCPIP Stack/FTP.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/GenericTCPClient.o   "../../Microchip/TCPIP Stack/GenericTCPClient.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/GenericTCPServer.o   "../../Microchip/TCPIP Stack/GenericTCPServer.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/Helpers.o   "../../Microchip/TCPIP Stack/Helpers.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/HTTP.o   "../../Microchip/TCPIP Stack/HTTP.c"
C:\MCHPStack402\Microchip\TCPIP Stack\HTTP.c:400:Warning [2066] type qualifier mismatch in assignment
C:\MCHPStack402\Microchip\TCPIP Stack\HTTP.c:632:Warning [2066] type qualifier mismatch in assignment
C:\MCHPStack402\Microchip\TCPIP Stack\HTTP.c:717:Warning [2066] type qualifier mismatch in assignment
C:\MCHPStack402\Microchip\TCPIP Stack\HTTP.c:729:Warning [2066] type qualifier mismatch in assignment
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/ICMP.o   "../../Microchip/TCPIP Stack/ICMP.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/IP.o   "../../Microchip/TCPIP Stack/IP.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/LCDBlocking.o   "../../Microchip/TCPIP Stack/LCDBlocking.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/MPFS.o   "../../Microchip/TCPIP Stack/MPFS.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/NBNS.o   "../../Microchip/TCPIP Stack/NBNS.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/SMTP.o   "../../Microchip/TCPIP Stack/SMTP.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/SNMP.o   "../../Microchip/TCPIP Stack/SNMP.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/SPIEEPROM.o   "../../Microchip/TCPIP Stack/SPIEEPROM.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/StackTsk.o   "../../Microchip/TCPIP Stack/StackTsk.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/TCP.o   "../../Microchip/TCPIP Stack/TCP.c"
C:\MCHPStack402\Microchip\TCPIP Stack\TCP.c:805:Warning [2066] type qualifier mismatch in assignment
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/Telnet.o   "../../Microchip/TCPIP Stack/Telnet.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/TFTPc.o   "../../Microchip/TCPIP Stack/TFTPc.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/Tick.o   "../../Microchip/TCPIP Stack/Tick.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/UART.o   "../../Microchip/TCPIP Stack/UART.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/UDP.o   "../../Microchip/TCPIP Stack/UDP.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/ENC28J60.o   "../../Microchip/TCPIP Stack/ENC28J60.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/ETH97J60.o   "../../Microchip/TCPIP Stack/ETH97J60.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/UDPPerformanceTest.o   "../../Microchip/TCPIP Stack/UDPPerformanceTest.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/TCPPerformanceTest.o   "../../Microchip/TCPIP Stack/TCPPerformanceTest.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/Reboot.o   "../../Microchip/TCPIP Stack/Reboot.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1295770447/DHCPs.o   "../../Microchip/TCPIP Stack/DHCPs.c"
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1472/MPFSImg.o   ../MPFSImg.c
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1472/MainDemo_web.o   ../MainDemo_web.c
C:\MCHPStack402\TCPIP Demo App\MainDemo_web.c:507:Warning [2054] suspicious pointer conversion
C:\MCHPStack402\TCPIP Demo App\MainDemo_web.c:1047:Warning [2066] type qualifier mismatch in assignment
C:\MCHPStack402\TCPIP Demo App\MainDemo_web.c:1162:Warning [2066] type qualifier mismatch in assignment
C:\MCHPStack402\TCPIP Demo App\MainDemo_web.c:1259:Warning [2066] type qualifier mismatch in assignment
C:\MCHPStack402\TCPIP Demo App\MainDemo_web.c:1270:Warning [2066] type qualifier mismatch in assignment
C:\MCHPStack402\TCPIP Demo App\MainDemo_web.c:1580:Warning [2066] type qualifier mismatch in assignment
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mcc18.exe"  -p18F452 -DOLIMEX_WEB -I"C:/MCHPStack402/Microchip" -I"C:/MCHPStack402/TCPIP Demo App" -I"C:/MCHPStack402/Microchip/Include" -ms -oa-  -I "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\h  -fo build/default/production/_ext/1472/test_web.o   ../test_web.c
"C:\Programmi\Microchip\mplabc18\v3.40\bin\mplink.exe"  "..\Linker\18f452i.lkr"  -p18f452  -w    -z__MPLAB_BUILD=1  -u_CRUNTIME -l "C:\Programmi\Microchip\mplabc18\v3.40\bin"\\..\\lib  -o dist/default/production/OLIMEX_WEB-C18.X.production.cof  build/default/production/_ext/1295770447/Announce.o build/default/production/_ext/1295770447/ARP.o build/default/production/_ext/1295770447/Delay.o build/default/production/_ext/1295770447/DHCP.o build/default/production/_ext/1295770447/DNS.o build/default/production/_ext/1295770447/FTP.o build/default/production/_ext/1295770447/GenericTCPClient.o build/default/production/_ext/1295770447/GenericTCPServer.o build/default/production/_ext/1295770447/Helpers.o build/default/production/_ext/1295770447/HTTP.o build/default/production/_ext/1295770447/ICMP.o build/default/production/_ext/1295770447/IP.o build/default/production/_ext/1295770447/LCDBlocking.o build/default/production/_ext/1295770447/MPFS.o build/default/production/_ext/1295770447/NBNS.o build/default/production/_ext/1295770447/SMTP.o build/default/production/_ext/1295770447/SNMP.o build/default/production/_ext/1295770447/SPIEEPROM.o build/default/production/_ext/1295770447/StackTsk.o build/default/production/_ext/1295770447/TCP.o build/default/production/_ext/1295770447/Telnet.o build/default/production/_ext/1295770447/TFTPc.o build/default/production/_ext/1295770447/Tick.o build/default/production/_ext/1295770447/UART.o build/default/production/_ext/1295770447/UDP.o build/default/production/_ext/1295770447/ENC28J60.o build/default/production/_ext/1295770447/ETH97J60.o build/default/production/_ext/1295770447/UDPPerformanceTest.o build/default/production/_ext/1295770447/TCPPerformanceTest.o build/default/production/_ext/1295770447/Reboot.o build/default/production/_ext/1295770447/DHCPs.o build/default/production/_ext/1472/MPFSImg.o build/default/production/_ext/1472/MainDemo_web.o build/default/production/_ext/1472/test_web.o   
MPLINK 4.40, Linker
Device Database Version 1.3
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - section '.code_HTTP.o' can not fit the section. Section '.code_HTTP.o' length=0x00000eb8
Errors    : 1

make[2]: *** [dist/default/production/OLIMEX_WEB-C18.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make[2]: Leaving directory `C:/MCHPStack402/TCPIP Demo App/OLIMEX_WEB-C18.X'
make: *** [.build-impl] Error 2
make[1]: Leaving directory `C:/MCHPStack402/TCPIP Demo App/OLIMEX_WEB-C18.X'

BUILD FAILED (exit value 2, total time: 22s)

RedDone

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: C18 and olimex_web : which compiler version ??
« Reply #1 on: March 13, 2014, 08:38:15 AM »
Hi Angelo,
I have the same problem. Which version of compiler you tried for the correct compilation? Have you reach this result up?
Enrico

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1949
  • Karma: +50/-3
Re: C18 and olimex_web : which compiler version ??
« Reply #2 on: March 18, 2014, 09:51:31 AM »
Hello guys,

We have already published all available documents for the PIC-WEB revision A (the one with PIC18F452) at this web page: https://www.olimex.com/Products/PIC/Development/PIC-WEB-A/.

Errors like the one you have mentioned are usually related to the linker script. Make sure to point the project settings to use the linker script included in the demo (in folder linker).

Unfortunately, we haven't manufactured PIC-WEB revision A boards for so long that we haven't a single leftover board for testing or support.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex