Mac support for newer avrxmega3 chips

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

I've used brew install avr-gcc to setup development for older chips like the attiny85, and can use avrdude with a usbasp on my Mac / OSX.

I'd like to work with some of the newer ATTinys, but my current libc includes don't support them.  I suspect I need to patch the io.h files, but can't find a tutorial on how to do that.

Also, I understand that I need a UPDI programmer.  I have an ATTiny416 XplainedNano, which includes a UPDI programmer, but I think I also need a patched avrdude.conf file to use it.

I'm hoping once I can write some code to the 416 Xplained board, I can separate the UPDI programmer and use it to develop for other new ATTiny chips.

Thanks for any pointers.

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

Byon wrote:
I suspect I need to patch the io.h files, but can't find a tutorial on how to do that.
maybe

Unsupported devices - avr-gcc - GCC Wiki

Byon wrote:
... I can separate the UPDI programmer and use it to develop for other new ATTiny chips.
MPLAB Snap is an alternative, MPLAB X v5.10 and MPLAB Snap appear to support almost all of the UPDI AVR (tinyAVR 0-series, tinyAVR 1-series, megaAVR 0-series), and MPLAB X is on macOS.

MPLAB Snap | AVR Freaks

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

 

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

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

There is Arduino for Mac. Wonder which version of avr-gcc comes with it? is it new enough to support 416 ?

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

If you look in include/avr/io.h, there is a check for the

symbol __AVR_DEV_LIB_NAME__ at the end of the list of

devices.  If you define this symbol to be tn416 and place

the iotn416.h file in the include/avr directory, you

should be able to compile your code.

 

--Mike

 

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

I didn't know MPLAB_IDE supported the AVRs.  Looks like that happened in October.  I tried it, and it worked great with the ATTiny416 XplainedNano. 

I was also successful in separating the UPDI programmer from the Tiny416 on that board, and using it to program an ATTiny412, so a $9 USB UPDI mEDBG programmer.

I also didn't know about the Snap.  I may order one of those, as it appears the MPLAB_IPE supports the Snap, but not the mEDBG

Thanks to all for your help.

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