Add new ATmega328pb to AVRStudio4 and WinAVR

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
I'm trying to add this new component to avrstudio4 but I can not
until now I did this:

C:\Programmi\Atmel\AVR Tools\Compilers......   into  file supportedparts.txt ---> I add  atmega328pb

 

C:\WinAVR-20100110\avr\include\avr.....   ---> in folder add file  iom328pb.h

 

but resust is:

"unknown MCU 'atmega328pb' specified"

 

 

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

Adding parts to avr-gcc is not THAT simple.

 

Certainly it's easily done for the compiler. Simply throw away that ancient old 4.3.3 you are using and get a shiny new 4.9.2 from here:

 

http://www.atmel.com/tools/ATMEL...

 

As for adding the device to what AS4 "knows". I don't know if that's even possible but even if it isn't just create a project for ANY model of AVR then tick the "use external Makefile" box then hand edit the Makefile to invoke the GCC tools using the new -mmcu= option. Obviously the debugger in Studio 4 is not going to know about the model though!

 

For an east life just get Studio 7. It has 328PB support in the IDE and the compiler is that same 4.9.2 so it obviously supports it too.

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

WinAVR -

The current version of Atmel AVR GCC uses a specification file for each AVR.

IIRC there's a part package (set of files) for mega328PB that may contain that file (it's the complete toolchain with iom328pb.h in partpack...)

 

AVR Studio 4 -

Configure it to invoke Atmel AVR GCC; am uncertain if there is further configuration.


Atmel Corporation

Atmel AVR Toolchain for Windows

http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx

Atmel Corporation

Atmel AVR 8-bit Toolchain 3.5.0 - Release Note
(file size: 153 KB, 13 pages, revision 3.5.0.1662, updated: 10/2015)

http://www.atmel.com/Images/avr8-gnu-toolchain-3.5.0.1662-readme.pdf

...

(page 7)

3. Bugs and New Features

3.1 New Features

...

Issue #AVRTC-726:

The compiler no more supports individual devices like ATmega8.

...

Atmel Corporation

Studio Archive

http://www.atmel.com/tools/STUDIOARCHIVE.aspx

...

ATmega328PB Part Pack for Atmel Studio 6.2
(37.9 MB, updated July 2015)
This bundle adds support for ATmega328PB device in Atmel Studio 6.2.SP2. Please see attached word file for more details.

...

Edits :

  1. Cliff is quick! smiley
  2. Part pack

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

Last Edited: Fri. Jan 29, 2016 - 04:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I thought it was simple, well, I hope also with AVRstudio4