Adding new parts to Atmel Studio 4 (AS4) is often required when using newer AVR microcontrollers that were released after the final version of AS4. Because AS4 is an outdated, legacy IDE, it does not support modern device pack updates.
Here are the primary methods to add support for a new part:
Method 1: Update the AVR Toolchain (For Compiler Support)
To make the compiler recognize a new chip, update the AVR-GCC Toolchain.
Download a newer version of the AVR Toolchain (e.g., 4.9.2 or later) from the Microchip website. When setting up a project, you will use the new -mmcu= option for the new part.
AVR Freaks link Method 2: Manually Edit/Create Part Support
If the part is very similar to an existing one (e.g., trying to use an ATmega328PB on a project set up for an ATmega328P), you may be able to force it to work.
Locate include files: New assembler include files can be found and sometimes placed into the \Atmel\AVR Tools\AvrAssembler\Appnotes directory. From Google AI you can use also codevisition avr
External Makefile: Create a project for a similar, older AVR, tick the "use external Makefile" option, and manually edit the Makefile to reflect the new part number for the -mmcu switch.
Note on Limitations: While this allows compilation, the simulator and debugger in AS4 will not recognize the new part. Alternatively, use a command-line tool like avrdude to flash the hex file generated by the newer toolchain, bypassing the need to have the device listed in
AVR Freaks
AVR Freaks
+1
|
1
on: Yesterday at 06:47:59 PM
|
||
| Started by max - Last post by avrlover | ||
|
2
on: Yesterday at 07:30:48 AM
|
||
| Started by max - Last post by max | ||
|
How to add new parts to atmel studio 4 ?
|
||
|
3
on: April 19, 2026, 01:41:09 13:41
|
||
| Started by metal - Last post by patchjack | ||
|
Please use the compiler version XC-DSC V3.31.01. Now the compiler supports this kind of device, and XC32 no longer supports it. Please use XC-DSC in the future.
|
||
|
4
on: April 19, 2026, 09:48:51 09:48
|
||
| Started by sphinx - Last post by sphinx | ||
|
if one wants gnd pins for every 2 or for each just ad a 3 or 4 row headers and lengthen pcb a bit and connect pins to gnd
|
||
|
5
on: April 19, 2026, 07:46:09 07:46
|
||
| Started by metal - Last post by Catcatcat | ||
|
I'll tell you right away, I've had a long break from programming, so I've forgotten a lot, but I ran into this problem. I made a demoboard for myself with a PIC32AK1216GC41036 MCU. I've started to slowly brush up on my programming knowledge. ![]() The problem I encountered was that everything was fine with compiler version 5.00 (and earlier). But upgrading to version 5.10 returns a message saying the compiler doesn't have information about this controller. Code: pic32m-gcc.exe: error: unrecognized command-line option '-mcpu=32AK1216GC41036' And if I searched around, I saw that in version 5.00 the directory looked like this: ![]() and in version 5.10 it looked like this: ![]() and the search returned no results for these processors. I'll tell you right away, I've tried every possible trick and trick I know, but the results are negative. Can someone tell me how to upgrade to 5.10 or add the missing MCUs to the compiler? I would be grateful for your help. |
||
|
6
on: April 19, 2026, 05:31:05 05:31
|
||
| Started by sphinx - Last post by sphinx | ||
|
only the pcb file with fine tuning
|
||
|
7
on: April 18, 2026, 09:35:25 09:35
|
||
| Started by sphinx - Last post by sphinx | ||
|
according to jlcpcb 0.3mm with 0.45mm pad is no extra cost
and via with 0.2mm hole 0.45mm pad no extra cost either |
||
|
8
on: April 18, 2026, 04:28:17 04:28
|
||
| Started by sphinx - Last post by sphinx | ||
|
project finished no document nor gerbers created
please check schematics and schematic components as well as footprints for any mishaps/errore everything connected 4 layer board with 0.35 minimum holes 40 pin analyzing 2 trigger inputs 3v3 1v1 where 1v1 is adjutable for overclocking selectable voltage input 5v 3v3 2v5 1v8, 5v tolerant 4 x 64mbit memory chips tune it to your preferences |
||
|
9
on: April 16, 2026, 10:04:58 22:04
|
||
| Started by sphinx - Last post by sphinx | ||
|
realizing 6 layer boards is a quite a price jump above $180 and 4 layer boards a lot cheaper
so pcb 's are now 4 layer since tiny holes are expensive to get i will try to get those 0.35mm, fixed holes are 0.35mm and up 3v3 and 1v1 is created by ldo's and same with the vref to be able to use inputs with 5v 3v3 2v5 and 1v8 manually selectable inputs per datasheets are 5 tolerant 1v1 is made adjustable to better support overclocking extra pins are made test pads to-do connect mem ic's and their decouple capacitors modify 3v3 and 1v1 pour clear up traces guess other suff not though of right now pics and proejct files shared p.s. i hope you like the changes to make it cheaper to make |
||
|
10
on: April 15, 2026, 05:22:02 05:22
|
||
| Started by sphinx - Last post by sphinx | ||
|
the big brother changed direction a bit cutting the last 8 bits
added 5v 3v3 2v5 1v8 manually selectable 4 to memory chips 2 for triggers and 2 spare and 40 bits analyzed annotized and ready for placement and a "rough" route |
||



