Official AVR Toolchain - Source code/Portability?

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

Hi All,

I am not sure how I have missed this... but Atmel has an official GNU/GCC based Toolchain: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725&category_id=163&family_id=607&subfamily_id=1965

It appears to be Windows only. Seeing this is GCC, does anyone know where the source is? I am a Linux user, and looking for avr-as support for the tiny10. The official toolchain seems to support it.

Thanks,
Sam

p.s. I am sorry if this belongs in in AVR GCC forum...

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

I'll move this to GCC forum then you seriously need to read Bingo600's sticky thread at the top of that forum which gives scripts to pull and build an avr-gcc toolchain on Lnux.

If you happen to use a Debian based distro that can take .deb's (so that includes Ubuntu) then as you'll read in that thread Bingo puts built copies in .deb's on my website at:

www.wrightflyer.co.uk/avr-gcc/

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

I already have build the latest version using Bingo600's scripts. It is not yet patched to handle the tiny10. The official toolchain is.

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

Based upon some early reports, it sounds as though the preliminary support for the ATtiny10 in the official toolchain is still VERY preliminary -- perhaps even to the point of producing non-working code when working with variables in SRAM using direct addressing. Specifically, it appears to issue the wrong version of the LDS and STS instructions.

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

Is this a problem with gcc or is the assembler actually spitting out the wrong opcodes? I don't really care about gcc so much... with such tight program memory I will most likely do everything in ASM anyway.

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

If "Toolchain" is anything like WinAVR then I doubt they publish a full source but, instead, just a set of the patches to be applied to the generic GCC tree. I guess under GPL Atmel are required to do this too so you may want to contact them to ask how they are servicing their GPL requirement. ;-) Or it could be (if they haven't actually edited any of the code themselves) that there's no GPL requirement at all if they are using freely available patches. The AVR-LibC part of the tiny10 support must surely be available in the CVS for AVR-LibC so I guess the question is whether the patches that apply tiny10 support to the generic GCC are upstream yet or not?

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

DOH! I feel pretty stupid. They install the source patches along with the toolchain. I should have thought of that. Thanks! I think I will try giving it a build. :)