Author Topic: XC8+Pickit2 = slow  (Read 3143 times)

0 Members and 1 Guest are viewing this topic.

Offline poorchavaTopic starter

  • Super Contributor
  • ***
  • Posts: 1673
  • Country: pl
  • Troll Cave Electronics!
XC8+Pickit2 = slow
« on: January 15, 2013, 04:31:56 pm »
I have recently switched from MPLAB 8.something and C18, to MPLABX 1.6 and XC8 compiler. I am using genuine Pickit 2 and the target is PIC18F4553.

I have noticed that it takes MUCH longer to enter debug mode (i mean compile, link, program mcu, enter debug mode) than old MPLAB did. Have you also noticed that? Maybe there's something wrong with my hardware (it's rather old, but quite capable)? I especially see difference in compilation time.

I like XC8 much better than C18 (normal interrupt declarations! at last!), but this is somewhat annoying to wait for like 10-12 seconds for debug to start, while in old MPLAB it used to takes like 6 seconds or so.
I love the smell of FR4 in the morning!
 

Online AlfBaz

  • Super Contributor
  • ***
  • Posts: 2187
  • Country: au
Re: XC8+Pickit2 = slow
« Reply #1 on: January 15, 2013, 04:44:26 pm »
I believe its because mplabx creates a huge make file first and then sends that to the compiler tool chain.
I remember the mplab x guys saying they were going to address this about 18 months ago, looks like they never got around to it
 

Offline JoannaK

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: fi
    • Diytao making blog
Re: XC8+Pickit2 = slow
« Reply #2 on: January 16, 2013, 12:59:18 am »
XC8 sucks anyhow.. apparently only way to make it produce half decent code is to purchase 500USD 'standard' package. And with 1500USD it might even do decent code.   |O

Edit: couple links
http://www.microchip.com/forums/m698536.aspx
http://www.microchip.com/forums/m668751-print.aspx
« Last Edit: January 16, 2013, 02:07:46 am by JoannaK »
 

Offline Niklas

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: se
Re: XC8+Pickit2 = slow
« Reply #3 on: January 16, 2013, 06:57:10 pm »
If you have the full version of Microchip's C18 you might get an XC8 license for free.

I have also noticed that everything seems to be a bit slower than before but I use RealICE instead of Pickit2. Still have MPLAB 8.43 and C18 3.xx for some older projects. One thing that I like with XC8 is that I no longer need separate LCD and RS232 functions for RAM and ROM strings.
 

Offline poorchavaTopic starter

  • Super Contributor
  • ***
  • Posts: 1673
  • Country: pl
  • Troll Cave Electronics!
Re: XC8+Pickit2 = slow
« Reply #4 on: January 17, 2013, 10:55:17 am »
Yeah, some features are definitely nice:
-easy interrupt declaration
-ONE include file for all controllers (which on the other hand is the reason for slowness according to Microchip forum)
-no more 'const rom' stuff
-no more ram and rom string functions
I love the smell of FR4 in the morning!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf