Sonsivri

Electronics => Pic C Languages => Topic started by: Top on March 29, 2012, 12:08:30 00:08



Title: XC Compilers - Software ONLY
Post by: Top on March 29, 2012, 12:08:30 00:08
Fix for MPLAB® XC Compilers

http://www.microchip.com/pagehandler/en_us/promo/mplabxc/ (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.


Title: Re: MPLAB XC Compilers
Post by: LithiumOverdosE on June 04, 2012, 04:14:50 16:14
XC8 is based on HiTech PICC + PICC18 with compatibility mode for C18.
XC16 is ex-C30.
XC32 is ex-C32.

Since MPLABX 1.20 all XCx tool chains are present.

However, now my Proteus tool chain disappeared but that's hardly a problem for the moment.


Title: Re: MPLAB XC Compilers
Post by: MichelM on June 16, 2012, 10:28:08 10:28
Hello

You will find user guide and instruction to add compiler plugin to mplab X here

http://www.microchip.com/pagehandler/en_us/promo/mplabxc/ (http://www.microchip.com/pagehandler/en_us/promo/mplabxc/)
http://ww1.microchip.com/downloads/en/DeviceDoc/52053A.pdf (http://ww1.microchip.com/downloads/en/DeviceDoc/52053A.pdf)
http://ww1.microchip.com/downloads/en/Market_Communication/addXC8ToMplabX.pdf (http://ww1.microchip.com/downloads/en/Market_Communication/addXC8ToMplabX.pdf)


Title: Re: XC Compilers - Software ONLY
Post by: Top on August 01, 2012, 01:21:24 13:21
The link in dl.txt is not working any more.

Original post updated; new links in dl.txt.


Title: Re: XC Compilers - Software ONLY
Post by: LithiumOverdosE on August 11, 2012, 12:11:37 12:11
I just tried this fix with XC8 1.10 and the compiler stays in Free mode.

With XC8 1.00 and 1.01 everything is fine.


Title: Re: XC Compilers - Software ONLY
Post by: Top on August 11, 2012, 12:50:39 12:50
I just tried this fix with XC8 1.10 and the compiler stays in Free mode.

Try replacing xclm.exe in C:\Program Files\Microchip\xc8\v1.10\bin folder.


Title: Re: XC Compilers - Software ONLY
Post by: LithiumOverdosE on August 11, 2012, 01:05:56 13:05
Ah, so that was the trick. In previous versions it was enough to replace it in C:\Program Files\Microchip\xclm directory.  ;)


Title: Re: XC Compilers - Software ONLY
Post by: marcodassi on August 12, 2012, 11:09:13 11:09
Just downloaded XC8, XC16 and XC32 1.10; tested with current fix; results:

- XC8 1.10 - fine, works in Pro mode with all optimizations;
- XC16 1.10 - fine, works in Pro mode with all optimizations;
- XC32 1.10 - DOESN'T WORK - the compiler stays in Free mode, no optimizations allowed

I've tried to copy xclm.exe in the "\Program Files\Microchip\xc32\v1.10\bin" folder too, with no luck.

Please fix it, if possibile :)
Thank you very much in advance! :)


Title: Re: XC Compilers - Software ONLY
Post by: cranor on September 13, 2012, 03:23:12 15:23
The version v1.41 of MPLAB® X IDE is available from here : http://www.microchip.com/mplabx-ide-windows-installer

It solves some of compilation and compiler detection issues with XC compilers but introduces new problems too..


Title: Re: XC Compilers - Software ONLY
Post by: SpaleKG on October 07, 2012, 11:44:27 23:44
Just to confirm that current fix works fine on Mac OSX on all XC compilers.

I have one question about MPLAB X IDE.
How to configure project when using bootloader in PIC. For example bootloader uses first 200 bytes of FLASH memory, so how to tell compiler to generate hex to start after that ?


Title: Re: XC Compilers - Software ONLY
Post by: jukinch on October 07, 2012, 11:54:45 23:54
SpaleKG:
     you can use a project specific "linker script" to start after that memory location.
               Jukinch     


Title: Re: XC Compilers - Software ONLY
Post by: odessa on October 08, 2012, 09:47:22 09:47
You can set a code offset from within MPlab X. If you right click your project - select properties - then click linker - Choose additional options from the drop down menu on the right you'll see a code offset option.


Title: Re: XC Compilers - Software ONLY
Post by: SpaleKG on October 13, 2012, 12:33:34 12:33
You can set a code offset from within MPlab X. If you right click your project - select properties - then click linker - Choose additional options from the drop down menu on the right you'll see a code offset option.

Does this move interrupt vector adresses too or I need to do that somehow?


Title: Re: XC Compilers - Software ONLY
Post by: Gallymimu on October 13, 2012, 05:36:53 17:36
Does this move interrupt vector adresses too or I need to do that somehow?

I'm pretty sure you can't move the interrupt vector addresses.  Some of the PIC processors have alternate interrupt vector tables which follow directly in memory after the primary interrupt vectors but that doesn't help you much with typical bootloader related issues.

You can however point the interrupt vectors to a jump table that resides in your application memory space that can then be overwritten when you load a new firmware.  That way you can update interrupt function locations without overwriting the first segments of memory.


Title: Re: XC Compilers - Software ONLY
Post by: RedAlert on October 30, 2012, 08:11:07 20:11
Mplab XC8 v1.11

Download:
Windows: http://www.microchip.com/mplabxc8windows
Linux: http://www.microchip.com/mplabxc8linux
MAC: http://www.microchip.com/mplabxc8osx


Title: Re: XC Compilers - Software ONLY
Post by: marcodassi on October 31, 2012, 11:50:05 23:50
XC8 1.11 works with latest "medicine" too :) :) :)


Title: Re: XC Compilers - Software ONLY
Post by: j2mb on November 28, 2012, 03:48:26 03:48
I'm using MPLAB X IDE v1.51 and compiler XC8 v1.11 and is working well!  :D :D :D


Title: Re: XC Compilers - Software ONLY
Post by: metal on November 28, 2012, 03:50:55 03:50
u'r kidding me!?


Title: Re: XC Compilers - Software ONLY
Post by: TucoRamirez on November 28, 2012, 08:31:47 08:31
the thing that confuses me about mplabX is that even if my code is ok, mplab show me "!" signs ... (even with XC demos or the application libraries -that compile 100/100 ok ) ...  anyway, the config tool inside is quite nice :) 

but, mplabx is crappy slow on my eeepc netbook (1G Ram ... )  ...but in a 4GB elitebook hp runs ok :) ...


Title: Re: XC Compilers - Software ONLY
Post by: LithiumOverdosE on November 28, 2012, 11:06:14 11:06
I'm using MPLAB X IDE v1.51 and compiler XC8 v1.11 and is working well!  :D :D :D

Well, same here on Win7 x64.


Title: Re: XC Compilers - Software ONLY
Post by: Gallymimu on November 28, 2012, 03:26:02 15:26
the thing that confuses me about mplabX is that even if my code is ok, mplab show me "!" signs ... (even with XC demos or the application libraries -that compile 100/100 ok ) ...  anyway, the config tool inside is quite nice :) 

but, mplabx is crappy slow on my eeepc netbook (1G Ram ... )  ...but in a 4GB elitebook hp runs ok :) ...

I have a lot of problems with this as well.  They don't have the parsing working quite right yet.  It's especially bad in XC8


Title: Re: XC Compilers - Software ONLY
Post by: gamegurus on December 03, 2012, 09:04:41 09:04
After install, How to check, if XC compiler is free or PRO versions?
I tried all ways 1) cmd 2) compile test and see output in MPLABX
but didnt find any such info.


Title: Re: XC Compilers - Software ONLY
Post by: TucoRamirez on December 03, 2012, 01:07:32 13:07
check the project properties, in the part of compiler tou will see the options of optimisation


Title: Re: XC Compilers - Software ONLY
Post by: Gallymimu on December 03, 2012, 04:22:27 16:22
check the project properties, in the part of compiler tou will see the options of optimisation

I don't think that tells you, all options always show in the properties.

You need to run the compiler and look at the output.  It should say it is running in free mode and omniscient code generation is disabled if it is in free mode.


Title: Re: XC Compilers - Software ONLY
Post by: ximo on December 24, 2012, 09:37:32 09:37
XC8 v1.12 is working ok with this fix. Tested on Ubuntu 12.04.
Regards


Title: Re: XC Compilers - Software ONLY
Post by: juvann on December 31, 2012, 08:57:53 08:57
This is my first message in this forum. I want to share the source code of my xclm, I developed it before register to Sonsivri.


Title: Re: XC Compilers - Software ONLY
Post by: metal on December 31, 2012, 11:50:23 11:50
Attached is codeblocks project to generate executables.

juvann: does it work for all compilers?


Title: Re: XC Compilers - Software ONLY
Post by: juvann on December 31, 2012, 06:03:05 18:03
Yes works with all compilers. Tested on Windows and Linux with latest version of xc8, xc16 and xc32
With linux and MacOSX you can compile with:
Code:
gcc -o xclm xclm.c


Title: Re: XC Compilers - Software ONLY
Post by: jayanthd on December 31, 2012, 08:33:07 20:33
Hi! juvann

Should I compile xclm.c and use the xclm.exe with all the XC Compilers? Will it work?


Title: Re: XC Compilers - Software ONLY
Post by: juvann on December 31, 2012, 09:11:59 21:11
Sure jayanthd just replace the original xclm.exe distributed by Microchip with new compiled and you have all optimizations enabled. In new versions the path of xclm.exe is changed. Now every compiler has own xclm.exe, but you can change every xclm with this.
I posted the source code, because I don't like replace file without see the source code. The original post use the same method, replace the original xclm.exe with a fake xclm.


Title: Re: XC Compilers - Software ONLY
Post by: jayanthd on December 31, 2012, 10:11:38 22:11
Sure jayanthd just replace the original xclm.exe distributed by Microchip with new compiled and you have all optimizations enabled. In new versions the path of xclm.exe is changed. Now every compiler has own xclm.exe, but you can change every xclm with this.
I posted the source code, because I don't like replace file without see the source code. The original post use the same method, replace the original xclm.exe with a fake xclm.

OK. I got it. Where can I get XC32++ Compiler. There is only standard version at microchip site to try. I need the Pro version of XC32++ Compiler.


Title: Re: XC Compilers - Software ONLY
Post by: juvann on December 31, 2012, 11:49:53 23:49
C++ is include in XC32 from version 1.11. You can download a free license from Microchip. I never tested XC32++, I will try it with fake xclm.

EDIT
New version, now is supported also PRO for C++, just replace xclm in xc32/bin/ directory and works C and C++.



Title: Re: XC Compilers - Software ONLY
Post by: pumper on February 26, 2013, 02:48:48 14:48
hi juvan
Can you upload your code here ?
and give us some information about the source.


Title: Re: XC Compilers - Software ONLY
Post by: juvann on March 01, 2013, 09:55:33 21:55
You can download the source from link without problem, I tried it now.
What information do you want? xclm with exit code give the level of license to the compiler. For XC8 there is also a lookup table for calculate an hash.


Title: Re: XC Compilers - Software ONLY
Post by: Ichan on March 02, 2013, 03:20:58 15:20
Will the XC environment (the MPLAB + all the compilers) run side by side with the older one?

Looks like i have to start working with it, but i always hate updating software if it will ruin my current projects.

-ichan


Title: Re: XC Compilers - Software ONLY
Post by: Sideshow Bob on March 02, 2013, 03:33:12 15:33
I Have XC8, and the older Hi-Tech C 9.80, and 9.83, and the 18 series Hi-Tech compiler running under MPLAB in perfect harmony.  You just select the compiler you want to use as normal.


Title: Re: XC Compilers - Software ONLY
Post by: Ichan on March 02, 2013, 03:44:41 15:44
Thank you, and how about MPLAB 8.x vs MPLAB XC, will they installed and run side by side?

-ichan


Title: Re: XC Compilers - Software ONLY
Post by: Sideshow Bob on March 02, 2013, 04:00:10 16:00
Each time I tried to use MPLABX. I got pissed off. So I dropped it. I have MPLABX installed and they work side by side. But as I see it MPLABX is still beta. And the documentation is still inadequate. Better with the devil you know, as they say


Title: Re: XC Compilers - Software ONLY
Post by: Gallymimu on March 02, 2013, 10:27:59 22:27
Thank you, and how about MPLAB 8.x vs MPLAB XC, will they installed and run side by side?

-ichan

yes you can use them both but you have to use the driver switcher tool each time you want to use the other IDE (the usb drivers for the IDEs is different).  The driver switcher tool is easy to use.


Title: Re: XC Compilers - Software ONLY
Post by: Brosske on March 03, 2013, 10:15:57 10:15
Hi Bob, must say that I did a lot of research before I choosed the compiler/linker/programmer-suite (had to do for work - influencing a lot of novice students).
Finaly I went for Wiz-C.

But now I was forced to go back to MPLAB for library reasons (USB, MiWi and next project will be TCP/IP). We can't ignore that MPLAB is the standard, and the only way MicroChip will assure assistance.
So with a little help of an old-student I find the X not so bad finaly....

The clue is to get 'in' it, and to have someone besides you to figure out the most common errors.
I think µC did do some demo-videos, and should invest more in demo-projects (debugger included).

Greetz. :-)


Title: Re: XC Compilers - Software ONLY
Post by: Ichan on March 09, 2013, 10:19:20 22:19
I hold my hand to play with MPLAB X for now, but i have to with XC8 as the PICC doesn't support newer chips any longer.

Playing with XC8 for a while, a question: What should "License Type" shows? Or perhaps, is it not important?

With Top's xclm.exe:

Microchip MPLAB XC8 C Compiler V1.12
Copyright (C) 2012 Microchip Technology Inc.
License type: w



With Juvann's xclm.exe:

Microchip MPLAB XC8 C Compiler V1.12
Copyright (C) 2012 Microchip Technology Inc.
License type: Node Configuration


Both compiled successful and gave exactly the same flash and ram usage.

-ichan


Title: Re: XC Compilers - Software ONLY
Post by: Top on March 09, 2013, 10:22:44 22:22
It's not important but it should read 'Node Configuration' as in Juvann's code; mine needs updating :-[


Title: Re: XC Compilers - Software ONLY
Post by: SpaleKG on January 04, 2014, 07:47:14 19:47
Hi,

Just to add about MPLAB X. You also can change xclm executable to hacked/compiled one (it is the same file as in compiler's /bin folder.

The location of bin folder in MPLAB X app (I don't know where is it on windows and linux but there is location for MAC OS X):
/Applications/microchip/mplabx/mplab_ide.app/Contents/Resources/mplab_ide/bin/

So simply replace original xclm executable with cracked one (this is just in case that MPLAB X uses he's own xclm together with compiler binaries).

One more thing about compiling xclm on MAC OS X. Here is output of GCC compile:

Code:
spale@macpro:~/Downloads/Safari$ gcc -o xclm xclm.c 
xclm.c:28:13: warning: implicitly declaring library function 'strcmp' with type 'int
      (const char *, const char *)'
        if(!strcmp(asArg[iNdx],"swxc8"))
            ^
xclm.c:28:13: note: please include the header <string.h> or explicitly provide a declaration
      for 'strcmp'
1 warning generated.
spale@macpro:~/Downloads/Safari$

My platform:
Mac OS X 10.9.1 (Mavericks)
GCC version:
Code:
spale@macpro:~/Downloads/Safari$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
spale@macpro:~/Downloads/Safari$

Executable working well, but you can see those warnings, so it can be update for OSX (with few precompiled definitions).

Thanks,

Spale.


Title: Re: XC Compilers - Software ONLY
Post by: myheadhurts on January 14, 2014, 03:05:24 15:05
Hi

Q. Does the replacement xclm.exe allow the xc compilers to run without being authorised by internet?.


I have an induction motor project I'd like to try....possibly using a DSPic33 and using the Microchip FOC examples as a starting point.

but my main work related PC at home is never connected to the outside internet ,just to a home LAN.

I have copied and installed MPLab and the xc compilers .but they want to connect to the outside world to authorise.

cheers Rob



Title: Re: XC Compilers - Software ONLY
Post by: LithiumOverdosE on January 14, 2014, 06:10:43 18:10
Most likely MPLAB X is trying to install or update plugins.


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on January 15, 2014, 06:44:53 06:44
Quote
I have copied and installed MPLab and the xc compilers .but they want to connect to the outside world to authorise.

That is, if you try to set at 60 day trial. Set as the simplest form and then will take the treatment.


Title: Re: XC Compilers - Software ONLY
Post by: myheadhurts on January 19, 2014, 03:25:24 15:25
That is, if you try to set at 60 day trial. Set as the simplest form and then will take the treatment.

YES..that cured it .. Strange thing is... I thought I had opted to set it to the free version and not the trial

thanks Rob.


Title: Re: XC Compilers - Software ONLY
Post by: ehnonymouse on January 20, 2014, 08:50:12 20:50
For XC8 compiler, the medicine works well for V1.21, but for V1.30 I get the following errors on Win 8.1

C:\Users\Ken\AppData\Local\Temp\s2q8.:8016: error: syntax error
C:\Users\Ken\AppData\Local\Temp\s2q8.:8026: error: syntax error

Windows 7 gives me

C:\Users\Ken\AppData\Local\Temp\s1es.:8097: error: syntax error
C:\Users\Ken\AppData\Local\Temp\s1es.:8107: error: syntax error

Selecting V1.21 again, everything works.

Maybe there's something different in the compiler, but the error message isn't helpful.


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on January 21, 2014, 06:11:04 06:11
On my projects, everything works without error (WINDOWS 8.0)


Title: Re: XC Compilers - Software ONLY
Post by: TucoRamirez on January 21, 2014, 12:46:40 12:46
i'm a little bit off topic but... does the xclm fine works with the dspic new simulink blockset ? because they have a bon folder with a xclm implicated.  best regards


Title: Re: XC Compilers - Software ONLY
Post by: Diramo on January 22, 2014, 08:54:34 08:54
XC8 compiler works in "free mode". xclm.exe was replaced with the Top's medicine.
I changed back to the 1.21 - no any problems.
May be I did something wrong?


Title: Re: XC Compilers - Software ONLY
Post by: Interprog on January 22, 2014, 05:12:15 17:12
XC8 1.30 works
delete the XC8 1.21 folder,  install 1.30 and replace xclm


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on January 23, 2014, 07:50:21 19:50
I installed version 1.20, 1.21, 1.30, and at the same time all work. :)


Title: Re: XC Compilers - Software ONLY
Post by: ehnonymouse on January 24, 2014, 02:55:58 14:55
Now I'm thinking my issue is a compiler bug.


Title: Re: XC Compilers - Software ONLY
Post by: malinbay on May 15, 2014, 11:09:52 23:09
C++ is include in XC32 from version 1.11. You can download a free license from Microchip. I never tested XC32++, I will try it with fake xclm.

EDIT
New version, now is supported also PRO for C++, just replace xclm in xc32/bin/ directory and works C and C++.



re-upload please..


Title: Re: XC Compilers - Software ONLY
Post by: green_paint on May 20, 2014, 11:27:25 23:27
I installed the medicine on a XC8 v1.30 compiled program.  The program memory used was reduced significantly, (from 75% to %22.5 in standard mode and to %16.5 in pro mode).
A problem arises when a function where strings are handled, stops working when its compiled in pro mode. In standard and free mode the algorithm works just fine.
Does anyone had this kind of a problem?
Regards


Title: Re: XC Compilers - Software ONLY
Post by: Ichan on May 21, 2014, 03:45:55 03:45
If the strings are in the program memory then i think it is packed as 7 bit characters. Me will try to find on the manual if there is a way to disable this feature.

-ichan


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on May 21, 2014, 04:30:19 04:30
I think this is not a problem medicine is a problem of the compiler, "at the current stage of development"  :D


Title: Re: XC Compilers - Software ONLY
Post by: h0nk on May 21, 2014, 07:55:38 07:55

Hello green-paint,

For midrange devices XC8 doesnt use the DA directive to pack 7-bit ASCII's into a 14 bit word,
because there is no generic way to access flash memory on a range of PIC devices.

If a variable is declared const, XC8 generates code to access the variable via RETLW instructions.
Otherwise XC8 reserves a chunk of memory (aka registers) and copies the string into this chunk.
This might inappropriate for large static text :-).

It would be helpful to separate Your source into relevant pieces and take a look
at the generated code and to separate out the part at which the compiler fails.


Best Regards


Title: Re: XC Compilers - Software ONLY
Post by: metal on May 21, 2014, 08:15:40 08:15
this is why we were hoping that microchip bought cc5x instead of hitech :D


Title: Re: XC Compilers - Software ONLY
Post by: Sideshow Bob on May 21, 2014, 11:47:55 11:47
I installed the medicine on a XC8 v1.30 compiled program.  The program memory used was reduced significantly, (from 75% to %22.5 in standard mode and to %16.5 in pro mode).
A problem arises when a function where strings are handled, stops working when its compiled in pro mode. In standard and free mode the algorithm works just fine.
Does anyone had this kind of a problem?
Regards
How do you decleare and access your strings. Can post some code showing your problem


Title: Re: XC Compilers - Software ONLY
Post by: Interprog on June 24, 2014, 08:13:50 20:13
XC8 1.31 works but  1.32  don´t works  ???

Microchip MPLAB XC8 C Compiler (Free Mode) V1.31
License type: Node Configuration
Program Used: 1768 (0x6E8) Free: 31000 (0x7918)

--mode=pro
Microchip MPLAB XC8 C Compiler (PRO Mode) V1.31
License type: Node Configuration
Program Used: 1390 (0x56E) Free: 31378 (0x7A92)

Microchip MPLAB XC8 C Compiler (Free Mode) V1.32
License type: Node Configuration
Program Used: 1676 (0x68C) Free: 31092 (0x7974)

--mode=pro
Microchip MPLAB XC8 C Compiler (Free Mode) V1.32
License type: Node Configuration
Program Used: 1676 (0x68C) Free: 31092 (0x7974)




Title: Re: XC Compilers - Software ONLY
Post by: Wannabe on June 24, 2014, 10:53:59 22:53
Are you using latest fix?
http://www.sonsivri.to/forum/index.php?topic=44014.0


Title: Re: XC Compilers - Software ONLY
Post by: Interprog on June 25, 2014, 08:50:53 20:50
Yes, i use the last fix.
date: 19.06.2014

Windows
MD5: 10ced13a23a1129ecf040c32556d4b99


Title: Re: XC Compilers - Software ONLY
Post by: metal on June 25, 2014, 09:17:31 21:17
upload ur code, can't reproduce ur results:


Code:
Memory Summary, free mode:
    Program space        used  1D8Ah (  7562) of  8000h bytes   ( 23.1%)
    Data space           used   135h (   309) of   800h bytes   ( 15.1%)
    Configuration bits   used     7h (     7) of     7h words   (100.0%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    ID Location space    used     8h (     8) of     8h bytes   (100.0%)
    Data stack space     used     0h (     0) of   36Eh bytes   (  0.0%)


Memory Summary, pro mode:
    Program space        used  1654h (  5716) of  8000h bytes   ( 17.4%)
    Data space           used   12Ch (   300) of   800h bytes   ( 14.6%)
    Configuration bits   used     7h (     7) of     7h words   (100.0%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    ID Location space    used     8h (     8) of     8h bytes   (100.0%)
    Data stack space     used     0h (     0) of   384h bytes   (  0.0%)


Title: Re: XC Compilers - Software ONLY
Post by: Interprog on June 25, 2014, 09:45:41 21:45
Sorry, I do not want to publish the program.
I have test this code and the same result , 1.32 only free mode
http://ww1.microchip.com/downloads/en/DeviceDoc/11_Indirection.zip

Microchip MPLAB XC8 C Compiler (Free Mode) V1.31
Program Used: 124 (0x7C) Free: 8068 (0x1F84)
    Program space        used    7Ah (   122) of  2000h words   (  1.5%)
    Data space           used    1Ah (    26) of   400h bytes   (  2.5%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   316h bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)


Microchip MPLAB XC8 C Compiler (PRO Mode) V1.31
Program Used: 86 (0x56) Free: 8106 (0x1FAA)
Memory Summary:
    Program space        used    54h (    84) of  2000h words   (  1.0%)
    Data space           used    12h (    18) of   400h bytes   (  1.8%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   31Eh bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)

Microchip MPLAB XC8 C Compiler (Free Mode) V1.32
Program Used: 125 (0x7D) Free: 8067 (0x1F83)

Memory Summary:
    Program space        used    7Bh (   123) of  2000h words   (  1.5%)
    Data space           used    1Ah (    26) of   400h bytes   (  2.5%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   316h bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)

--mode=pro   
but run in freemode
Microchip MPLAB XC8 C Compiler (Free Mode) V1.32
Program Used: 125 (0x7D) Free: 8067 (0x1F83)

Memory Summary:
    Program space        used    7Bh (   123) of  2000h words   (  1.5%)
    Data space           used    1Ah (    26) of   400h bytes   (  2.5%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   316h bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)


Title: Re: XC Compilers - Software ONLY
Post by: pickit2 on June 25, 2014, 10:01:35 22:01


Sorry, I do not want to publish the program.

Microchip MPLAB XC8 C Compiler (Free Mode) V1.32
Program Used: 125 (0x7D) Free: 8067 (0x1F83)

Memory Summary:
    Program space        used    7Bh (   123) of  2000h words   (  1.5%)
    Data space           used    1Ah (    26) of   400h bytes   (  2.5%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   316h bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)

--mode=pro   
but run in freemode
Microchip MPLAB XC8 C Compiler (Free Mode) V1.32
Program Used: 125 (0x7D) Free: 8067 (0x1F83)

Memory Summary:
    Program space        used    7Bh (   123) of  2000h words   (  1.5%)
    Data space           used    1Ah (    26) of   400h bytes   (  2.5%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   316h bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)
All I see is your running the same code in pro mode (freemode) and getting the same result as the free version.
So what are you expecting?


Title: Re: XC Compilers - Software ONLY
Post by: Interprog on June 25, 2014, 10:11:35 22:11
I think the crack does not work with the 1.32 version, it always run in free mode and not pro mode.
Can you test the xc8 1.32 version in pro mode.


Title: Re: XC Compilers - Software ONLY
Post by: Top on June 25, 2014, 10:17:23 22:17
I think the crack does not work with the 1.32 version, it always run in free mode and not pro mode.

Open a command prompt, change to your install folder (CD C:\Program Files (x86)\Microchip\xc8\v1.32\bin\), type xclm and hit enter.

Do you see any output?


Title: Re: XC Compilers - Software ONLY
Post by: Interprog on June 25, 2014, 10:52:57 22:52
Thanks , you are right.

It is solved, xc8 1.32 run in pro mode now.  :D
The problem was it not found the xclm.old.
The environment variable path was false.

Microchip MPLAB XC8 C Compiler (PRO Mode) V1.32
Memory Summary:
    Program space        used    55h (    85) of  2000h words   (  1.0%)
    Data space           used    12h (    18) of   400h bytes   (  1.8%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   31Eh bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)


Title: Re: XC Compilers - Software ONLY
Post by: mitsos on July 04, 2014, 08:50:41 20:50
hi

after trying the last patches from Top,
I find these:
the previous xclm.exe (19968 bytes-12/6/2014) is working well in xc8-1.32 and xc16-1.21
and the last xclm.exe ( 26624 bytes-20/6/2014) is working only in xc32-1.32

regards
mitsos

unistall/reinstall the compilers and apply the patch using the last xclm.exe (26624 bytes)


Title: Re: XC Compilers - Software ONLY
Post by: Top on July 04, 2014, 10:57:51 22:57
and the last xclm.exe ( 26624 bytes-20/6/2014) is working only in xc32-1.32

The 'last xclm.exe' should work with all compilers; be careful when swapping xclm.exe, you must always rename the old xclm.exe to xclm.old and then run xclm.exe once as admin to maintain the correct hash in the compilers. If you have any problems then open a command prompt, change to your install directory and run xclm.exe, if you have a v1.32 compiler then you should see 'OK'.


Title: Re: XC Compilers - Software ONLY
Post by: folkeu on July 05, 2014, 10:32:09 22:32
Hi,
It's not possible tu download the last fix for me. I have an error on the page to http://uppit.com/.
This error is when i generate the link :
Quote
Software error:
Can't exec:
Column 'ip' cannot be null at Modules/DataBase.pm line 55.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. 

Have I only this problem ?
It"s is possible to report this fix on another downloader ? 


Title: Re: XC Compilers - Software ONLY
Post by: Thiru09 on July 06, 2014, 06:19:11 06:19
Uploaded to Mirrorcreator

Regards,
Thiru


Title: Re: XC Compilers - Software ONLY
Post by: jannie on August 14, 2014, 09:40:05 21:40
Ok for others that still only getting free mode when build project
not sure if it is mentioned in previos post's
remember to change your optimizations operation mode to PRO after medicine MPLAB X


Title: Re: XC Compilers - Software ONLY
Post by: jannie on August 16, 2014, 10:30:06 10:30
how can i get xclm newest to run on linux need xclm.jar
but no source code for new xclm to compile


Title: Re: XC Compilers - Software ONLY
Post by: juvann on August 24, 2014, 08:42:06 08:42
In MXC1321.7z there are 3 versions: Windows, Linux and MacOS, just replace your xclm with Linux/xclm and follow instructions in README.txt
In my previous version I released the source code but Top prefers not release it. You can continue to run my xclm, but you need apply a patch to XC compilers which check if checksum of xclm is good.


Title: Re: XC Compilers - Software ONLY
Post by: microcris on September 14, 2014, 10:22:26 10:22
Fix for MPLAB® XC Compilers

http://www.microchip.com/pagehandler/en_us/promo/mplabxc/ (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.

It's still working fine in v1.33 (linux) :)


Title: Re: XC Compilers - Software ONLY
Post by: Criss_B on September 20, 2014, 11:06:32 11:06
Hello !
Please fix de link described in txt file. Generator of link where de file must to be download is dead.
Thank you.


Title: Re: XC Compilers - Software ONLY
Post by: jcddcjjcd on September 21, 2014, 07:14:02 07:14
The link was fine when I just tried it. Perhaps you should try again.
Regards,
John.


Title: Re: XC Compilers - Software ONLY
Post by: CatBandit on October 08, 2014, 01:41:25 13:41
The download link is well and alive here today.

And XC8 1.33 works fine with xlcm  :D, as expected it worked perfectly on the first shot on a Win7 x64  :D


Title: Re: XC Compilers - Software ONLY
Post by: orpheedulogis on October 22, 2014, 07:21:00 07:21
I tried many time with "dl.txt" link

"Software error:

Can't exec:
Column 'ip' cannot be null at Modules/DataBase.pm line 55.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error."


Can you give another link ? thanks


Title: Re: XC Compilers - Software ONLY
Post by: Thiru09 on October 22, 2014, 08:57:59 08:57
MirrorCreator

Regards
Thiru


Title: Re: XC Compilers - Software ONLY
Post by: adelgado on October 28, 2014, 05:46:27 17:46
MirrorCreator

Regards
Thiru

I can't get working with xc16 v1.23


Title: Re: XC Compilers - Software ONLY
Post by: pechyx on November 02, 2014, 07:23:25 19:23
Hello guys,
today I tried update MPLAB X from 2.2 to 2.25 and I got some problems with XC compilers:
.
.
.
.
"/opt/microchip/xc16/v1.22/bin/xc16-gcc"   /home/pechyx/MPLABXProjects/LetadloRX.X/KS0108.c  -o build/default/production/_ext/1515683553/KS0108.o  -c -mcpu=24FJ256GB206  -MMD -MF "build/default/production/_ext/1515683553/KS0108.o.d"      -mno-eds-warn  -g -omf=elf -fno-short-double -mlarge-code -mlarge-data -mlarge-scalar -mconst-in-code -menable-large-arrays -O0 -fomit-frame-pointer -I"FreeRTOSV8.1.2/FreeRTOS/Source/include" -I"FreeRTOSV8.1.2/FreeRTOS/Source/portable/MPLAB/PIC24_dsPIC" -I"FreeRTOSV8.1.2/FreeRTOS/Source/portable/MemMang" -I"FreeRTOSV8.1.2/FreeRTOS" -I"/home/pechyx/MPLABXProjects/LetadloRX.X" -I"Microchip/Include" -I"Microchip/MDD File System" -I"/home/pechyx/MPLABXProjects/LetadloRX.X" -msmart-io=1 -Wall -msfr-warn=off
elf-cc1: warning: Attempt to override license manager detected
elf-cc1: warning: Attempt to override license manager detected
elf-cc1: warning: Attempt to override license manager detected
.
.
.
.

I'm using xclm (linux) latest medicine.

Some idea how solve it?


Title: Re: XC Compilers - Software ONLY
Post by: Top on November 02, 2014, 09:47:12 21:47
Hello guys,
today I tried update MPLAB X from 2.2 to 2.25 and I got some problems with XC compilers:
...

Open a terminal, run opt/microchip/xc16/v1.22/bin/xclm and reply with any output.


Title: Re: XC Compilers - Software ONLY
Post by: pechyx on November 03, 2014, 04:40:53 16:40
hello,

here is output from terminal, but output is nothing  :( .

pechyx@pechyxc-top /opt/microchip/xc16/v1.22/bin $ ./xclm
pechyx@pechyxc-top /opt/microchip/xc16/v1.22/bin $ su root
password:
pechyxc-top bin # ./xclm
pechyxc-top bin #

thx


Title: Re: XC Compilers - Software ONLY
Post by: Top on November 03, 2014, 06:01:16 18:01
here is output from terminal, but output is nothing  :( .

There should be some output from my xclm; run sha256sum opt/microchip/xc16/v1.22/bin/xclm and reply with output.


Title: Re: XC Compilers - Software ONLY
Post by: koky on November 03, 2014, 06:37:47 18:37
with windows version compiler 1.33 and mplabx 2.25 there is not problem


Title: Re: XC Compilers - Software ONLY
Post by: jayw on November 25, 2014, 03:04:57 03:04
Hi.. I installed the current medicine with xc16 v1.23 but it keeps giving me the following errors..

elf-cc1.exe: warning: Attempt to override license manager detected
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
elf-cc1.exe: warning: Attempt to override license manager detected

I have followed the Readme file and it works for xc8 v1.33. However it does not work for xc16. Can you help me? Thanks!

edit: running xclm in terminal ouputs nothing.


Title: Re: XC Compilers - Software ONLY
Post by: Top on November 25, 2014, 06:09:16 18:09
edit: running xclm in terminal ouputs nothing.

You are probably using a different/old fix; running my xclm.exe in a terminal will produce output. What's the file size of your xclm.exe?


Title: Re: XC Compilers - Software ONLY
Post by: jayw on November 26, 2014, 03:20:45 03:20
The xclm.exe size is 20kB.

I got it from the dl.txt file in the sticky.

Do I need to add any switches to produce output?

Thanks

edit: I used the xclm.exe from MXC1321.7z by Juvann and it works ok now with xc16 v1.23


Title: Re: XC Compilers - Software ONLY
Post by: alichan on November 28, 2014, 08:48:41 20:48
Just to say that xclm (in dl.txt in the sticky), is 26kb not 20kb (unless it was updated and i didn't notice) with

Name: xclm.exe
CRC-32: d3c4a688
MD4: 88b7515de0cd5c14b0d3cf5766e3ff8f
MD5: 10ced13a23a1129ecf040c32556d4b99
SHA-1: e0570107814a72b7498016f887896703ce814ed1


Title: Re: XC Compilers - Software ONLY
Post by: donhamilton on December 01, 2014, 12:06:14 00:06
Looks like a newer version is available at: http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/#tab-1

Under the downloads tab.

xc8-v1.33-full-install-windows-installer.exe

Says is a "B" version.

Medicine does not work on it.


Title: Re: XC Compilers - Software ONLY
Post by: koky on December 01, 2014, 07:01:35 07:01
for me work fine


Title: Re: XC Compilers - Software ONLY
Post by: curiousity on December 27, 2014, 06:06:05 06:06
Anybody tell me what i am got into   ???

I have installed Microchip MLA and XC16 1.21 (free) with MPLAB X

every thing gone well and I had heads up with code space(93%), I tried to go for 60 day PRO trial.
 
After getting license, I executed the bat file and changed the optmzn level to s, But i am only getting 82%.. (I am getting the same without the license file)

I don think it was working as a PRO version. How to check it ?

I tried XC16 1.23 in opt '0', it gave me 97% and in 's' it gave me 86%.

Here is the build output and having no word about compiler mode.

please tell me the way to 60% optimization.

Code:
Program Memory  [Origin = 0x200, Length = 0xa9f8]

section                    address   length (PC units)   length (bytes) (dec)
-------                    -------   -----------------   --------------------
.text                        0x200              0x1d6a          0x2c1f  (11295)
.const                      0x1f6a               0x30e           0x495  (1173)
.text                       0x2278              0x6b7c          0xa13a  (41274)
.dinit                      0x8df4               0x23e           0x35d  (861)
.text                       0x9032               0x496           0x6e1  (1761)

                     Total program memory used (bytes):         0xdc2c  (56364) 86%


Data Memory  [Origin = 0x800, Length = 0x2000]

section                    address      alignment gaps    total length  (dec)
-------                    -------      --------------    -------------------
.nbss                        0x800                   0           0x9c6  (2502)
.data                       0x11c6                   0             0x2  (2)
_02F8FEA0549e499f           0x11c8                   0           0x200  (512)
_02DCC000549e499f           0x13c8                   0           0x200  (512)
.nbss                       0x15c8                   0           0x170  (368)
.ndata                      0x1738                   0            0x24  (36)
_02F02420549e499f           0x175c                   0            0x3a  (58)
.nbss                       0x1796                   0            0x2c  (44)
.ndata                      0x17c2                   0            0x18  (24)
.nbss                       0x17da                   0             0x8  (8)
.ndata                      0x17e2                   0             0x4  (4)
.bss                        0x17e6                   0            0x16  (22)
.bss                        0x17fc                   0             0x2  (2)
_02F00660549e49a4           0x1800                   0            0x10  (16)
.data                       0x1810                   0           0x250  (592)
.heap                       0x1a60                   0           0x3e8  (1000)

                        Total data memory used (bytes):         0x1646  (5702) 69%


Dynamic Memory Usage

region                     address                      maximum length  (dec)
------                     -------                      ---------------------
heap                        0x1a60                               0x3e8  (1000)
stack                       0x1e48                               0x9b8  (2488)

                        Maximum dynamic memory (bytes):          0xda0  (3488)


Title: Re: XC Compilers - Software ONLY
Post by: trfillos on December 28, 2014, 03:55:15 15:55
Hello,
Can someone please post the link again for the latest xclm? A couple that I tried it says file not found.

Thank you very much.


Title: Re: XC Compilers - Software ONLY
Post by: Taner on December 31, 2014, 11:41:51 11:41
Microchip XC8 1.33, XC16 1.22, XC32 1.33 x86
torrent and direct links
:)


Title: Re: XC Compilers - Software ONLY
Post by: xmas on February 01, 2015, 09:29:45 09:29
the following configuration works fine with dl.txt
Windows 7 64bit
Mplab X IDE v2.30
XC8 (v1.33)


Title: Re: XC Compilers - Software ONLY
Post by: Crazy_4 on February 06, 2015, 06:10:03 06:10
Fellows, I got this running. Win7, Mplabx2.3, XC8 1.33D (last patch), and the last MXC1321.7z
pretty fine, code shrinked, all ok.
Thanks to all you for your time and Top for his great contribution.
Regards.


Title: Re: XC Compilers - Software ONLY
Post by: jcddcjjcd on March 01, 2015, 11:18:44 23:18
Does the fix still work with XC8 v1.34 just released?
Regards,
John.


Title: Re: XC Compilers - Software ONLY
Post by: Xwing on March 02, 2015, 06:44:04 06:44
Does the fix still work with XC8 v1.34 just released?

It works without problems.


Title: Re: XC Compilers - Software ONLY
Post by: idesign on May 18, 2015, 10:00:15 10:00
I can't get it to work with

Win8.1
MplabX 3.00.02
XC32 v1.34

The output windows says "Corrupt executable file. Please reinstall the compiler."


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on May 18, 2015, 09:38:23 21:38
Already the Release MPLAB® X IDE v3.00 (http://www.microchip.com/mplabx-ide-windows-installer). On W8.1 it works without problems.


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on July 31, 2015, 09:41:42 09:41
XC8 compiler and part support patch too updated to V1.35....
...patch work!

XC16 to V.1.25 as well.

Manuel.


Title: Re: XC Compilers - Software ONLY
Post by: kaem1189 on September 09, 2015, 08:07:27 08:07
"medicine" worked with my xc32 v1.31 compiler..
i just followed the instructions in the README file..

be sure the replace the xclm.exe of xc compiler and not the xclm for mplabX ide

Ps. link is working as of today  :)

Thank you so much..


Title: Re: XC Compilers - Software ONLY
Post by: Rakky on October 06, 2015, 08:07:50 20:07
Link isn't working anymore. For me anyway. getting a 404


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on October 07, 2015, 03:32:43 03:32
Link isn't working anymore. For me anyway. getting a 404

Link working, though antivirus NOD started to block this link


Title: Re: XC Compilers - Software ONLY
Post by: ehnonymouse on October 10, 2015, 09:23:21 09:23
Link isn't working anymore. For me anyway. getting a 404

I just tried it and had to use Adblock Plus to see the download link. Patch seems to work with MPLABX 3.10, XC8 1.35 on Windows 10 pro X64.


Title: Re: XC Compilers - Software ONLY
Post by: gamegurus on November 06, 2015, 06:47:16 06:47
How to crack XC compiler with pictures, How to check XC compiler license mode optimization and version and if its patched or not.

1) Open CMD as admin
(http://s1.postimg.org/8tzn1zyvf/opencmd.jpg) (http://postimg.org/image/8tzn1zyvf/)

2) CD to install path
(http://s15.postimg.org/5jp6bravr/image.jpg) (http://postimg.org/image/5jp6bravr/)

3) Check mode without patch "xc8 --chip=16f1516 --mode=pro"
(http://s3.postimg.org/6s4u28af3/xc8_free.jpg) (http://postimg.org/image/6s4u28af3/)

4) Copy patch and rename
(http://s18.postimg.org/f3c04zs8l/xc_copy.jpg) (http://postimg.org/image/f3c04zs8l/)

5) PATCH
(http://s16.postimg.org/6fjbehifl/patch.jpg) (http://postimg.org/image/6fjbehifl/)

6) Check mode after patch "xc8 --chip=16f1516 --mode=pro"
(http://s1.postimg.org/kzoucedl7/xc_pro.jpg) (http://postimg.org/image/kzoucedl7/)


Title: Re: XC Compilers - Software ONLY
Post by: PicKit3 on November 15, 2015, 02:44:06 02:44
Link isn't working anymore. For me anyway. getting a 404

some softwares that allows the user to connect to a virtual private network (VPN) could cause this effect like Hotspot Shield developed by AnchorFree, Inc. Just disconnect the application in that case and the link would work just fine.


Title: Re: XC Compilers - Software ONLY
Post by: hengfeb on November 20, 2015, 05:46:25 05:46
good tutorial about the crack xc8 compilier.

thanks.


Title: Re: XC Compilers - Software ONLY
Post by: Avataar120 on December 15, 2015, 03:50:53 15:50
XC8 compiler and part support patch too updated to V1.35....
...patch work!

XC16 to V.1.25 as well.

Manuel.

Hello Manuel,

I cannot manage to use Medecine with XC16 version >1.22 ...
Can you confirm it's working with 1.25 ?

I get : elf-cc1.exe: warning: Attempt ....

Thanks for your help


Title: Re: XC Compilers - Software ONLY
Post by: Crackn on December 15, 2015, 04:42:29 16:42
I cannot manage to use Medecine with XC16 version >1.22 ...
Can you confirm it's working with 1.25 ?

I get : elf-cc1.exe: warning: Attempt ....

Hello,

yes I can confirm (for me at least :) ) that the medicine is working with latest versions from microchip website.

XC8 ver 1.35 OK
XC16 ver 1.25 OK
XC32 ver 1.40 OK





Title: Re: XC Compilers - Software ONLY
Post by: vovchik02 on December 16, 2015, 05:29:12 05:29
All latest XC compiller good work with latest medicine. Tested on Linux (Ubuntu 14, Debian 8.2), Window 7.


Title: Re: XC Compilers - Software ONLY
Post by: Avataar120 on December 16, 2015, 01:00:01 13:00
Thanks for your answers.

Hello,

Crackn has already confirmed to me that, in the same configuration than me (Win10 x64 + MPLABX 3.0 + XC16 1.25 + Medecine MXC1321 26kB) it is working on his machine.

So I don't understand ...
I replace the file in the bin folder of the compiler (not MPLAB) and it's working only with XC16 1.20 ...
Did you ever have the same issue ?

Sorry to bother you with my problems ...


Ava.



Title: Re: XC Compilers - Software ONLY
Post by: Top on December 16, 2015, 01:57:51 13:57
If you have problems then open a command prompt  window, navigate to my xclm.exe and run it.

If everything is good it will reply OK, otherwise it should give you a clue.


Title: Re: XC Compilers - Software ONLY
Post by: Avataar120 on December 16, 2015, 02:16:58 14:16
Thanks for your answer.

I followed an old readme.txt ...
Forgot to rename xclm.exe to xclm.old and so on.

Great forum you have !

Ava.


Title: Re: XC Compilers - Software ONLY
Post by: gamegurus on December 17, 2015, 12:59:13 00:59
Thanks for your answer.

I followed an old readme.txt ...
Forgot to rename xclm.exe to xclm.old and so on.

Great forum you have !

Ava.

I posted entire process with pictures http://www.sonsivri.to/forum/index.php?topic=44014.msg175503#msg175503
Its Strange if people cannot follow that, How will they do programming on their own.


Title: Re: XC Compilers - Software ONLY
Post by: jamen on December 24, 2015, 07:08:36 07:08
yes i path xc8 v1.35 test is ok. and code scale 20% ,it is wanderful


Title: Re: XC Compilers - Software ONLY
Post by: krayzeeman on January 20, 2016, 12:57:36 12:57
Is there a doctor in da house that can help me apply the medicine to my XC8 v1.35 installation on my Mac?
I tried all the steps mentioned in this thread, but somehow can't get it to work.

This is what I did:
1) I downloaded the files from the top post
2) My XC8 is installed as a free license (not the time limited Pro trial)
3) opened up the terminal, and moved to the install directory of the XC 8 compiler, whis in my case is : /Applications/microchip/mplabx/v3.20/mplab_ide.app/Contents/Resources/mplab_ide/
4) tested the current state of the compiler with "xc8 --chip=16f1516 --mode=pro" and get the following (expected) result:

Microchip MPLAB XC8 C Compiler (Free Mode) V1.35
Build date: Jul  7 2015
Part Support Version: 1.35 (B)
Copyright (C) 2015 Microchip Technology Inc.
License type: Node Configuration

(939) no file arguments
(908) exit status = 1


5) I renamed the original xclm file to xclm.old
6) Copied the new xclm file from the download to my working directory
7) ran the new xclm using "sudo ./xclm", but got the (unexpected) result "Nothing to do"
8) when I recheck the status of the comiler again with "xc8 --chip=16f1516 --mode=pro", I still get the same result:

Microchip MPLAB XC8 C Compiler (Free Mode) V1.35
Build date: Jul  7 2015
Part Support Version: 1.35 (B)
Copyright (C) 2015 Microchip Technology Inc.
License type: Node Configuration

(939) no file arguments
(908) exit status = 1



Am I doing something wrong?

PS. I'm running Mac OS X 10.11.2, with MPLAB X IDE v3.20, XC8 v1.35 with v1.35b part support.

Any help is greatly appreciated!
Krayzeeman


Title: Re: XC Compilers - Software ONLY
Post by: Top on January 20, 2016, 02:13:07 14:13
3) opened up the terminal, and moved to the install directory of the XC 8 compiler, whis in my case is : /Applications/microchip/mplabx/v3.20/mplab_ide.app/Contents/Resources/mplab_ide/

Looks like the IDE's directory, try looking in "/Applications/microchip/xc8/v1.35/bin/xc8".


Title: Re: XC Compilers - Software ONLY
Post by: krayzeeman on January 20, 2016, 02:36:13 14:36
[facepalm]You are right, I was using the wrong directory![/facepalm]
It should have been "/Applications/microchip/xc8/v1.35/bin"
After reverting the changes I made in the wrong directory, and applying the patch to the correct directory, it now shows the following after running ./xclm:

Patched 40 bytes in file ./cgpic
Patched 40 bytes in file ./cgpic18
Patched 40 bytes in file ./picc
Patched 40 bytes in file ./picc18
Patched SHA in 4 of 4 files


And verification of the patch with "xc8 --chip=16f1516 --mode=pro" returns:

Microchip MPLAB XC8 C Compiler (PRO Mode) V1.35
Build date: Jul  7 2015
Part Support Version: 1.35 (B)
Copyright (C) 2015 Microchip Technology Inc.
License type: Node Configuration

(939) no file arguments
(908) exit status = 1


It now seems to work!

Thanks for your quick reply and solution!!!!


Title: Re: XC Compilers - Software ONLY
Post by: ferdok9 on February 16, 2016, 11:02:14 23:02
Patch work for xc8 v1.36


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on March 12, 2016, 06:35:05 06:35
MPLAB® XC16 Compiler v1.26 (http://www.microchip.com/mplabxc16windows)
Medicine works! :)


Title: Re: XC Compilers - Software ONLY
Post by: Avalynn on May 14, 2016, 11:55:57 23:55
Thanks, Just wanted to report that this worked for me for MPLAB® XC8 Compiler v1.37

(http://i.imgur.com/BtZatxA.png)


Title: Re: XC Compilers - Software ONLY
Post by: houly on July 17, 2016, 07:48:37 19:48
Hello all,
I just installed last MPLAB x IDE and I'm wondering if I have to download the compiler in a second time or does it still integrated to MPLAB X ?
in case of there is no compiler comes with MPLAB, do I have to download them in free version to apply the patch ? does the sticked file are still compatible with recent version of compilers .. .?

Thanks for your help.


Title: Re: XC Compilers - Software ONLY
Post by: mars01 on July 17, 2016, 08:30:21 20:30
The XC compiler is not installed silently when the MPLABX is installed but at the end of the installation a window will pop up and it will advise you to go to the Microchip page and install the XC compiler and some other software like Code Configurator.
So if you did not installed at one stage the XC compiler you need to install it. Manually.
You can check in Program Files folder (or Program Files (x86) for a x64 windows) in the Microchip folder if there is an XC folder.

As for the question if the patch still works, all you have to do is to read the post before yours... there is a nice black picture with the results, also :)

But since now there is a 1.38 version of the XC8 compiler, I can tell you that it works with this one, too. And with the XC16 v1.26, too.


Title: Re: XC Compilers - Software ONLY
Post by: TucoRamirez on August 23, 2016, 12:06:10 12:06
works on 1.38 too :)

Microchip MPLAB XC8 C Compiler (PRO Mode) V1.38
Build date: Jun 30 2016
Part Support Version: 1.38
Copyright (C) 2016 Microchip Technology Inc.
License type: Node Configuration


Title: Re: XC Compilers - Software ONLY
Post by: tistructor on September 10, 2016, 01:33:42 13:33
 :D Medicine Works Well. :P


Title: Re: XC Compilers - Software ONLY
Post by: Ferocactus on September 22, 2016, 11:16:21 23:16
Medicine is working, but  now there´s a message popping out: License check operation timed out. Please check internet conectivity. :o
I´m using MPLABX 3.40 and XC8 1.38


Title: Re: XC Compilers - Software ONLY
Post by: martonmiklos on November 29, 2016, 09:46:47 09:46
I have tested this with the Linux versions and here are the results:
XC8 1.35 OK
XC32 1.34 OK
XC32 1.42 FAILED (says the executables are corrut)


Title: Re: XC Compilers - Software ONLY
Post by: Top on November 29, 2016, 10:04:19 10:04
XC32 1.42 FAILED (says the executables are corrut)

Please provide more information; i.e. OS, steps you took to produce the error, exact text of error message, etc.


Title: Re: XC Compilers - Software ONLY
Post by: extremgear on December 10, 2016, 05:04:23 17:04
Hello everybody ,

Medicine works well on mac os sierra.
 XC8 V1.38 = ok
I hope it will help mac users , how i did :

rename xclm in xclm.old into bin folder
copy new xclm into bin
open terminal and execute : chmod 755 /Applications/microchip/xc8/v1.38/bin/xclm
execute : cd /Applications/microchip/xc8/v1.38/bin
then in terminal : sudo xclm
enter password
we should see :
Patched 40 bytes in file ./cgpic
Patched 40 bytes in file ./cgpic18
Patched 40 bytes in file ./picc
Patched 40 bytes in file ./picc18
Patched SHA in 4 of 4 files

check compiler is in pro mode with xc8 --chip=16f1516 --mode=pro
we should see:
Microchip MPLAB XC8 C Compiler (PRO Mode) V1.38
Part Support Version: 1.38 (A)
Copyright (C) 2014 Microchip Technology Inc.
License type: Node Configuration

i've tried with xc 16 and XC 32 but not the last one.


Title: Re: XC Compilers - Software ONLY
Post by: magician on January 13, 2017, 08:08:18 08:08
Medicine is OK

- XC8 version 1.40
- MPLABX v3.50
- Windows 10 x64 


Title: Re: XC Compilers - Software ONLY
Post by: epi on February 07, 2017, 03:48:45 15:48
Medicine works fine for XC8 v1.41.


Title: Re: XC Compilers - Software ONLY
Post by: Ferocactus on March 13, 2017, 01:35:54 01:35
Medicine is working, but now MPLAB says: "XC8: Not licensed or error."

XC8 1.41
MPLABX 3.55
Windows 7 x64

Anyone with the same problem?


Title: Re: XC Compilers - Software ONLY
Post by: mars01 on March 13, 2017, 01:59:56 01:59
See this post: http://www.sonsivri.to/forum/index.php?topic=63529.msg182610#msg182610
You need to replace the xclm.exe file in the BIN folder of the MPLABX also.


Title: Re: XC Compilers - Software ONLY
Post by: adamantium on March 13, 2017, 02:58:25 14:58
XC32 also working on MPLAB 3.55 after also replacing the xclm.exe file in the MPLABX\v3.55\mplab_ide\bin folder.

XC16 1.31
XC32 1.42
Windows 10 x64


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on March 31, 2017, 01:54:46 01:54
XC32 v1.43 is working also.


Title: Re: XC Compilers - Software ONLY
Post by: jamesbond on May 05, 2017, 07:28:39 07:28
XC8 V1.42 is out , and medicine is working. They have changed the default warning level so i have a lot of warnings in the new version.
I have to set it to -2 to get the same result as in 1.41.


Title: Re: XC Compilers - Software ONLY
Post by: Dadabe on May 23, 2017, 12:16:31 12:16
I just tried the xclm.exe medicine on MPLAB XC8 v1.42. Tested on Windows 10.
This works with Maplab_IDE v3.60. It is magic! Congratulations to the awesome Top.


Title: Re: XC Compilers - Software ONLY
Post by: 18f on June 19, 2017, 04:30:05 16:30
hi,
I want to test medicine. Where is?


Title: Re: XC Compilers - Software ONLY
Post by: HackAndCrack on June 19, 2017, 04:57:11 16:57
hi,
I want to test medicine. Where is?

The link to medicine is in attachment of sticky of this thread.


Title: Re: XC Compilers - Software ONLY
Post by: 18f on June 20, 2017, 05:31:25 17:31
Working with MBLAB and xc8 v1.42
Many warnings in this version...
and Advisory: "using updated 32-bit floating-point libraries; improved accuracy might increase code size"...

Thanks


Title: Re: XC Compilers - Software ONLY
Post by: mars01 on June 20, 2017, 10:17:15 22:17
Working with MBLAB and xc8 v1.42
Many warnings in this version...
and Advisory: "using updated 32-bit floating-point libraries; improved accuracy might increase code size"...

Thanks
You can change the warning level in: XC8 Global Options -> XC8 Compiler -> Preprocessing and Messages -> Warning Level
Also, you can adjust the accuracy for the FLOAT type (from 32bit to 24bit) in XC8 Global Options -> XC8 linker -> Memory Model ->  Size of Float


Title: Re: XC Compilers - Software ONLY
Post by: alichan on July 25, 2017, 05:34:52 17:34
You can change the warning level in: XC8 Global Options -> XC8 Compiler -> Preprocessing and Messages -> Warning Level
Also, you can adjust the accuracy for the FLOAT type (from 32bit to 24bit) in XC8 Global Options -> XC8 linker -> Memory Model ->  Size of Float

Or you can use #pragmas to remove specific warnigs, for example
Code:
#pragma disable warning 520

Or You can save the old pragma state and restore later
Code:

Btw, I'm not sure if this is the best thread to post it but since the user was asking here...
#pragma warning push         // save current warning state

/*temporary modify here any warning, for example,  disable 'warning (520) function is never called' when in FREE mode */
#pragma warning disable 520

void annoying_function_you_never_call()
{
...
}

#pragma warning pop          // restore current warning state

This will prevent any warning 520 being showed when compiling that spcific section of the code.

Posted on: July 25, 2017, 05:36:22 17:36 - Automerged



Btw I'm not sure if this is the best place to post this, but since the user is asking here...


Title: Re: XC Compilers - Software ONLY
Post by: StefDrums on September 02, 2017, 12:48:29 12:48
Medicine is 100% working for:

XC8 version 1.43
MPLABX IDE 4.00


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on November 28, 2017, 10:31:59 10:31
In case there are problems, some different methods of enabling optimization in the XC16 and XC32 compilers are shown in the thread:

http://www.eevblog.com/forum/microcontrollers/mplab-x-a-pic-inhibitor!-alternatives/75/ (http://www.eevblog.com/forum/microcontrollers/mplab-x-a-pic-inhibitor!-alternatives/75/)


Title: Re: XC Compilers - Software ONLY
Post by: ChipMan on December 06, 2017, 11:25:39 11:25
Hi,

I am a newbee here. Can somebody help me get medicine for patching XC16.

Thanks all

Posted on: December 06, 2017, 11:58:41 11:58 - Automerged

Hi All,

I tried to go to the link provided in sticky of this thread but i am not able to download the files as it takes me to some spooky kind of page and tries to download some extensions, scares me.
Can someone help me get the medicine i will be grateful.
Thanks


Title: Re: XC Compilers - Software ONLY
Post by: mars01 on December 06, 2017, 12:47:03 12:47
ChipMan, for the future, use the AdBlock extension for Chrome or Firefox. That should help you with the popups generated by the free file hosting sites.

Reupload: MEGA link for the fix is attached.


Title: Re: XC Compilers - Software ONLY
Post by: ChipMan on December 07, 2017, 05:52:39 17:52
Mars1,

I copied the xclm.exe to bin folder but on compiling the project i get this message. I am using xc16 1.33

elf-cc1.exe: warning: Attempt to override license manager detected
Options have been disabled due to restricted license
Visit http://www.microchip.com/MPLABXCcompilers to purchase a new key.
AVR.c:11:6: warning: return type of 'main' is not 'int'
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe"   -o dist/default/production/AVR.X.production.elf  build/default/production/AVR.o      -mcpu=30F3014        -omf=elf -DXPRJ_default=default  -legacy-libc    -Wl,,--defsym=__MPLAB_BUILD=1,,--script=p30F3014.gld,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/AVR.X.production.map",--report-mem,--memorysummary,dist/default/production/memoryfile.xml
elf-cc1.exe: warning: Attempt to override license manager detected


Please help.

Regards


Title: Re: XC Compilers - Software ONLY
Post by: mars01 on December 07, 2017, 06:00:30 18:00
ChipMan, I don't have the XC16 installed at the moment in my PC and I am sure that you already read around about the following things but it doesn't hurt to make sure that:

- you move the original xclm.exe from the BIN folder, somewhere else; then you rename it from xclm.exe to xclm.old;
- in the same location where you now have xclm.old, you copy the "fixed" xclm.exe;
- now, you move both files ("fixed" xclm.exe and xclm.old) back to the BIN folder from the compiler installation folder;
- you open a Command Prompt as Administrator in the folder BIN of the XC compiler and you run xclm.exe; you will see a bunch of messages that files are patched;

I am not sure if it is needed anymore, but at some point there was a need to copy the "fixed" xclm.exe also to the BIN folder from the MPLABX installation folder.

LE: Given the message received, you may need to completely uninstall the XC16 compiler, clean the leftover folders and then reinstall and follow the above procedure.


Title: Re: XC Compilers - Software ONLY
Post by: psychoteog1 on December 07, 2017, 09:42:51 21:42
The url in the file doesnt work. Can anyone provide the files in a zip? Someone who already downloaded?
Ah sorry i didnt saw the second file with the second url. Now i have the exe and i shall try to patch xc8.

So no success. on 1.43. i will try later.


Ok i got the patch working. when I build the project its says:
Microchip MPLAB XC8 C Compiler (PRO Mode) V1.43
But i am having the same bug that i have on 1.10 " fixup overflow referencing psect bssBANK1 ".
In free mode the code doese compile and it works perfectly. with this patch and crack it dosent. So i guess i have to switch back to free mode.


Title: Re: XC Compilers - Software ONLY
Post by: ChipMan on December 08, 2017, 02:15:18 02:15
ChipMan, I don't have the XC16 installed at the moment in my PC and I am sure that you already read around about the following things but it doesn't hurt to make sure that:

- you move the original xclm.exe from the BIN folder, somewhere else; then you rename it from xclm.exe to xclm.old;
- in the same location where you now have xclm.old, you copy the "fixed" xclm.exe;
- now, you move both files ("fixed" xclm.exe and xclm.old) back to the BIN folder from the compiler installation folder;
- you open a Command Prompt as Administrator in the folder BIN of the XC compiler and you run xclm.exe; you will see a bunch of messages that files are patched;

I am not sure if it is needed anymore, but at some point there was a need to copy the "fixed" xclm.exe also to the BIN folder from the MPLABX installation folder.

LE: Given the message received, you may need to completely uninstall the XC16 compiler, clean the leftover folders and then reinstall and follow the above procedure.

Thanks Buddy it worked for me. Cheers :)


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on December 08, 2017, 11:05:36 11:05
xc8 v1.45 available.

Patch works on xc8 v1.44 and xc8 v1.45


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on December 09, 2017, 01:27:38 13:27
The website download links haven't been updated, that's all.

http://ww1.microchip.com/downloads/en/DeviceDoc/xc8-v1.45-full-install-windows-installer.exe (http://ww1.microchip.com/downloads/en/DeviceDoc/xc8-v1.45-full-install-windows-installer.exe)


Title: Re: XC Compilers - Software ONLY
Post by: pbraida on April 29, 2018, 09:23:18 21:23
Hello,

This path works with all versions(XC8,16 and 32) ?

Thanks.

Pedro.


Title: Re: XC Compilers - Software ONLY
Post by: mars01 on April 29, 2018, 10:44:09 22:44
Hello,

This path works with all versions(XC8,16 and 32) ?

Thanks.

Pedro.

Short answer, yes.


Title: Re: XC Compilers - Software ONLY
Post by: Gallymimu on May 01, 2018, 05:06:01 05:06
Hello,

This path works with all versions(XC8,16 and 32) ?

Thanks.

Pedro.

Long answer, yes it does.

lot's of people have problems making it work however.  It is always related to people NOT following the instructions.


Title: Re: XC Compilers - Software ONLY
Post by: pbraida on May 03, 2018, 11:50:23 11:50
Thanks for your answer.

Pedro.


Title: Re: XC Compilers - Software ONLY
Post by: krayzeeman on June 29, 2018, 04:57:59 16:57
Medicine does not seem to work on Mac OS X (High Sierra 10.13.5) for XC8 v2.00 (clean install). When running the patch it reports "Nothing to do".
It worked fine on XC8 v1.45 using the same procedure.

Alexander


Title: Re: XC Compilers - Software ONLY
Post by: Top on June 29, 2018, 06:21:36 18:21
Medicine does not seem to work on Mac OS X (High Sierra 10.13.5) for XC8 v2.00 (clean install). When running the patch it reports "Nothing to do".

Patch is not finding the files to patch; copy xclm.old and xclm.exe up one level and try again.


Title: Re: XC Compilers - Software ONLY
Post by: krayzeeman on June 29, 2018, 07:04:14 19:04
Patch is not finding the files to patch; copy xclm.old and xclm.exe up one level and try again.
Thanks! that did the trick! I copied both files to the V2.00 folder (and also left a copy in the 'bin' folder) and the patch worked as before.



Title: xc8 v2.05 is released
Post by: mitsos on January 09, 2019, 09:44:39 09:44
hi

this time the Top's patch has additionally modified the files aspic.exe and aspic18.exe
in folder: C:\Program Files\Microchip\xc8\v2.05\pic\bin

regards
mitsos


Title: Re: XC Compilers - Software ONLY
Post by: gurksallad on July 15, 2019, 02:47:57 14:47
Link in sticky does not work anymore:

"""Possible causes of this error could be:

    The file expired
    The file was deleted by its owner
    The file was deleted by administration because it didn't comply with our Terms of Use"""

Does the Medecine reside elsewhere so I can try it?


Title: Re: XC Compilers - Software ONLY
Post by: h0nk on July 15, 2019, 09:30:33 21:30
Hello,

this one is for V <= 1.45. Hope it helps.
(usual passwd)
Use https://www.proxysite.com/ if the URL is geoblocked.

Best Regards


Title: Re: XC Compilers - Software ONLY
Post by: mars01 on July 15, 2019, 11:16:42 23:16
Link in sticky does not work anymore:

I already reposted the file in this post from 2017:
http://www.sonsivri.to/forum/index.php?topic=44014.msg186926#msg186926
It's still up and working with the latest compilers.


Title: Re: XC Compilers - Software ONLY
Post by: gurksallad on July 17, 2019, 08:33:25 08:33
I already reposted the file in this post from 2017:

I saw that, but that one contains only the windows-version. I'm on Linux, that's why I asked for the original one.


Title: Re: XC Compilers - Software ONLY
Post by: mitsos on July 17, 2019, 11:14:50 11:14
hi

all OS Top patch, look at my attachment

regards
mitsos


Title: Re: XC Compilers - Software ONLY
Post by: MarkWalter on October 16, 2019, 09:06:06 21:06
Medicine is fully working in XC8 2.10.

Someone can please release the source code of the medicine ?

Thanks


Title: Re: XC Compilers - Software ONLY
Post by: pickit2 on October 16, 2019, 10:07:28 22:07
Medicine is fully working in XC8 2.10.

Someone can please release the source code of the medicine ?

Thanks

Why do you need this?.
A member for close to 4 years, and this your first post.


Title: Re: XC Compilers - Software ONLY
Post by: engiadina on January 31, 2020, 09:36:34 21:36
Hi,

for OSX Catalina there is a 64-Bit Version required in order to get the medicine working. Does anyone know were to get this ?

Thx

engiadina


Title: Re: XC Compilers - Software ONLY
Post by: graywolf on May 01, 2020, 03:32:16 15:32
Hi,

for OSX Catalina there is a 64-Bit Version required in order to get the medicine working. Does anyone know were to get this ?

Thx

engiadina

I am working on my own patcher for OS X Catalina, give me a few more days to complete it, been tested on latest version successfully.


Title: Re: XC Compilers - Software ONLY
Post by: graywolf on May 02, 2020, 03:42:42 15:42
I have completed a version for OSX Catalina and tested against the latest versions.  ;D

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


Title: Re: XC Compilers - Software ONLY
Post by: graywolf 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.  ;D

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



Title: Re: XC Compilers - Software ONLY
Post by: krayzeeman 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?


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed 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


Title: Re: XC Compilers - Software ONLY
Post by: pickit2 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...


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed 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.


Title: Re: XC Compilers - Software ONLY
Post by: heyb4r 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)


Title: Re: XC Compilers - Software ONLY
Post by: engiadina 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



Title: Re: XC Compilers - Software ONLY
Post by: MetaMetal 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!


Title: Re: XC Compilers - Software ONLY
Post by: max 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


Title: Re: XC Compilers - Software ONLY
Post by: mars01 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).


Title: Re: XC Compilers - Software ONLY
Post by: pickit2 on August 01, 2020, 01:13:40 13:13
Also Slickedit & UltraEdit
link for PDF file


Title: Re: XC Compilers - Software ONLY
Post by: metal on August 12, 2020, 02:24:25 02:24
Just use MPLABx, it has everything you will need to program a (ds)PIC/AVR and it is already there for this purpose.


Title: Re: XC Compilers - Software ONLY
Post by: pickit2 on October 05, 2020, 07:24:07 19:24
I already reposted the file in this post from 2017:
http://www.sonsivri.to/forum/index.php?topic=44014.msg186926#msg186926
It's still up and working with the latest compilers.
Link still working


Title: Re: XC Compilers - Software ONLY
Post by: Crackn on January 13, 2021, 03:49:08 03:49
hello,

maybe this is a little bit offtopic but I am writing to confirm that XC8 v2.31 running inside
the new Microchip Studio (old atmel studio 7), works fine with medicine.

you just need to copy and run xclm.exe and xclm.old to avr folders like you do for pic folders.

ex.: \xc8\v2.31\bin
       \xc8\v2.31\avr\avr\bin
       \xc8\v2.31\avr\bin
       \xc8\v2.31\avr\libexec\gcc\avr\5.4.0
       \xc8\v2.31\pic\bin

cheers. :)

  


Title: Re: XC Compilers - Software ONLY
Post by: metal on January 13, 2021, 09:14:25 09:14
There is no need, just do the following and it should work OK:

rename original xclm.exe into xclm.old inside "C:\Program Files\Microchip\xc8\v2.31\bin".
Copy cracked xclm.exe to "C:\Program Files\Microchip\xc8\v2.31\bin".
Copy cracked xclm.exe and xclm.old to "C:\Program Files\Microchip\xc8\v2.31"

Open a cmd as admin in this location: "C:\Program Files\Microchip\xc8\v2.31", and run xclm.exe

that's it.


Title: Re: XC Compilers - Software ONLY
Post by: saeed7701 on January 13, 2021, 05:17:35 17:17
Hi , I installed Microchip Studio V 7 today and for xc8 I use this patch ( xclm.exe) and the method for AVR folder in the XC8 and I patched it , How can I find that this patch work correctly ? this patch can be useful for Microchip Studio ?


Title: Re: XC Compilers - Software ONLY
Post by: metal on January 13, 2021, 05:37:27 17:37
One thing that caught my attention, does atmel studio differ that much for AVR chips? I am interested in finding out.


Title: Re: XC Compilers - Software ONLY
Post by: saeed7701 on January 13, 2021, 06:01:50 18:01
I don't understand what you say , I'm newbie in coding and MCU. can you help me please


Title: Re: XC Compilers - Software ONLY
Post by: Crackn on January 13, 2021, 07:44:25 19:44
Hi , I installed Microchip Studio V 7 today and for xc8 I use this patch ( xclm.exe) and the method for AVR folder in the XC8 and I patched it , How can I find that this patch work correctly ? this patch can be useful for Microchip Studio ?

just enable optimization for size (-Os) in Project / Properties / Toolchain and compile your code.
Microchip Studio will show a warning message if the compiler is not patched correctly. (see capture1.png attached)


Posted on: 13 January 2021, 16:23:13 - Automerged

There is no need, just do the following and it should work OK:

rename original xclm.exe into xclm.old inside "C:\Program Files\Microchip\xc8\v2.31\bin".
Copy cracked xclm.exe to "C:\Program Files\Microchip\xc8\v2.31\bin".
Copy cracked xclm.exe and xclm.old to "C:\Program Files\Microchip\xc8\v2.31"

Open a cmd as admin in this location: "C:\Program Files\Microchip\xc8\v2.31", and run xclm.exe

that's it.

the method above only works for PICs, if you need to use it with AVRs inside microchip studio, you need to patch AVR folders as well.
image 1 is doing exactly what you described.
image 2 is the same + patch AVR folders

cheers, :)


Title: Re: XC Compilers - Software ONLY
Post by: saeed7701 on January 13, 2021, 07:52:21 19:52
Yes , the Microchip Studio show that message that you attach and patch doesn't work but I  patch with instructions above , could you say another way to patch and How ?
Thank You Very Much


Title: Re: XC Compilers - Software ONLY
Post by: Crackn on January 13, 2021, 08:00:00 20:00
Yes , the Microchip Studio show that message that you attach and patch doesn't work but I  patch with instructions above , could you say another way to patch and How ?
Thank You Very Much

there is no other way, just the correct way.
you need to use the xclm.exe with size of 26K.
rename the original xclm.exe to xclm.old and copy both xclm.old and xclm.exe to these folders:

       \xc8\v2.31\bin
       \xc8\v2.31\avr\avr\bin
       \xc8\v2.31\avr\bin
       \xc8\v2.31\avr\libexec\gcc\avr\5.4.0
       \xc8\v2.31\pic\bin

you need to run it at command line with administrator rights.
and check if after you run the xclm.exe, it shows you some messages saying that files are patched (see attached files).

obs. I did this method in 3 computers running windows 10 64bits and all worked fine.

cRACKn


Title: Re: XC Compilers - Software ONLY
Post by: saeed7701 on January 13, 2021, 08:11:10 20:11
yes , I use 26k size of xclm.exe and patch with instruction but I don't know why it doesn't work
TNX


Title: Re: XC Compilers - Software ONLY
Post by: metal on January 13, 2021, 10:27:07 22:27
btw, does microchip studio show the size of flash/ram used after compilation?


Title: Re: XC Compilers - Software ONLY
Post by: Crackn on January 14, 2021, 02:12:19 02:12
btw, does microchip studio show the size of flash/ram used after compilation?

see attached files.

same source, first was compiled with -Os (Patched compiler)
                    second was compiled without optimization.

cheers.


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on February 12, 2021, 08:12:39 20:12
the patch works as expected even on the latest version 2.31

Does anyone know if the "functional-safety" and "code-coverage" options are also activated this way?
supplying "--codecov" doesn't give any errors however this feature should also be enabled in Mplab X as well.

what about the "functional safety" ? what type of message should one expect if it is activated?

I already see product codes in the original xclm binary which indicate these options are activated from xclm as well.


Title: Re: XC Compilers - Software ONLY
Post by: mbyka on February 13, 2021, 12:42:02 12:42
hi guys,
i am a new user for "c" using to pic mcu

i installed latest mplab x ıde 5.45 and xc8 2.31 and i did pat.. xclm.exe by cmd.exe(i copied cmd.exe file where in \system32 directory to \xc8\v2.31 directory and i runed it in here).
Quote
from metal...There is no need, just do the following and it should work OK:

rename original xclm.exe into xclm.old inside "C:\Program Files\Microchip\xc8\v2.31\bin".
Copy cracked xclm.exe to "C:\Program Files\Microchip\xc8\v2.31\bin".
Copy cracked xclm.exe and xclm.old to "C:\Program Files\Microchip\xc8\v2.31"

Open a cmd as admin in this location: "C:\Program Files\Microchip\xc8\v2.31", and run xclm.exe

that's it.
then,

i saw this cmd answer after pat...d
 (http://xclm patch ok.jpg)

i think all are ok.?

i also lookd/checked status of optimmization! at Mplab ide menu and it is heppened like it that you see the picture
(http://optimazition ok.jpg)

and also the code coverage enabled ?i think!
(http://code coverage enable.jpg)

do i have ecerything to start and learn and work codding to pic mcu with c language?

or i have to use "functional safety" version of xc8 compiler?



Title: Re: XC Compilers - Software ONLY
Post by: metal on February 13, 2021, 01:20:27 13:20
try to be honest with yourself here, to learn C you don't need a full xc8 ;)


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on February 19, 2021, 12:08:42 12:08
xc8 v2.32 available. Patch tested and works.


Title: Re: XC Compilers - Software ONLY
Post by: engiadina on September 22, 2021, 04:59:28 16:59
Well,

seems that the patch is only working under Windows.

Those who are using a MacOSX - Version are out of luck. Today I tested a lot of patches (even trying to edit the files manually). With version 2.32 the picc18 execution fails with errorcode 9 (process halted).

I tested the patch under Windows - everything is fine, that one works. Unfortunately the Mac (or OSX) version is broken.

engiadina


Title: Re: XC Compilers - Software ONLY
Post by: jobitjoseph1 on October 13, 2021, 06:03:54 06:03
Mega.nz  link for the XC8fix , since the link provided eariler gives file not found error.


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on October 15, 2021, 08:49:02 20:49
unfortunately the crack doesn't enable the Functional safety version or the Code Coverage feature.


Title: Re: XC Compilers - Software ONLY
Post by: hswqs on October 29, 2021, 02:31:01 02:31
Thanks all, hope the functional safety could be unlocked as soon as possible


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on October 29, 2021, 02:37:42 14:37
1) MPLAB Code Coverage Overview

The MPLAB® Code Coverage feature provides visibility as to what portions of your code are being executed. Run your test cases to completion for a visual display of coverage.

The MPLAB Code Coverage feature requires the following tools:

    An MPLAB XC C compiler, either Free or PRO, that supports code coverage output, starting with MPLAB XC8 v2.10, MPLAB XC16 v1.40, and MPLAB XC32 v2.30.
    The MPLAB Code Coverage (SW006026-COV) license that provides visibility as to what portions of your code are being executed.
    MPLAB X IDE v5.25 or later, which supports the display of code coverage data from an MPLAB XC C compiler with the MPLAB Code Coverage license.

2) Functional Safety Compiler
Ease the burden of your functional safety qualification with the MPLAB XC8 Functional Safety Compiler License - a TÜV SÜD certified compiler package that supports 8-bit PIC® and AVR® microcontrollers. This compiler license has been certified in accordance with the following functional safety standards:

    ISO 26262
    IEC 61508
    IEC 62304
    IEC 60730

......

Just for info you .

take care,
X!


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on October 31, 2021, 07:32:48 07:32
This summer I studied the mechanisms of unit testing the code and activating Code Coverage in MPLAB would be very useful.


Title: Re: XC Compilers - Software ONLY
Post by: mars01 on October 31, 2021, 11:25:44 11:25
Is this `Code Coverage` really useful?

From I've read here: https://microchipdeveloper.com/mplabx:code-coverage it looks like it is dependent on the level of optimizations selected for the compiler.
Which means it will be different if this feature is activated for optimized vs non-optimized code, while having optimizations activated means that there may be differences between C code highlight and what get executed.
Also if you write a lot of one-liners it will give the uncertain `yellow` coding.

https://onlinedocs.microchip.com/pr/GUID-CC9F71E9-AEF1-4C2B-8AC2-069D15B83A79-en-US-2/index.html?GUID-EEE4D157-B8BA-4B4B-B96A-34BD8601CD2A

Cat, do you have some resources for unit testing?


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on November 01, 2021, 05:25:57 05:25
This is what my training was based on http://www.throwtheswitch.org/ .


https://habr.com/ru/post/244835/ There is an article here (although it is in Russian, but a Google translator to help)

Yes, this mechanism works. But it is relevant when you develop code without real hardware. If you write code and test it in ready-made hardware, then 90 percent of you solve all your problems.


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on November 04, 2021, 05:29:56 17:29
Can be enabled using TOP activator...

X!


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on November 05, 2021, 03:33:22 15:33
Can be enabled using TOP activator...

X!

Have you tested it? does it work like the way they show it on their website?
because as long as I know both the compiler and the IDE must support it.


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on November 06, 2021, 10:01:44 10:01
To be able to see the additional menu' ANALISYS i had to uninstall IDE and reinstall it. (compilers already installed).....

X!


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on January 06, 2022, 12:14:48 12:14
xc8 v2.35 available. Patch tested and works (win version)


Title: Re: XC Compilers - Software ONLY
Post by: mitsos on January 06, 2022, 06:37:06 18:37
hi

after patching the last xc8 version 2.35 (pic+avr), the compilation of AVR182 : Zero Cross Detector (using AVR) project of proteus 8.13sp0 is failed.

I get this error:
avr-gcc.exe -Wall -gdwarf-2 -fsigned-char -MD -MP -DF_CPU=1000000 -Os -mmcu=attiny2313  -o "zero_cross_detector.o" -c "../zero_cross_detector.c"
Unknown option

In file included from ../zero_cross_detector.c:15:0:
c:\program files\microchip\xc8\v2.35\avr\avr\include\avr\io.h:414:28: fatal error: avr/iotn2313.h: No such file or directory
compilation terminated.
make: *** [zero_cross_detector.o] Error 1

Error code 2

I found that the .h files of avr micros are located here:
C:\Program Files\Microchip\xc8\v2.35\dfp\xc8\avr\include\avr

By using the -I option I get again this error message:
avr-gcc.exe -Wall -gdwarf-2 -fsigned-char -MD -MP -DF_CPU=1000000 -Os -mmcu=attiny2313 -IC:\Program Files\Microchip\xc8\v2.35\dfp\xc8\avr\include\avr  -o "zero_cross_detector.o" -c "../zero_cross_detector.c"
avr-gcc.exe: error: Files\Microchip\xc8\v2.35\dfp\xc8\avr\include\avr: No such file or directory
make: *** [zero_cross_detector.o] Error 1

Error code 2

In version 2.32 the .h files are here:
C:\Program Files\Microchip\xc8\v2.32\avr\avr\include\avr
and the compilation is successful

any ideas?

regards
mitsos


Title: Re: XC Compilers - Software ONLY
Post by: PiotrJ on January 06, 2022, 09:59:29 21:59
For Error code 2: based on the error indicated the space in Program Files is causing the problems. Add double quotes: "-IC:\Program Files\Microchip\xc8\v2.35\dfp\xc8\avr\include\avr"


Title: Re: XC Compilers - Software ONLY
Post by: marcodassi on January 30, 2022, 05:29:28 17:29
FYI: MPLAB XC16 Compiler v2.00 is out  ;D   (didn't test anything)

https://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v2.00-full-install-windows64-installer.exe

cheers!


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on January 31, 2022, 04:32:31 04:32
FYI: MPLAB XC16 Compiler v2.00 is out  ;D   (didn't test anything)

https://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v2.00-full-install-windows64-installer.exe

cheers!
working  ;D
(https://i.ibb.co/DrddVwC/xc16-2-0.jpg)


Title: Re: XC Compilers - Software ONLY
Post by: jobitjoseph1 on February 01, 2022, 10:52:03 10:52
XC8Fix new Mega Link


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on February 09, 2022, 11:47:54 11:47
xc8 v2.36 available. Patch tested and works (win7 x64).


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on February 09, 2022, 06:09:35 18:09
xc8 v2.36 , MCHIP only AVR side has modified, PIC side equal to v2.35.

X!


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on March 08, 2022, 05:25:04 05:25
Hello, can you upload the latest cracked files here?


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on March 08, 2022, 06:33:02 06:33
I'm in China. Mega network disk can't be accessed and needs to climb over the wall. Can you upload the crack patch directly here? Thank you


Title: Re: XC Compilers - Software ONLY
Post by: jobitjoseph1 on March 08, 2022, 07:44:51 19:44
I'm in China. Mega network disk can't be accessed and needs to climb over the wall. Can you upload the crack patch directly here? Thank you
As per Sonsivri rule I can't . We are not allowed to directly attach any cracks or hacks. I have added a new attachment below. You can find the Baidu link in the below attachment


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on March 09, 2022, 02:44:39 02:44
As per Sonsivri rule I can't . We are not allowed to directly attach any cracks or hacks. I have added a new attachment below. You can find the Baidu link in the below attachment
Thank you for sharing. It has been downloaded!


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on March 10, 2022, 12:41:04 12:41
The computer operating system is Win7 X64.  MPLAB X IDE v5.35. The cracked patch is invalid.
The compiler's optimization level is -OS.
p1 is uncracked.
p2 is cracked.
p3 is a cracked version of XC8 V2.00.
You can see from the pictures that the patch is broken.


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on March 10, 2022, 02:41:10 14:41
Using 2.36 on win10 and IDE 6.00 creates a good optimized compiled.

V2.36 introduce a different management vs previous versions and it generate a slightly bigger HEX using more memory RAM not CODE. 4 this reason i prefer actually v2.32.

I generally use -S optimization.

I have no real matter.

take care,
X!


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on March 10, 2022, 06:08:58 18:08
the compiler changelog for 2.36 states "None" as the changes for this version.
how do you know the new version uses a management system where it prefers RAM over ROM?


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on March 10, 2022, 06:25:47 18:25
Even if the doc states no changes on this version over PIC, the q.ty of RAM used in the compiled by 2.36 is higher than the RAM used in 2.32.

Just compile same code with the two compiler versions using -S optimization.

If necessary it can be investigated .....

X!
 


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on March 10, 2022, 07:51:01 19:51
The computer operating system is Win7 X64.  MPLAB X IDE v5.35. The cracked patch is invalid.
The compiler's optimization level is -OS.
p1 is uncracked.
p2 is cracked.
p3 is a cracked version of XC8 V2.00.
You can see from the pictures that the patch is broken.

I'm really curious about this. can you share your project or any project that fills about 80% of the ROM space?


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on March 11, 2022, 01:42:17 01:42
I'm really curious about this. can you share your project or any project that fills about 80% of the ROM space?
Sorry, it is impossible to share the project source code.
http://www.sonsivri.to/forum/index.php?topic=69916.0
http://www.sonsivri.to/forum/index.php?topic=69917.0
As long as it is an integrated development environment that supports XC8 V2.00, it can be used. The X IDE supported in the end is V5.40. It is recommended to use V5.35. I have been using this for practical development and have performed well.


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on March 11, 2022, 01:35:16 13:35
danymogh & patchjack: are you two talking same language ?

danymogh is asking for a source project for MCHIP that occupy 80% of CODE.

patchjack is talking about the realized patchworks.....

Am I wrong ?

Can you clarify ?

X!


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on March 11, 2022, 04:19:31 16:19
I've been super curious about the compiler differences in code generation and have been looking into it ever since.
so far I've found out that the license protection mechanism is different for version 2.10 of xc8 for it's PIC part.
this is very strange since the AVR part still uses the SHA256 checksum to validate xclm but the PIC bins use another algorithm which looks to be SHA1 but it's not. this means my medicine or tops medicine won't work for that version. I've not checked for V2.00 or other versions up to 2.32

as for compiler optimization, I also found another bug which is for the MPLAB IDE v5.35. that is when you create a project and assign the compiler settings, only the initial values are used even after changing the compiler settings again. you can check what compiler parameters are being passed just but examining the build info window.

another thing I noticed about the pictures patchjack sent is that the IDE is not showing License Pro information in the dashboard which could be an indicator that either that patch doesn't work or is not applied for that version.


Title: Re: XC Compilers - Software ONLY
Post by: Top on March 11, 2022, 06:09:30 18:09
I think my fix works for all versions, including version 2.10 and up to the latest version. xc8 was never using SHA256 for PIC compilers ;)


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on March 12, 2022, 02:37:08 14:37
I think my fix works for all versions, including version 2.10 and up to the latest version. xc8 was never using SHA256 for PIC compilers ;)

I tested your fix for 2.10 and it just outputted "Nothing to do". maybe there was something wrong on my side.

I'm curious about what you said about xc8 not using SHA256 because that's exactly the hash I replaced for xclm in my fix. would you care to elaborate?


Title: Re: XC Compilers - Software ONLY
Post by: Sideshow Bob on March 12, 2022, 04:44:07 16:44
I tested your fix for 2.10 and it just outputted "Nothing to do". maybe there was something wrong on my side.

I'm curious about what you said about xc8 not using SHA256 because that's exactly the hash I replaced for xclm in my fix. would you care to elaborate?
Are you running the xclm.exe from the C:\Program Files\Microchip\xc8\v2.xx\bin\ directory?
Try this copy the xclm.old and xclm.exe files one level up - to C:\Program Files\Microchip\xc8\v2.xx\ and run from there. If success it should give you a list of files that is patched. Please let me know if this work


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on March 12, 2022, 08:58:34 20:58
Are you running the xclm.exe from the C:\Program Files\Microchip\xc8\v2.xx\bin\ directory?
Try this copy the xclm.old and xclm.exe files one level up - to C:\Program Files\Microchip\xc8\v2.xx\ and run from there. If success it should give you a list of files that is patched. Please let me know if this work

Thanks that was the problem, actually i had used the fix before i just forgot that i had to move them up one level

also I found out the hash, thanks for the tip! I had no idea a SHA-0 existed. I'll fix my medicine as well

@Top , xc8 uses only SHA256 in version 2.32 and above. don't know about lower versions


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on April 09, 2022, 01:59:41 01:59
Fix for MPLAB® XC Compilers

http://www.microchip.com/pagehandler/en_us/promo/mplabxc/ (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.

For XC8 V2.00 and above, the cracking patch has failed. Although it can be successfully cracked, the size of the executable files generated by compiling large projects has not been significantly reduced, occupying a lot of flash memory space of MCU. I have compared and verified it.


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on April 23, 2022, 02:17:23 02:17
Please update the registration machine. For XC8 V2.00 and above, the unoptimized effect of large-scale projects after cracking is compared with V1.00 and above. It is found that after adding support for AVR single-chip microcomputer, the activation mechanism of the compiler has changed a little. The latest version of XC16 is still valid, and XC32 has not been verified.


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on May 17, 2022, 02:15:42 14:15
MPLAB XC32/32++ Compiler v4.10 is coming! Windows (x86/x64) download address is https://ww1.microchip.com/downloads/en/DeviceDoc/xc32-v4.10-windows-x64-installer.exe


Title: Re: XC Compilers - Software ONLY
Post by: metal on May 18, 2022, 07:49:08 07:49
For XC8 V2.00 and above, the cracking patch has failed. Although it can be successfully cracked, the size of the executable files generated by compiling large projects has not been significantly reduced, occupying a lot of flash memory space of MCU. I have compared and verified it.

May be you can elaborate on this with Top, for example, send him a code where you believe it should be smaller due to Top's crack not functioning, and he will be able to test if this is really the case or not... otherwise I don't know what to believe..


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on May 18, 2022, 02:05:15 14:05
May be you can elaborate on this with Top, for example, send him a code where you believe it should be smaller due to Top's crack not functioning, and he will be able to test if this is really the case or not... otherwise I don't know what to believe..
We can't release the source code for our product, but I can show a screenshot of the comparison.
The PC OS is Win7 X64, X IDE is V5.35,The compiler sets the optimization level to -s.
p2 is v2.36 after patching generated.
p3 is v2.00 with workstation PRO licence generated.
I can guarantee it was generated by the same project.It can be seen from the picture that cracking is ineffective and the optimization effect is obviously different.Cracking is valid for v1.45 and below.


Title: Re: XC Compilers - Software ONLY
Post by: Top on May 18, 2022, 03:17:39 15:17
You are comparing two different compilers ???

Show a comparison between the same versions using a free trial of a PRO license.


Title: Re: XC Compilers - Software ONLY
Post by: metal on May 19, 2022, 12:25:35 12:25
@patchjack, you need to learn how logical comparisons are done in 2022, so that you don't sound idiot in front of other people!! Personally, I kinda know that amount of science inside Top's head, let's hope you don't hold that same amount of "shit" inside your head as well..


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on May 19, 2022, 01:36:53 13:36
@patchjack, you need to learn how logical comparisons are done in 2022, so that you don't sound idiot in front of other people!! Personally, I kinda know that amount of science inside Top's head, let's hope you don't hold that same amount of "shit" inside your head as well..
Thank you for your criticism. I will show the evidence as soon as possible. I will compare it with the latest compiler of the same version.


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on May 25, 2022, 03:09:27 03:09
@patchjack, you need to learn how logical comparisons are done in 2022, so that you don't sound idiot in front of other people!! Personally, I kinda know that amount of science inside Top's head, let's hope you don't hold that same amount of "shit" inside your head as well..
You are comparing two different compilers ???

Show a comparison between the same versions using a free trial of a PRO license.
you are right!!! ;D


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on May 25, 2022, 01:55:09 13:55
you are right!!! ;D
I would like to say that for the same project, the compiler configuration is exactly the same, optimization level is set to -s, compiler optimization ability is decreasing.  Attached is the comparison diagram of V2.05 V2.10 V2.36. The version of X IDE has no effect on the optimization ability of the compiler.
What happened to Microchip?


Title: Re: XC Compilers - Software ONLY
Post by: ucdesign on May 25, 2022, 11:07:57 23:07
I'm pretty sure that MPLAB X is now detecting the cracking of the XC32 compillers.

The compilers themselves seem to work OK (although I had problems with versions previous to v3.01 generating bad code, where it was missing a "nop" after a "jr ra" in a function that followed another function that had attribute "naked"), but I cannot debug due to a series of weird behavior and bugs.

Some of the simptoms are:
- Breakpoints doesn't work randomly
- Watches don't work correctly
- Debugger hanging after pressing of the pause button
- Many other annoiances.

I'm sure it is intentional because I installed MPLAB X and XC32 inside a virtual machine with a freshly installed Windows 10 and without any cracks, then I could debug without any problems.

Then, in my real computer, I uninstalled absolutely everything from Microchip and Atmel and cleaned the registry of anything related to Microchip and Atmel. Then I reinstalled MPLAB X and the latest versions of the compillers.

Now I can debug with no issues, with the simulator, ICD3 and PICKit 4.

Cheers.


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on May 26, 2022, 02:10:16 14:10
@Top, could you unlock MPLAB Functional Safety Compilers? I look forward to your success, thank you!


Title: Re: XC Compilers - Software ONLY
Post by: Top on May 26, 2022, 02:31:29 14:31
@Top, could you unlock MPLAB Functional Safety Compilers? I look forward to your success, thank you!

Should already be unlocked. Try and report back.


Title: Re: XC Compilers - Software ONLY
Post by: Mr. Spock on May 26, 2022, 07:11:05 19:11
Should already be unlocked. Try and report back.

Link is not working.


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on May 27, 2022, 12:00:38 00:00
Should already be unlocked. Try and report back.
It can not work,I sure!!!


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on May 31, 2022, 03:19:46 15:19
For a 15-day evaluation license on any version of MPLAB XC Functional Safety license, please email: [email protected]
https://www.microchip.com/en-us/development-tool/SW006021-FS


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on June 01, 2022, 12:10:14 12:10
@ucdesign
it is possible for MPLAB X to detect cracked compiler since it has its own license checking mechanism.

@patchjack
The Functional safety cannot be unlocked using top medicine. Don't bother with it because it's no different from the standard version. the functional safety license just includes additional documents for companies who need extra verification for their software and need the functional safety badge. for example medical and automotive devices.


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on June 06, 2022, 03:59:17 15:59
As for example :

in the installation path of M P LAB X :

.\Program Files\Mic ro ch ip\M P L AB X\v6.00\m p lab_ plat for m\bin

you can find also the licensing executable .. x cl m ..

any idea ?

X!


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on June 20, 2022, 11:38:18 11:38
Quote
I would like to say that for the same project, the compiler configuration is exactly the same, optimization level is set to -s, compiler optimization ability is decreasing.  Attached is the comparison diagram of V2.05 V2.10 V2.36.

See https://www.microchip.com/forums/m1208436.aspx for some possible explanations of why this appears to be the case.


Title: Re: XC Compilers - Software ONLY
Post by: Manuel on June 20, 2022, 06:39:09 18:39
The essence is :

At a quick glance of the build logs, v2.05 has Code Coverage option disabled whereas v2.10 and v2.36 have Code Coverage option -mcodecov=ram enabled.  So, disable Code Coverage in Project Properties > Conf > XC8 Global Options > Analysis, build and check again.

I will check it too..

X!


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on June 21, 2022, 05:36:31 17:36
See https://www.microchip.com/forums/m1208436.aspx for some possible explanations of why this appears to be the case.


That is fascinating in 2 aspects
patchjack actually went for an answer and they had to go though all the build logs to show him that code coverage was turned on.

on the other hand, one of the xc compiler authors explains a very interesting optimization option which i did not know."Constant caching " ! the few extra bytes of RAM in newer versions are actually constant that are stored in flash memory and the compiler allocated a space in RAM to speed up the program. the compiler does this only when you are not using the remaining of the RAM.

very interesting !


Title: Re: XC Compilers - Software ONLY
Post by: tumbleweed on July 17, 2022, 02:16:03 14:16
xc8 v2.40 available. Patch tested and works (windows).


Title: Re: XC Compilers - Software ONLY
Post by: sukumar on July 23, 2022, 05:54:57 17:54
Hi All,

If you run 26k patch xclm.exe from the directory C:\Program Files\Microchip\xc8\v2.xx\bin\ writes - Nothing to do.
In this case, you need to copy the files xclm.old and xclm.exe one level higher - to C:\Program Files\Microchip\xc8\v2.xx\ and run from there.


Title: Re: XC Compilers - Software ONLY
Post by: saeed7701 on July 27, 2022, 11:17:07 11:17
Hi, I want to install MPLAB and XC compilers, which version could be cracked with this medicine ? ( XC8 , XC16 , XC32 )
Thanks a lot


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on July 27, 2022, 12:18:38 12:18
Hi, I want to install MPLAB and XC compilers, which version could be cracked with this medicine ? ( XC8 , XC16 , XC32 )
Thanks a lot
All versions can be cracked, I'm sure.


Title: Re: XC Compilers - Software ONLY
Post by: crack_learning on August 20, 2022, 01:31:36 13:31
All versions can be cracked, I'm sure.
Should be :)
The thing is, there is a site somewhere on the internet that tells you how to activate the optimization in the compiler. On the other hand, on microchip site, there is a place where all archived tools are available. Also the XC8,16,32 compilers with source code. Since they are based on GCC, I guess they have to make them public. But first you have to find the source code. Then download it. Then extract it. For me it took half a day, beucase they used some fancy compressing tool that I did not had. Afterwile I had the source code on my disk. Half a day! And it was for a MAC environment. But that is not problem. You can find the place, where they call the xclm.exe. They just simply check the return value of it, and the return value is the license type. However before they call the exe, they check if the hash of it is still the same as stored in the compiler. So your task is very simple. Calculate the SHA-256 hash of xclm.exe. Find it in all the executables of the compiler. Stored in plain text. Now prepare a new xclm.exe that only returns 6. Or 2. I do not remember. Put it in place of the original one. Calculate the new hash of it, and replace it every where. Now you should have a cracked compiler.

Since the source code of the Compiler is open source, you do not even need gHidra or xdbg64. Just read the source code. Only the source code of xclm.exe is not open. But that you do not need at all.


Title: Re: XC Compilers - Software ONLY
Post by: danymogh on August 20, 2022, 05:27:19 17:27
XC8 is not based on GCC, did you find the source for that as well?


Title: Re: XC Compilers - Software ONLY
Post by: crack_learning on August 21, 2022, 03:13:42 03:13
XC8 is not based on GCC, did you find the source for that as well?
You have right. The XC8 is not GCC. I rarely use it, that is why I was thinking it is. And no, there are no source codes for the XC8 PIC compiler.

Just for the AVR which is for this tipic irrelevant :(


However it looks for me, they use the same licensing mechanism for the XC8 compiler as for the XC16 or XC32. (Note it was a long time I used XC8, so I just assume my crack folder is working:) )


Title: Re: XC Compilers - Software ONLY
Post by: Poty on September 04, 2022, 03:15:59 03:15
xc8 v2.40 available. Patch tested and works (windows).
Good evening. Verified! Win 10 XC8v2.40 working.

Posted on: 04 September 2022, 00:09:33 - Automerged

Dear fellows, do you have some medicine for XC8 but over Linux - Ubuntu 22.04?
Thanks in advance.


Title: Re: XC Compilers - Software ONLY
Post by: nagkiller on October 11, 2022, 01:26:44 01:26
Does anyone have the last version?


Title: Re: XC Compilers - Software ONLY
Post by: bozog on November 02, 2022, 10:45:28 22:45
Cheers this is working for me, I had to do this to get it to work:
Copy 26k xclm.exe to: \Program Files\Microchip\xc8\v2.40 - run it as admin - it will patch several files.
Move 26k xclm.exe to: \Program Files\Microchip\xc8\v2.40\bin - replacing original file(make a backup if you like).

Here are the results:
-O0 Memory Summary:
    Program space        used   49Ch (  1180) of  1000h words   ( 28.8%)
    Data space           used    79h (   121) of   200h bytes   ( 23.6%)
-O1 Memory Summary:
    Program space        used   434h (  1076) of  1000h words   ( 26.3%)
    Data space           used    79h (   121) of   200h bytes   ( 23.6%)
-O2 Memory Summary:
    Program space        used   428h (  1064) of  1000h words   ( 26.0%)
    Data space           used    79h (   121) of   200h bytes   ( 23.6%)
-O3 Memory Summary:
    Program space        used   3C9h (   969) of  1000h words   ( 23.7%)
    Data space           used    92h (   146) of   200h bytes   ( 28.5%)
-Os Memory Summary:
    Program space        used   3BDh (   957) of  1000h words   ( 23.4%)
    Data space           used    72h (   114) of   200h bytes   ( 22.3%)


Title: Re: XC Compilers - Software ONLY
Post by: pascal06 on February 21, 2023, 11:46:10 11:46
Good evening. Verified! Win 10 XC8v2.40 working.

Posted on: 04 September 2022, 00:09:33 - Automerged

Dear fellows, do you have some medicine for XC8 but over Linux - Ubuntu 22.04?
Thanks in advance.
Hello everybody,
I'm using Linux too (Xubuntu 20.04) and would be glad to make XC8 full optimization.
By searching just a little, I found two pages that are talking about creating a medicine for XC8, in an educationnal purpose of course. Theses codes are quite old now and I'm not very comfortable with security aspect at all, but maybe it would be interesting to post links here ?
Thanks a lot in advance.

Posted on: February 17, 2023, 11:19:36 11:19 - Automerged

Hello everyone,
I hope you're doing well ?
Since then, I found a very interesting link where there's a code to make a patch...
The guy claim that it works on XC8 2.36, more over on Ubuntu 20.04 !
So I compiled the medicine... I don't know if it's working, because I'm still in the pro evaluation period, but the executing xclm in command line return nothing as expected !
The link is easily found.
Thanks


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on February 22, 2023, 10:02:42 10:02
XC8 2.41 is coming! patch is valid. win download address

DO NOT POST OPEN LINKS


Title: Re: XC Compilers - Software ONLY
Post by: pascal06 on February 25, 2023, 11:28:01 23:28
Another kind of patch here.
Should work on Ubuntu 20.04


Title: Re: XC Compilers - Software ONLY
Post by: Espark on March 04, 2023, 06:07:40 18:07
The essence is :

At a quick glance of the build logs, v2.05 has Code Coverage option disabled whereas v2.10 and v2.36 have Code Coverage option -mcodecov=ram enabled.  So, disable Code Coverage in Project Properties > Conf > XC8 Global Options > Analysis, build and check again.

I will check it too..

X!

Does this mean that code coverage is enabled when you apply the patch ? since in page 9 of this post it is mentioned that it uses a separate license and it works with free and pro xc compilers.

Microchip says that from sep/2022 and on Code coverage and misra check are part of what they call " MPLAB® Analysis Tool Suite " . As far as i know there is no medicine to enable this option  :-[


Title: Re: XC Compilers - Software ONLY
Post by: thunderStorm on March 11, 2023, 07:05:49 07:05
I download and apply medicine to XC8 Compiler, but after patching it give me an error  :(, please follow the image for reference, is anybody providing me the solution?



Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on March 11, 2023, 10:09:27 10:09
I myself am already confused about activation, but I do this after I have completed "all dances with a tambourine" in the folder :o
C:\Program Files\Microchip\xc8\v2.41\bin
I copy xclm.exe and xclm.exe files to folders
C:\Program Files\Microchip\xc8\v2.41\pic\bin
C:\Program Files\Microchip\xc8\v2.41\avr\bin

And I repeat the process.


Title: Re: XC Compilers - Software ONLY
Post by: mitsos on March 11, 2023, 02:18:43 14:18
hi

activation method from pascal06 post (reply 271)
tested on xc8 v2.41 and it is working!

do these:
- add to system environment variable Path
the value C:\Program Files\Microchip\xc8\v2.41\bin
or do this during setup of xc8 compiler by checking
add xc8 to the PATH environment variable
- compile the xclm-hack.c on Dev-C++ 4.9.9.2
and drop the xclm-hack.exe in folder
C:\Program Files\Microchip\xc8\v2.41\bin
- run cmd as admin and write
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\xclm.exe" /t REG_SZ /v "debugger" /d "xclm-hack.exe"

regards
mitsos


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on March 11, 2023, 03:12:57 15:12
hi

activation method from pascal06 post (reply 271)
tested on xc8 v2.41 and it is working!

do these:
- add to system environment variable Path
the value C:\Program Files\Microchip\xc8\v2.41\bin
or do this during setup of xc8 compiler by checking
add xc8 to the PATH environment variable
- compile the xclm-hack.c on Dev-C++ 4.9.9.2
and drop the xclm-hack.exe in folder
C:\Program Files\Microchip\xc8\v2.41\bin
- run cmd as admin and write
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\xclm.exe" /t REG_SZ /v "debugger" /d "xclm-hack.exe"

regards
mitsos
please upload xclm-hack.exe for windows,I want to try, thank you!


Title: Re: XC Compilers - Software ONLY
Post by: mitsos on March 11, 2023, 03:29:05 15:29
hi

here is xclm-hack.exe

regards
mitsos


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on March 11, 2023, 04:16:54 16:16
hi

here is xclm.hack.exe

regards
mitsos
In China, I can't visit mega. Please upload xclm.hack.exe directly. Thank you!


Title: Re: XC Compilers - Software ONLY
Post by: mick on March 12, 2023, 12:06:41 12:06
@patchjack

Upload by mitsos is direct upload,  not mega link
Just download..


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on March 14, 2023, 06:36:37 06:36
hi

here is xclm-hack.exe

regards
mitsos
It can’t work for xc8 v2.41 on win7. TOP’s patcher is generic on xc8 xc16 xc32 on win7. The
latest OS win may be OK too.


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on April 19, 2023, 05:07:13 05:07
XC16 V2.10 is coming! Top’s patch is working, too.


Title: Re: XC Compilers - Software ONLY
Post by: Catcatcat on April 19, 2023, 03:56:47 15:56
 :o
 (https://i.ibb.co/LthMS8J/Screenshot-5.jpg)(https://i.ibb.co/5c5Xvpg/Screenshot-1.jpg)
 :o ;D



Title: Re: XC Compilers - Software ONLY
Post by: patchjack on June 21, 2023, 02:45:10 14:45
XC32 V4.30 is coming! Top’s patch is working, too.


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on June 23, 2023, 03:48:58 03:48
XC32 bug
https://forum.microchip.com/s/topic/a5C3l000000BpDCEA0/t390976


Title: Re: XC Compilers - Software ONLY
Post by: patchjack on July 13, 2023, 12:10:22 12:10
XC8 generate hex note:
https://forum.microchip.com/s/topic/a5C3l000000Bpr8EAC/t391265


Title: Re: XC Compilers - Software ONLY
Post by: jbcoder on December 31, 2023, 11:23:18 23:23
I am getting this same problem, how is it resolved?

"C:\Program Files\Microchip\xc8\v2.45\avr\bin>xclm
xclm.old not found, rename the original xclm.exe file to xclm.old"

Thanks

Thanks , you are right.

It is solved, xc8 1.32 run in pro mode now.  :D
The problem was it not found the xclm.old.
The environment variable path was false.

Microchip MPLAB XC8 C Compiler (PRO Mode) V1.32
Memory Summary:
    Program space        used    55h (    85) of  2000h words   (  1.0%)
    Data space           used    12h (    18) of   400h bytes   (  1.8%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   31Eh bytes   (  0.0%)
    Configuration bits   used     2h (     2) of     2h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)


Posted on: December 31, 2023, 11:08:50 23:08 - Automerged

Solved, the file was actually named xclm.old.exe

" Directory of C:\Program Files\Microchip\xc8\v2.45\avr\bin

31/12/2023  22:23    <DIR>          .
31/12/2023  22:23    <DIR>          ..
18/08/2023  10:16           575,696 avr-addr2line.exe
18/08/2023  10:18           596,688 avr-ar.exe
18/08/2023  10:18           779,984 avr-as.exe
18/08/2023  10:17         1,620,176 avr-c++.exe
18/08/2023  10:19           574,160 avr-c++filt.exe
18/08/2023  10:18         1,617,616 avr-cpp.exe
18/08/2023  10:16            44,752 avr-elfedit.exe
18/08/2023  10:17         1,620,176 avr-g++.exe
18/08/2023  10:17         1,616,080 avr-gcc-5.4.0.exe
18/08/2023  10:16            64,208 avr-gcc-ar.exe
18/08/2023  10:16            64,208 avr-gcc-nm.exe
18/08/2023  10:17            64,208 avr-gcc-ranlib.exe
18/08/2023  10:19         1,616,080 avr-gcc.exe
18/08/2023  10:17           496,848 avr-gcov-tool.exe
18/08/2023  10:16           502,992 avr-gcov.exe
18/08/2023  10:17         4,895,952 avr-gdb.exe
18/08/2023  10:19           628,944 avr-gprof.exe
18/08/2023  10:18         2,007,248 avr-ld.bfd.exe
18/08/2023  10:19         2,007,248 avr-ld.exe
18/08/2023  10:19           583,888 avr-nm.exe
18/08/2023  10:17           724,176 avr-objcopy.exe
18/08/2023  10:18           830,160 avr-objdump.exe
18/08/2023  10:16           596,688 avr-ranlib.exe
18/08/2023  10:20           427,216 avr-readelf.exe
18/08/2023  10:18           586,448 avr-size.exe
18/08/2023  10:18           576,208 avr-strings.exe
18/08/2023  10:19           724,176 avr-strip.exe
20/06/2014  03:58            26,624 xclm.exe
18/08/2023  10:08         5,324,496 xclm.old.exe   <---------------- THIS ONE
              29 File(s)     31,793,344 bytes
               2 Dir(s)  727,828,021,248 bytes free"


Had to change folder view options to not hide file extensions of known file types, to then delete the .exe off the end!


Title: Re: XC Compilers - Software ONLY
Post by: engiadina on February 05, 2024, 04:52:58 16:52
Hi unfortunately, OSX users cannot use the patch any more.

On apple silicon running XCLM returns a wrong processor type message.

>> unable to execute /Applications/microchip/xc8/v2.46/bin/xclm: Bad CPU type in executable <<

How to proceed here?

Thanks for help


Title: Re: XC Compilers - Software ONLY
Post by: HackAndCrack on March 22, 2024, 05:24:37 05:24
Please re-upload Top's xclm patch to mega.nz and provide links to download.


Title: Re: XC Compilers - Software ONLY
Post by: pickit2 on March 22, 2024, 12:13:53 12:13
Please re-upload Top's xclm patch to mega.nz and provide links to download.
from my backup for windows