Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 04, 2020, 03:16:43 03:16


Login with username, password and session length


Author Sticky post (Click Here to visit source)
Top
Fix for MPLAB® XC Compilers

http://www.microchip.com/pagehandler/en_us/promo/mplabxc/

Windows, Linux & Mac OS X

13-Aug-2012; Updated for v1.10 compilers.
14-Aug-2012; MPLAB XC32 C++ license activated.
01-Jan-2013; License info update.
12-Jun-2014; Updated for v1.32 compilers.
19-Jun-2014; Fixed issue with XC32 compilers.
« Last Edit: June 20, 2014, 11:00:49 23:00 by Top »
Pages: 1 2 3 4 5 6 7 [8]
Print
Author Topic: XC Compilers - Software ONLY  (Read 205587 times)
0 Members and 2 Guests are viewing this topic.
graywolf
Newbie
*
Offline Offline

Posts: 13

Thank You
-Given: 0
-Receive: 14


« Reply #175 on: May 08, 2020, 03:36:55 03:36 »

I have completed a linux version and fully tested, same link to download Mac and Linux, when I have time I will do it for Windows as well.

if you run [xclm -v] you should see "Linux xclm XC8 XC16 XC32 patch V1.00.00 by Graywolf"

I have completed a version for OSX Catalina and tested against the latest versions.  Grin

XC8  = V2.20    Success
XC16 = V1.50   Success
XC32 = V2.40   Success

1) copy orginal xclm to xclm.old
2) copy new xclm
3) run the following command

[chmod +x xclm]

4) You can scan first by running

[xclm -scan]

5) You can patch by running the next command

[xclm -patch]


if you run [xclm -v] you should see "OSX Catalina xclm XC8 XC16 XC32 patch V1.00.00 by Graywolf"

Enjoy

« Last Edit: May 08, 2020, 03:40:46 03:40 by graywolf » Logged
krayzeeman
Inactive

Offline Offline

Posts: 5

Thank You
-Given: 14
-Receive: 0


« Reply #176 on: May 08, 2020, 08:48:39 08:48 »

Hi, thanks for the patch, but it doesn't seem to work for me.

I downloaded and installed a fresh copy of the XC8 v2.20 compiler and checked the status:

Code:
# ./xc8 --chip=16f1516 --opt=s
/Applications/microchip/xc8/v2.20/pic/bin/picc --chip=16f1516 --opt=s
Microchip MPLAB XC8 C Compiler V2.20
Build date: Apr  8 2020
Part Support Version: 2.20
Copyright (C) 2020 Microchip Technology Inc.
License type: Node Configuration

the current license does not permit the selected optimization level, using optimization level 2
(939) no file arguments
(908) exit status = 1

Which shows the correct error that the optimization level is not supported.

Then I ran the scan and the patch:

Code:
# chmod +x xclm
# ./xclm -scan
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/avr/bin/avr-pa
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-cpp
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-gcc
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-gcc-5.4.0
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-c++
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-g++
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/libexec/gcc/avr/5.4.0/lto1
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/libexec/gcc/avr/5.4.0/cc1plus
Discovered /Applications/microchip/xc8/v2.20/bin/../avr/libexec/gcc/avr/5.4.0/cc1
Discovered /Applications/microchip/xc8/v2.20/bin/../pic/bin/picc18
Discovered /Applications/microchip/xc8/v2.20/bin/../pic/bin/aspic
Discovered /Applications/microchip/xc8/v2.20/bin/../pic/bin/cgpic18
Discovered /Applications/microchip/xc8/v2.20/bin/../pic/bin/aspic18
Discovered /Applications/microchip/xc8/v2.20/bin/../pic/bin/cgpic
Discovered /Applications/microchip/xc8/v2.20/bin/../pic/bin/picc
Total Files scanned 15360
Total Files ready to patch 15

# ./xclm -patch
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/avr/bin/avr-pa
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-cpp
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-gcc
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-gcc-5.4.0
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-c++
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/bin/avr-g++
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/libexec/gcc/avr/5.4.0/lto1
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/libexec/gcc/avr/5.4.0/cc1plus
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../avr/libexec/gcc/avr/5.4.0/cc1
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../pic/bin/picc18
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../pic/bin/aspic
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../pic/bin/cgpic18
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../pic/bin/aspic18
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../pic/bin/cgpic
Patching 64 bytes /Applications/microchip/xc8/v2.20/bin/../pic/bin/picc
Total Files scanned 15360
Total Files patched 15

And then I ran the check again to see if the patch was successful:

Code:
# ./xc8 --chip=16f1516 --opt=s
/Applications/microchip/xc8/v2.20/pic/bin/picc --chip=16f1516 --opt=s
/Applications/microchip/xc8/v2.20/pic/bin/picc: signal 9
(900) exec failed: /Applications/microchip/xc8/v2.20/pic/bin/picc

Code:
# ./xclm -v
OSX Catalina xclm XC8 XC16 XC32 patch V1.00.00 by Graywolf

I’m running macOS 10.15.4 Catalina with the latest updates.
Any ideas?
Logged
tumbleweed
Newbie
*
Offline Offline

Posts: 24

Thank You
-Given: 37
-Receive: 10


« Reply #177 on: May 09, 2020, 01:56:09 13:56 »

@graywolf - When you get a chance it'd be nice to try out a win version.

tia
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4356

Thank You
-Given: 745
-Receive: 3070


There is no evidence that I muted SoNsIvRi


« Reply #178 on: May 09, 2020, 02:49:43 14:49 »

@graywolf - When you get a chance it'd be nice to try out a win version.

tia

Why when the solution is a few pages back?
lazy looker

or if that's too hard try the demo...
Logged

Note: We do not do Child Care Here. There are kindergartens in your Local Area
tumbleweed
Newbie
*
Offline Offline

Posts: 24

Thank You
-Given: 37
-Receive: 10


« Reply #179 on: May 09, 2020, 10:56:50 22:56 »

Quote
lazy looker
Not at all.

I've used the original version for quite a while with no problems. I like the scan feature he has in his version.
Logged
heyb4r
Inactive

Offline Offline

Posts: 1

Thank You
-Given: 3
-Receive: 0


« Reply #180 on: June 10, 2020, 08:49:14 08:49 »

@graywolf - hello, i was able to patch xc16 - v1.50 but the patched version seems not working. It tries to find a linker script file named
Code:
--script=p24FJ1024GB610.gld.00
instead of
Code:
--script=p24FJ1024GB610.gld

The "normal" version does not have this problem. I'm on Catalina up to date.
Have I missed something ??
Ps: I've also tested the Linux version of your tool which crashes on Ubuntu 20.04 (core dump)
Logged
engiadina
Inactive

Offline Offline

Posts: 3

Thank You
-Given: 1
-Receive: 2


« Reply #181 on: June 21, 2020, 04:52:09 16:52 »

@graywolf

Same problem here:

(900) exec failed: /Applications/microchip/xc8/v2.20/pic/bin/picc

Seems, the patch might need some minor touchup :-)

Many regards

Logged
MetaMetal
Junior Member
**
Offline Offline

Posts: 45

Thank You
-Given: 45
-Receive: 231


« Reply #182 on: July 30, 2020, 05:08:29 17:08 »

XC8 2.20 Windows:

Copy xclm.exe from C:\Program Files\Microchip\xc8\v2.20\bin to C:\Program Files\Microchip\xc8\v2.20\pic\bin as xclm.old.
Copy the patcher (xclm.exe) to C:\Program Files\Microchip\xc8\v2.20\pic\bin.
Run xclm.exe.
Copy xclm.exe and xclm.old to C:\Program Files\Microchip\xc8\v2.20\bin.

Try it!
Logged
max
Active Member
***
Offline Offline

Posts: 246

Thank You
-Given: 1177
-Receive: 35


« Reply #183 on: August 01, 2020, 08:43:22 08:43 »

Hi,

Is there any simple IDE for using with XC8 compiler, I am looking
for mplab simple alternative.

Regards
Logged

Fate arrived and made the conscious unconscious It silenced the activity of life.
mars01
V.I.P
Senior Member
*****
Offline Offline

Posts: 480

Thank You
-Given: 580
-Receive: 1421



« Reply #184 on: August 01, 2020, 10:29:42 10:29 »

Hi,

Is there any simple IDE for using with XC8 compiler, I am looking
for mplab simple alternative.

Regards

Notepad++ https://notepad-plus-plus.org/downloads/v7.0/ ?
Not really an IDE but you can have the C keywords highlighted and once you used a keyword is also included in the Completer.

Or perhaps Code::Blocks http://codeblocks.org/

Compiling then can be done in command line (you can make some scripts for that).
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4356

Thank You
-Given: 745
-Receive: 3070


There is no evidence that I muted SoNsIvRi


« Reply #185 on: August 01, 2020, 01:13:40 13:13 »

Also Slickedit & UltraEdit
link for PDF file
« Last Edit: August 01, 2020, 01:22:50 13:22 by pickit2 » Logged

Note: We do not do Child Care Here. There are kindergartens in your Local Area
Pages: 1 2 3 4 5 6 7 [8]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC