Building PIC MAXI WEB on mplab x v1.41

Started by Acuario, November 09, 2012, 08:33:33 AM

Previous topic - Next topic

Acuario

Hi,
I downloaded the patched PIC-MAXI-WEB code, unpacked the project and installed the C18 (v3.43) compiler from the Microchip site.

I imported the project from the old MPLAB format to mplab X v1.41 using the wizard.

When I build the project I get an error:

"C:\Program Files (x86)\Microchip\mplabc18\v3.43\bin\mplink.exe"    -p18f97j60  -w  -m".map" -w -l"../../../../../../mcc18_v3.34/lib"  -z__MPLAB_BUILD=1  -u_CRUNTIME -l "C:\Program Files (x86)\Microchip\mplabc18\v3.43\bin"\\..\\lib  -o dist/default/production/PIC_MAXI_WEB_5_31.X.production.cof  build/default/production/_ext/1295770447/Announce.o build/default/production/_ext/1295770447/ARP.o build/default/production/_ext/1295770447/AutoIP.o build/default/production/_ext/1295770447/BerkeleyAPI.o build/default/production/_ext/1295770447/Delay.o build/default/production/_ext/1295770447/DHCP.o build/default/production/_ext/1295770447/DHCPs.o build/default/production/_ext/1295770447/DNS.o build/default/production/_ext/1295770447/DNSs.o build/default/production/_ext/1295770447/DynDNS.o build/default/production/_ext/1295770447/ENC28J60.o build/default/production/_ext/1295770447/ENCX24J600.o build/default/production/_ext/1295770447/ETH97J60.o build/default/production/_ext/1295770447/FTP.o build/default/production/_ext/1295770447/Hashes.o build/default/production/_ext/1295770447/Helpers.o build/default/production/_ext/1295770447/HTTP2.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/MPFS2.o build/default/production/_ext/1295770447/NBNS.o build/default/production/_ext/1295770447/Reboot.o build/default/production/_ext/1295770447/SMTP.o build/default/production/_ext/1295770447/SNMP.o build/default/production/_ext/1295770447/SNTP.o build/default/production/_ext/1295770447/SPIEEPROM.o build/default/production/_ext/1295770447/SPIFlash.o build/default/production/_ext/1295770447/SPIRAM.o build/default/production/_ext/1295770447/StackTsk.o build/default/production/_ext/1295770447/TCP.o build/default/production/_ext/1295770447/TCPPerformanceTest.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/UART2TCPBridge.o build/default/production/_ext/1295770447/UART.o build/default/production/_ext/1295770447/UDP.o build/default/production/_ext/1295770447/UDPPerformanceTest.o build/default/production/_ext/1472/CustomHTTPApp.o build/default/production/_ext/1472/CustomSNMPApp.o build/default/production/_ext/1472/MainDemo.o build/default/production/_ext/1472/BerkeleyTCPClientDemo.o build/default/production/_ext/1472/BerkeleyTCPServerDemo.o build/default/production/_ext/1472/BerkeleyUDPClientDemo.o build/default/production/_ext/1472/GenericTCPClient.o build/default/production/_ext/1472/GenericTCPServer.o build/default/production/_ext/1472/LegacyHTTPApp.o build/default/production/_ext/1472/PingDemo.o build/default/production/_ext/1472/SMTPDemo.o build/default/production/_ext/1472/UARTConfig.o   
MPLINK 4.44, Linker
Device Database Version 1.9
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - section '.udata_UDP.o' can not fit the section. Section '.udata_UDP.o' length=0x00000124
Errors    : 1

make[2]: *** [dist/default/production/PIC_MAXI_WEB_5_31.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

Any idea what is going on?

Thanks

LubOlimex

Hello Acuario,

PIC-MAXI-WEB doesn't have an example compatible with MPLAB X. Please use MPLAB 8.XX - you can get it from the archives in the official Microchip site.

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

Acuario

Hi,
I downloaded and installed V8.88, loaded in the project - there were 2 missing files http.c and mpfs.c which I deleted.
I built the project and got the same error:

Executing: "C:\Program Files (x86)\Microchip\mplabc18\v3.43\bin\mplink.exe" /p18F97J60 /l"C:\mcc18_v3.34\lib" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\Announce.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\ARP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\AutoIP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\BerkeleyAPI.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\Delay.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\DHCP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\DHCPs.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\DNS.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\DNSs.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\DynDNS.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\ENC28J60.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\ENCX24J600.o" "Objects - TCPIP Demo App - C18 - PI
CDEMNET2_INTERNAL_ETHERNET\ETH97J60.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\FTP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\Hashes.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\Helpers.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\HTTP2.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\ICMP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\IP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\LCDBlocking.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\MPFS2.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\NBNS.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\Reboot.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\SMTP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\SNMP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\SNTP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INT
ERNAL_ETHERNET\SPIEEPROM.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\SPIFlash.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\SPIRAM.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\StackTsk.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\TCP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\TCPPerformanceTest.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\Telnet.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\TFTPc.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\Tick.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\UART2TCPBridge.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\UART.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\UDP.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\UDPPerformanceTest.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\CustomHTTPApp.o" "Objects - TCP
IP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\CustomSNMPApp.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\MainDemo.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\BerkeleyTCPClientDemo.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\BerkeleyTCPServerDemo.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\BerkeleyUDPClientDemo.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\GenericTCPClient.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\GenericTCPServer.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\LegacyHTTPApp.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\PingDemo.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\SMTPDemo.o" "Objects - TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET\UARTConfig.o" /u_CRUNTIME /z__MPLAB_BUILD=1 /m"PIC_MAXI_WEB_5_31.map" /w /o"PIC_MAXI_WEB_5_31.cof"
MPLINK 4.44, Linker
Device Database Version 1.9
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - section '.udata_UDP.o' can not fit the section. Section '.udata_UDP.o' length=0x00000124
Errors    : 1


Any ideas????

LubOlimex

There shouldn't be missing files. Also the error is the same in both cases... This error means there is not enough program memory. Did you use this example: https://www.olimex.com/Products/PIC/Development/PIC-MAXI-WEB/resources/PIC-MAXI-WEB.zip. It might be a problem with the MPLAB settings/configuration for the processor.

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