Microchip32 compile error PIC32MX220F032B etc

Please note that this toolsuite is not part of the official Firewing release but we will try and help where we can...

Microchip32 compile error PIC32MX220F032B etc

Postby avrin » Tue Dec 16, 2014 2:50 pm

Hello,

I'd like to use "Microchip 32"(XC32) compiler with PIC32MX220F032B chip and so on.
I've tried to setup in according to the Web document,
XC32Toolsuite
http://www.firewing.info/pmwiki.php?n=F ... 2Toolsuite

I think my setup is correct so far.
I'm using,
Compiler : XC32 v1.30 specified in "tsMicrochip32.ini" as follows:
[application]
Name=Microchip XC32 1.30
Path=d:\xc32\v1.30\bin
GCC=xc32-gcc.exe
GCCBinToHex=xc32-bin2hex.exe

I'm not using bootloader.
Device file : C:\ProgramData\Mecanique\Firewing\Includes\32MX220F032B.bas
generated by sysgen32.exe specified "XC32 v1.30" and "MPLAB v8.92" folders.
32MX220F032B.zip
32mx220f032b.bas: device file
(7.87 KiB) Downloaded 842 times


But I encountered compile error with very simple test program,
Code: Select all
device = 32mx220f032b
clock  = 48

sub Main()
       /* Nothing to do for test */
end sub

microchip32-compile-error.png
IDE compile error
microchip32-compile-error.png (66.19 KiB) Viewed 9981 times

It seems that the processor information is not recognized by toolsuits.

If I specify "device=32MX150F128B" with "Microchip 32" compiler,
no compile error occurs.

Could anynoe help me ?
Thank you.

avrin
avrin
 
Posts: 7
Joined: Sat Dec 13, 2014 9:41 am

Re: Microchip32 compile error PIC32MX220F032B etc

Postby David John Barker » Tue Dec 16, 2014 3:28 pm

Try using
Code: Select all
device = 32MX220F032B

The "MX" part needs to be in uppercase. This information is passed to the Microchip compiler at the command line and it doesn't like to see the "MX" part in lowercase - although it's happy with "f" and "b" in lowercase (?). Probably best to keep all uppercase in the future when including the device name for Microchip compilers.
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: Microchip32 compile error PIC32MX220F032B etc

Postby avrin » Tue Dec 16, 2014 3:46 pm

Hi David,
Thank you for your help.

"device = 32MX220F032B" is OK !.
I was very stupid.

I've recognized that all BASIC language is using ignore case style.

Dose Firewing language have other case sensitive syntax like "Device" ?

avrin
avrin
 
Posts: 7
Joined: Sat Dec 13, 2014 9:41 am

Re: Microchip32 compile error PIC32MX220F032B etc

Postby David John Barker » Tue Dec 16, 2014 4:11 pm

> I was very stupid.

Not at all. Firewing is not case sensitive. So device or DEVICE would be fine. It is only the device name that is passed at the command line to the GCC compiler. You should be fine with everything else, Firewing takes care of case.
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm


Return to Microchip 32

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x