metal
Global Moderator
Hero Member
   
Offline
Posts: 2420
Thank You
-Given: 862
-Receive: 678
Top Topic Starter
|
 |
« on: June 29, 2012, 12:19:17 00:19 » |
|
XC16 Compilers Discussion Topic
|
|
« Last Edit: June 29, 2012, 12:21:39 00:21 by metal »
|
Logged
|
|
|
|
8bitMCU
Newbie
Offline
Posts: 8
Thank You
-Given: 6
-Receive: 19
|
 |
« Reply #1 on: August 10, 2012, 11:38:27 23:38 » |
|
|
|
|
Logged
|
|
|
|
respected
Inactive
Offline
Posts: 6
Thank You
-Given: 1
-Receive: 1
|
 |
« Reply #2 on: November 28, 2012, 01:02:03 13:02 » |
|
I tried it. But I don't compile
|
|
|
Logged
|
|
|
|
metal
Global Moderator
Hero Member
   
Offline
Posts: 2420
Thank You
-Given: 862
-Receive: 678
Top Topic Starter
|
 |
« Reply #3 on: November 28, 2012, 01:17:46 13:17 » |
|
really, how is that, explain!?
|
|
|
Logged
|
|
|
|
respected
Inactive
Offline
Posts: 6
Thank You
-Given: 1
-Receive: 1
|
 |
« Reply #4 on: November 28, 2012, 01:55:45 13:55 » |
|
compiler messages;
elf-cpp.exe: PIC24F08KA102.gld: No such file or directory elf-cpp.exe: warning: '-x c' after last input file has no effect
|
|
|
Logged
|
|
|
|
Gallymimu
Hero Member
   
Offline
Posts: 704
Thank You
-Given: 152
-Receive: 214
|
 |
« Reply #5 on: November 28, 2012, 03:23:45 15:23 » |
|
Sounds like a question for the microchip forums  You've got something misconfigured if that is in fact a supported processor in this version of the compiler. The gld file, unless you explicitly included it should be automatically loaded from the various include paths.
|
|
|
Logged
|
|
|
|
respected
Inactive
Offline
Posts: 6
Thank You
-Given: 1
-Receive: 1
|
 |
« Reply #6 on: November 28, 2012, 08:39:27 20:39 » |
|
I changed PIC****.gld file P*****.gld. I compiled . Thanks.
|
|
|
Logged
|
|
|
|
marcodassi
Junior Member
  Muted
Offline
Posts: 40
Thank You
-Given: 73
-Receive: 26
|
 |
« Reply #7 on: December 14, 2012, 11:13:46 23:13 » |
|
XC16 1.11 is out!testing medicine... medicine still seems to work 
|
|
« Last Edit: December 14, 2012, 11:23:43 23:23 by marcodassi »
|
Logged
|
|
|
|
Parmin
Hero Member
   
Offline
Posts: 582
Thank You
-Given: 497
-Receive: 133
Very Wise (and grouchy) Old Man
|
 |
« Reply #8 on: April 18, 2013, 10:32:07 10:32 » |
|
Question.
Anyone have a library for HD44780 for the XC16 and XC32?
After playing with XC16 for a week I seem to start thinking that it is quite rotten.
|
|
|
Logged
|
If I have said something that offends you, please let me know, so I can say it again later.
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #9 on: April 18, 2013, 01:32:46 13:32 » |
|
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #10 on: November 01, 2013, 03:24:38 15:24 » |
|
|
|
|
Logged
|
|
|
|
marcodassi
Junior Member
  Muted
Offline
Posts: 40
Thank You
-Given: 73
-Receive: 26
|
 |
« Reply #11 on: January 14, 2014, 08:24:41 08:24 » |
|
XC16 1.21 is out!  (it's still listed as 1.20, but just click on the link and download!)
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #12 on: September 15, 2014, 02:01:26 14:01 » |
|
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #13 on: October 11, 2014, 08:56:15 08:56 » |
|
|
|
|
Logged
|
|
|
|
Binary1955
Inactive
Offline
Posts: 6
Thank You
-Given: 13
-Receive: 5
|
 |
« Reply #14 on: January 26, 2015, 04:19:02 16:19 » |
|
updated compiler MPLAB® XC16 Compiler v1.24 don't forget the part support XC16 v1.24 part support
Part-support updates can be applied to any compiler version, but some functionality may require a later compiler version. medicine still seems to work 
|
|
|
Logged
|
|
|
|
mitsos
Hero Member
   
Offline
Posts: 873
Thank You
-Given: 3186
-Receive: 4892
|
 |
« Reply #15 on: March 04, 2016, 07:31:21 19:31 » |
|
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #16 on: December 03, 2016, 10:36:46 10:36 » |
|
updated compiler MPLAB® XC16 Compiler v1.30testing, optimization level 0  1  2  s  3  medicine works!
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #17 on: November 01, 2017, 10:29:38 22:29 » |
|
|
|
« Last Edit: December 22, 2018, 06:22:07 06:22 by Catcatcat »
|
Logged
|
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #19 on: August 17, 2019, 06:11:49 18:11 » |
|
MPLAB XC16 Compiler v1.40checked, it works  But, the truth, the header files of some microcontrollers have different register names, for example, for PIC24FJ128GA204 in 1.36 there is a register REFOTRIMHL in version 1.40 it is called a register REFOTRIMH. This is what I have noticed so far.
|
|
|
Logged
|
|
|
|
uCApps
Inactive
Muted
Offline
Posts: 4
Thank You
-Given: 40
-Receive: 3
|
 |
« Reply #20 on: September 21, 2019, 02:34:07 14:34 » |
|
|
|
|
Logged
|
|
|
|
Manuel
Senior Member
  
Offline
Posts: 340
Thank You
-Given: 723
-Receive: 194
|
 |
« Reply #21 on: February 05, 2020, 02:14:44 14:14 » |
|
MPLAB XC16 Compiler v1.50 (porting to x64 version)
After Checking TOP's x86 solution I confirm it's working . Actually no need of x64 solution.
(PS: I did a mistake, I did not consider that different compiler versions can have also different DEFINE)
SORRY MY FAULT !!!!
X!
Release: v1.50
This release is a 64bit only release. All executables shipped with release are 64bit executables. This affects MacOS, Linux and Windows installers.
Updated MacOS release is Catalina compatible. Catalina has dropped 32bit executable support. This release of MPLAB XC16 is now a 64bit package.
New linker options that add section attributes to all code, data or PSV (.const) type sections. Additional information is available in the provided User's Guide (DS50002106E).
Added new functionality in compiler that helps user program inactive slave section of PRAM on dual core devices that have this feature. Users can use the function _program_inactive_slave(slave_number, verify, image); to program the inactive slave panel with the image. The function performs similar to _program_slave() but works only on the inactive panel.
Added a ported version of objcopy to the release. XC16 version is called xc16-objcopy. This version of objcopy only recognizes XC16 object code. Any other type of object code is not recognized by this objcopy.
|
|
« Last Edit: February 07, 2020, 11:40:19 11:40 by Manuel »
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
Top
Senior Member
  
Offline
Posts: 339
Thank You
-Given: 53
-Receive: 1719
|
 |
« Reply #22 on: February 05, 2020, 04:50:47 16:50 » |
|
MPLAB XC16 Compiler v1.50 (porting to x64 version)
Medicine does not work anymore I would say.
I will recompile the fix for 64-bit but Windows should still be OK. Can you test it?
|
|
|
Logged
|
|
|
|
mars01
V.I.P
Hero Member
   
Offline
Posts: 543
Thank You
-Given: 702
-Receive: 1803
|
 |
« Reply #23 on: February 05, 2020, 05:22:10 17:22 » |
|
I will recompile the fix for 64-bit but Windows should still be OK. Can you test it?
Hi Top, It looks like it works. I applied the patch and it reported patch completed. I made a bogus project, compiled it with Os optimizations and it has done it without complaints. 
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #24 on: February 07, 2020, 07:49:35 07:49 » |
|
MPLAB XC16 Compiler v1.50This universal link will always show the latest version.
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #25 on: November 20, 2020, 08:16:05 08:16 » |
|
MPLAB XC16 Compiler v1.61Everything works well. This universal link will always show the latest version.
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
  
Offline
Posts: 449
Thank You
-Given: 296
-Receive: 1755
|
 |
« Reply #26 on: March 29, 2021, 07:49:44 07:49 » |
|
|
|
|
Logged
|
|
|
|
extremgear
Inactive
Offline
Posts: 2
Thank You
-Given: 0
-Receive: 2
|
 |
« Reply #27 on: April 07, 2021, 07:53:31 19:53 » |
|
hello,
it seems to be very hard to make the medicine work on mac os big sur , i guess i'm not used to this new os and new terminal, i'll dig a little bit more and see.
|
|
|
Logged
|
|
|
|
patchjack
Junior Member

Offline
Posts: 54
Thank You
-Given: 11
-Receive: 54
|
 |
« Reply #28 on: March 08, 2022, 09:31:51 09:31 » |
|
Moderator, please share the patch file here, thank you!
|
|
|
Logged
|
|
|
|
Manuel
Senior Member
  
Offline
Posts: 340
Thank You
-Given: 723
-Receive: 194
|
 |
« Reply #29 on: March 08, 2022, 09:56:40 09:56 » |
|
Did you try TOR-browser ?
X!
|
|
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
pickit2
Moderator
Hero Member
   
Offline
Posts: 4686
Thank You
-Given: 843
-Receive: 4383
There is no evidence that I muted SoNsIvRi
|
 |
« Reply #30 on: March 08, 2022, 02:51:32 14:51 » |
|
Moderator, please share the patch file here, thank you!
Site Rules state All Software files are to be on a File Host Site not here. unless you want Sonsivri to be taken down.
|
|
|
Logged
|
Note: I stoped Muteing bad members OK I now put thier account in sleep mode
|
|
|
patchjack
Junior Member

Offline
Posts: 54
Thank You
-Given: 11
-Receive: 54
|
 |
« Reply #31 on: March 09, 2022, 04:16:51 04:16 » |
|
Site Rules state All Software files are to be on a File Host Site not here. unless you want Sonsivri to be taken down.
Excuse me, what is the file host site address of this xc16 cracked file?
|
|
|
Logged
|
|
|
|
Manuel
Senior Member
  
Offline
Posts: 340
Thank You
-Given: 723
-Receive: 194
|
 |
« Reply #32 on: February 03, 2024, 10:48:47 10:48 » |
|
MPLAB XC16 Compiler v2.10
...Seems all ok...
X!
|
|
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
eleks
Newbie
Offline
Posts: 8
Thank You
-Given: 2
-Receive: 4
|
 |
« Reply #33 on: May 07, 2025, 10:28:14 10:28 » |
|
I apologize in advance if my question is inappropriate here. I'm trying to write code in xc16 assembler. I don't understand how to place constants in program memory. In theory, you just need to place data in the program area (after the .text directive). But if I do this: .text ... COEFF_A: .hword 0x4000,0x8F5B,0x4BB5,0xEE34 COEFF_B: .hword 0x2511,0x6F33,0x6F33,0x2511 .end
Then the compiler perceives the labels COEFF_A and COEFF_B as invalid assembler instructions. If I do this: .text ... .data COEFF_A: .hword 0x4000,0x8F5B,0x4BB5,0xEE34 COEFF_B: .hword 0x2511,0x6F33,0x6F33,0x2511 .end
The compiler places constants in the data area.  Tell me what I'm doing wrong? Posted on: May 07, 2025, 09:59:15 09:59 - Automerged
If I do this: .text ... .section .const COEFF_A: .hword 0x4000,0x8F5B,0x4BB5,0xEE34 COEFF_B: .hword 0x2511,0x6F33,0x6F33,0x2511 .end
The data seems to appear in the program memory area. But in my opinion, this is not quite the correct syntax.
|
|
|
Logged
|
|
|
|
eleks
Newbie
Offline
Posts: 8
Thank You
-Given: 2
-Receive: 4
|
 |
« Reply #34 on: May 07, 2025, 05:05:45 17:05 » |
|
This will be right: .text ... .section coeff,psv COEFF_A: .hword 0x4000,0x8F5B,0x4BB5,0xEE34 COEFF_B: .hword 0x2511,0x6F33,0x6F33,0x2511 .end
|
|
|
Logged
|
|
|
|
|