Hi!
I would like to customize pic32-maxi-web's project for my needs. I stucked at point reproduce the original project by source code.
There is a function conflicting issue in C32 project. It's reason is probably the other version of C32 compiler. Build info in README.txt says C32 1.10B. I cannot obtain that version anymore. Neither that compiler nor older libraries. For example my C32 is version 2.02.
The main problem is an "ultoa()" function.
From Helpers.h under TCPIP Stack (project's own directory):
#if !defined(__18CXX) || defined(HI_TECH_C)
char *strupr(char* s);
#if defined(HI_TECH_C)
// HI-TECH PICC-18 PRO 9.63 seems to already have a ultoa() library
// function, but the parameter list is different!
#define ultoa(val,buf) ultoa((buf),(val),10)
#else
void ultoa(DWORD Value, BYTE* Buffer);
#endif
#endif
Original gcc stdlib header (installed C32 compiler's directory):
#if !defined (_DEFINED_ULTOA)
extern char * ultoa(char * buf, unsigned long val, int base);
#undef _STDLIB_ULTOA
#define _STDLIB_ULTOA
#ifdef __C32_VERSION__
#define _C32_ULTOA
#endif
#endif
Steps to reproduce:
1. Download mplab (actually 8.91) from Microchip's official site here:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&part=SW007002 (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&part=SW007002)
(bottom of this page "MPLAB IDE v8.91")
2. Clean install it. It will install C32 Suite (free compiler) too.
3. Donwload Olimex project from here:
https://www.olimex.com/Products/PIC/Development/PIC32-MAXI-WEB/resources/DemoSoftPIC32-MAXI-WEBv1_01.zip (ftp://www.olimex.com/Products/PIC/Development/PIC32-MAXI-WEB/resources/DemoSoftPIC32-MAXI-WEBv1_01.zip)
4. Unzip it results a directory "DemoSoft". Double click "DemoSoft/PIC32-MAXI-WEB v1.00.mcw"
will open it with mplab installed before.
5. It will complain on start:
I have ignored it (also problem, but not the only one)
6. In MPLAB main menu: "Project" / "Clean" click,
7. In MPLAB main menu: "Procject" / "Build All" click will result a pop up window:
"Tool-Location Discrepancy: MPLAB C32 C Compiler (pic32-gcc.exe)", and offers your
location as "MPLAB IDE". Click "Use This".
Building result is 19K text. I cannot upload compiler's result as attachment. "Attachments and other options" below here not gives upload option (using latest Firefox) or at least i have not found it. Inserting 19K text is not funny, so i will not do that unless someone needs it as it is. The first error message is related to ultoa() mentioned above. The build fails.
Sry for long post ::)