Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 28, 2020, 11:16:18 23:16


Login with username, password and session length


Pages: 1 [2] 3 4 5 6 7 8 9 ... 11
Print
Author Topic: XC8 Compilers - Discussion  (Read 166292 times)
0 Members and 1 Guest are viewing this topic.
LithiumOverdosE
Senior Member
****
Offline Offline

Posts: 322

Thank You
-Given: 320
-Receive: 453


« Reply #25 on: November 01, 2012, 12:59:18 00:59 »

Also as of v1.11 it is advisable to use quote marks to avoid preprocessor messing with your code. Check out documentation.
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #26 on: November 01, 2012, 01:23:23 01:23 »

Damn. I lower my head in shame. Is Pic16 though but you're right everything is there.

No need to lower your head in shame, just read the manual, thu I won't use XC8 for PIC18, especially if I am going to use microchip library, at least not for now, current release of microchip applications library (v2012-10-15) includes support only for XC16 and XC32 compilers, which I think are more important than supporting PIC18. If you look at the manual, you can learn how to support both C18 and XC8, so in future you only need to change a #define to jump among compilers.

Posted on: November 01, 2012, 03:12:18 03:12 - Automerged

Also as of v1.11 it is advisable to use quote marks to avoid preprocessor messing with your code. Check out documentation.
Where is that mentioned in the manual that comes with the compiler?
Logged
dotm
Active Member
***
Offline Offline

Posts: 171

Thank You
-Given: 70
-Receive: 54


$$$


« Reply #27 on: November 01, 2012, 01:37:50 01:37 »

Where is that mentioned in the manual that comes with the compiler?

I think he mentions the conflict that can occur if you have predefined ON or OFF to specific logic levels as mentioned here:
http://www.microchip.com/forums/m672933-p2.aspx
Since the topic is quite complicated for me, I may be wrong but the solution i read out should be either placing #define after #pragma or to use quotation marks.
Logged
LithiumOverdosE
Senior Member
****
Offline Offline

Posts: 322

Thank You
-Given: 320
-Receive: 453


« Reply #28 on: November 01, 2012, 04:37:58 04:37 »

Where is that mentioned in the manual that come with the compiler?

It's mentioned in the release notes that come with the compiler.   Wink

Quote
Specification of config pragmaThe arguments to the #pragma configcan now be quoted.
You may prefer to quote the setting-value pairs to ensure that the preprocessor does not
perform substitution of these tokens, e.g., #pragma config "BOREN=OFF"
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #29 on: November 01, 2012, 03:10:45 15:10 »

I think he mentions the conflict that can occur if you have predefined ON or OFF to specific logic levels as mentioned here:
http://www.microchip.com/forums/m672933-p2.aspx
Since the topic is quite complicated for me, I may be wrong but the solution i read out should be either placing #define after #pragma or to use quotation marks.


They are confusing people in this thread, better not go in depth ;- )
Logged
Ahmad_k
SCG Moderator
Hero Member
*****
Offline Offline

Posts: 726

Thank You
-Given: 165
-Receive: 1212



« Reply #30 on: November 07, 2012, 03:58:34 03:58 »

Does anyone know how to debug XC8 project in PROTEUS i can only load HEX file, but when loading COF debug file i cannot execute step by step through the code.

I have faced this problem with XC16 but there was an option to change the output file format to COFF and that works, but this option is missing from XC8
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #31 on: November 07, 2012, 05:12:34 05:12 »

Strange, I can debug main.c (single file project) in XC v1.11 without problems for both debug and release builds.
Logged
Ahmad_k
SCG Moderator
Hero Member
*****
Offline Offline

Posts: 726

Thank You
-Given: 165
-Receive: 1212



« Reply #32 on: November 07, 2012, 09:22:01 09:22 »

I have tried this on three different PC with mplabx 1.41 and xc8 1.11 without any success for debugging. This is strange.
Can you upload a small project to try on my Pc ?
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #33 on: November 07, 2012, 09:36:55 09:36 »

I am using MPLAB v8.88 and CX8 v1.11, send me your project and I will try it for you.
Logged
marcodassi
Junior Member
**
Offline Offline

Posts: 37

Thank You
-Given: 65
-Receive: 20


« Reply #34 on: December 05, 2012, 11:11:40 23:11 »

XC8 1.12 has just been released

http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/home.html

("medicine" still seems to work...  Cheesy )
« Last Edit: December 05, 2012, 11:33:02 23:33 by marcodassi » Logged
Okada
Active Member
***
Offline Offline

Posts: 132

Thank You
-Given: 29
-Receive: 188


« Reply #35 on: January 08, 2013, 06:03:24 18:03 »

Even I am not sure about the medicine but I think they refer to the link in the attached file in the topmost post at this link http://www.sonsivri.to/forum/index.php?topic=44014.0
Logged
Okada
Active Member
***
Offline Offline

Posts: 132

Thank You
-Given: 29
-Receive: 188


« Reply #36 on: January 08, 2013, 07:20:33 19:20 »

Go here http://www.sonsivri.to/forum/index.php?topic=44014.25

download the xclm.rar which metal has posted or download the xclm.c which is posted by juvaan and compile it to get xclm.exe
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #37 on: January 08, 2013, 10:44:05 22:44 »

Download IDE and compiler from this link. The file you need to download is "codeblocks-12.11mingw-setup.exe". In case you don't have admin privilege on your PC, then you might opt to download this file "codeblocks-12.11mingw-setup_user.exe" instead, if you don't understand what I am talking about it, download the latter setup file.

Once download complete, simply follow the quick tutorial I created. You can also download project files in xclm.rar attachment.


Note: You have to be a member of 4shared.com in order to be able to download.
« Last Edit: January 08, 2013, 10:48:11 22:48 by metal » Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #38 on: January 08, 2013, 11:53:56 23:53 »

attach your project here.  xclm.exe is working for me whatever project I open.. I mean, I am not having any of your errors.
Logged
Okada
Active Member
***
Offline Offline

Posts: 132

Thank You
-Given: 29
-Receive: 188


« Reply #39 on: January 09, 2013, 10:18:14 10:18 »

If you want to compile yourself then create a new C project in Codeblocks and select MinGW GCC Compiler as the tool. Then add a new emply file to the project and save it as xclm.c. The copy and paste the code from the xclm.c posted in this thread. Then select Release as output type and build the program. xclm.exe will be in the Release/bin folder.

Yes, It can be used with any XC Compiler. Juvann also said that it also enables Pro mode of XC32++ Compiler in XC32 Compiler.
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #40 on: January 09, 2013, 12:08:56 12:08 »

 there is nothing wrong with my files... I don't understand what you are trying to do okada.. another post counter indian we 've got here..
Logged
lcn
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 15
-Receive: 1


« Reply #41 on: January 09, 2013, 01:16:49 13:16 »

Edit :

Finally, i found the following : ( for XC8 v1.11 and XC8 v1.12 )

Compiled Okada's file is not working for me.
PRO mode can be activated but compilation runs with free mode optimizations.

« Last Edit: January 10, 2013, 08:36:30 20:36 by lcn » Logged
juvann
Newbie
*
Offline Offline

Posts: 18

Thank You
-Given: 7
-Receive: 55


« Reply #42 on: January 09, 2013, 08:46:53 20:46 »

Icn are you sure to replace correctly the xclm.exe? In the last version the path of xclm is changed before there was a common path \program files\microchip\xclm\bin\ now every xc compilers has own version in bin directory, so for XC8 xclm is located in \program files\microchip\xc8\v1.12\bin\. You can replace every xclm.exe with the same fake xclm.

EDIT
PRO mode can be activated but compilation is done with free mode optimizations.
In MPLABX with XC8 compiler, you can choose if compile in Free, Standard or PRO, it's depend also from your license (fake xclm it's your friend).
In project properties: Conf: [name] -> XC8 global options -> XC8 Compiler -> on the rigth first combo Option categories -> Optimizations -> last option Operation mode, there are the three options.
« Last Edit: January 09, 2013, 08:55:39 20:55 by juvann » Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #43 on: January 09, 2013, 11:21:36 23:21 »

man... I asked you already to upload something that we can test here. We can't do guessing for you, if you seek help, find some way to allow us help you, this is going to a dead end, can't you see that already!? The same file size is compiling ok here, so, upload something that I or other  can compile to see if you are the only one having this problem, or all of us have it.
« Last Edit: January 09, 2013, 11:25:17 23:25 by metal » Logged
LithiumOverdosE
Senior Member
****
Offline Offline

Posts: 322

Thank You
-Given: 320
-Receive: 453


« Reply #44 on: June 28, 2013, 01:11:15 01:11 »

XC8 v1.20 has been released.

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


Yet another update with no major improvements or correction of errors in PLIB.   Undecided

Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #45 on: June 28, 2013, 12:32:49 12:32 »

Since microchip has outsourced this support task to indian companies, what do you expect!? There won't be fast major changes any more as Hi-Tech used to do.
Logged
LithiumOverdosE
Senior Member
****
Offline Offline

Posts: 322

Thank You
-Given: 320
-Receive: 453


« Reply #46 on: June 28, 2013, 06:59:44 18:59 »

I didn't know that. I supposed that Hi-Tech was contracted to do updates.
« Last Edit: June 28, 2013, 07:02:50 19:02 by LithiumOverdosE » Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #47 on: June 28, 2013, 11:19:41 23:19 »

I hope you are right.
Logged
pumper
Junior Member
**
Offline Offline

Posts: 35

Thank You
-Given: 13
-Receive: 17


« Reply #48 on: July 29, 2013, 11:49:14 23:49 »

no c-r-a-c-k crack for version 1.20 ?
« Last Edit: July 30, 2013, 01:58:01 01:58 by metal » Logged

C++ is designed to give the programmer choice, even if this makes it possible for the programmer to choose incorrectly
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2341

Thank You
-Given: 766
-Receive: 619


Top Topic Starter


« Reply #49 on: July 30, 2013, 01:57:37 01:57 »

explain to me, why you are asking for the crack, also why do you write this word this way? This is forbidden here, write words correctly..

BTW, the existing crack is working fine, unless you found sth that is no longer supported by the current fix, read before you post and waste others time.
« Last Edit: July 30, 2013, 02:05:44 02:05 by metal » Logged
Pages: 1 [2] 3 4 5 6 7 8 9 ... 11
Print
Jump to:  


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

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