XC8---Binaries

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
The AVR XC8 component is GCC based and from what i read about open source software license they should be providing the source code(uncompiled) for the full avr part compiler suit at least(and free limitations turned off by default at compile) and so it should be possible to get xc8 PRO by compiling it yourshelf.I found this while browsing EEVblog forum.

Now it would be helpful if someone could point a link to the source code  and give me some info about how to compile them.

PS:I do this since it looks Microchip looks like it will dump the free GCC options and become unsupported.They seem to migrate everything towards MPLAB X together with the AVR/SAM.The new PICKIT 4 can do AVR but they haven't added the same capabilities(to do PIC and PIC32 programing since they are similar protocols) to the AVRDragon or ICE.Also AS 7 doesn't recognize pickit 4  or MPLAB Snap as programers while it is supported to program AVR under MPLAB X.

PS:I can do the building on linux but i want a windows binary for install on W10.

This topic has a solution.
Last Edited: Mon. Dec 16, 2019 - 02:45 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

santalklaus wrote:
The AVR XC8 component is GCC based ...
indecision

clang, C99 (GCC is C11 and more), etc

https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=5#comment-2624586

...

Standard for free Unlicensed (Free) versions of this compiler now allow optimizations up to and including level 2. This will permit a similar, although not identical, output to what was previously possible using a Standard license.

...

santalklaus wrote:
Now it would be helpful if someone could point a link to the source code ...
MPLAB Ecosystem Downloads Archive | Microchip Technology

search for AVR

santalklaus wrote:
They seem to migrate everything towards MPLAB X together with the AVR/SAM.
dual track

Some Microchip customers prefer the Microsoft way (Microsoft Visual Studio Isolated Shell -> Atmel Studio) ... others prefer the Apache way (NetBeans -> MPLAB X) ... others go other ways ... and there's the unknown.

 


https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=5#comment-2595966

AVR Microcontrollers Now Supported in MPLAB X Integrated Development Environment | Microchip Technology

(near end of first paragraph)

AVR support will continue to be added to Atmel Studio 7 and  ...

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Will this script call from Linux generate the Windows binaries if i set target_arhitecture to windows? 

bash build-avr8-gnu-toolchain-git.sh -B<target_arhitecture> -b <build folder> -s<source folder>

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

santalklaus wrote:
The AVR XC8 component is GCC based ...
indecision

clang, C99 (GCC is C11 and more), etc

https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=5#comment-2624586

...

Standard for free Unlicensed (Free) versions of this compiler now allow optimizations up to and including level 2. This will permit a similar, although not identical, output to what was previously possible using a Standard license.

...

santalklaus wrote:
Now it would be helpful if someone could point a link to the source code ...
MPLAB Ecosystem Downloads Archive | Microchip Technology

search for AVR

santalklaus wrote:
They seem to migrate everything towards MPLAB X together with the AVR/SAM.
dual track

Some Microchip customers prefer the Microsoft way (Microsoft Visual Studio Isolated Shell -> Atmel Studio) ... others prefer the Apache way (NetBeans -> MPLAB X) ... others go other ways ... and there's the unknown.

 


https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=5#comment-2595966

AVR Microcontrollers Now Supported in MPLAB X Integrated Development Environment | Microchip Technology

(near end of first paragraph)

AVR support will continue to be added to Atmel Studio 7 and  ...

 

Also how do i patch the compilers from free to pro(what i'm trying to do by compiling the xc8).Could you link a guide or something like that.Thx.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

santalklaus wrote:

Also how do i patch the compilers from free to pro(what i'm trying to do by compiling the xc8).Could you link a guide or something like that.Thx.

 

Whilst you are free to do what you want with the open source compilers you should not then use them with the Microchip supplied, proprietary and closed source, libraries.

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

santalklaus wrote:
Also AS 7 doesn't recognize pickit 4  or MPLAB Snap as programers ...
IIRC, david.prentice has been able to operate MPLAB PICkit 4 on Atmel Studio 7 (IIRC : MPLAB PICkit 4 into EDBG mode)

santalklaus wrote:
PS:I can do the building on linux but i want a windows binary for install on W10.
Linux only

https://github.com/cv007/XC3216/blob/master/xc8-avr-info.txt

though likely can meet your requirement by WSL.

 


https://www.avrfreaks.net/forum/where-have-atmel-avr-gcc-sourcecode-gone#comment-2720536

Learn about the Windows Subsystem for Linux | Microsoft Docs (WSL)

 

"Dare to be naïve." - Buckminster Fuller