Go Down

Topic: problem with ATmega328p (Read 1 time) previous topic - next topic

reva

Hi,
   I am Using Arduino IDE-0016, When i select the board Duemilanove, i get the following error,

unknown MCU 'atmega328p' specified
Known MCU names:
  avr2
  at90s2313
  at90s2323
  at90s2333
  at90s2343
  attiny22
  attiny26
  at90s4414
  at90s4433
  at90s4434
  at90s8515
  at90c8534
  at90s8535
  attiny13
  attiny2313
  attiny24
  attiny44
  attiny84
  attiny25
  attiny45
  attiny85
  attiny261
  attiny461
  attiny861
  at86rf401
  avr3
  atmega103
  atmega603
  at43usb320
  at43usb355
  at76c711
  avr4
  atmega8
  atmega48
  atmega88
  atmega8515
  atmega8535
  at90pwm2
  at90pwm3
  avr5
  atmega16
  atmega161
  atmega162
  atmega163
  atmega164p
  atmega165
  atmega165p
  atmega168
  atmega169
  atmega169p
  atmega32
  atmega323
  atmega324p
  atmega325
  atmega3250
  atmega329
  atmega3290
  atmega406
  atmega64
  atmega640
  atmega644
  atmega644p
  atmega645
  atmega6450
  atmega649
  atmega6490
  atmega128
  atmega1280
  atmega1281
  at90can32
  at90can64
  at90can128
  at90usb646
  at90usb647
  at90usb1286
  at90usb1287
  at94k
  avr6
  atmega2560
  atmega2561
  avr1
  at90s1200
  attiny11
  attiny12
  attiny15
  attiny28
utility/socket.c:1: error: MCU 'atmega328p' supported for assembler only
In file included from /opt/cross/lib/gcc/avr/4.1.3/../../../../avr/include/avr/pgmspace.h:81,
                from utility/types.h:19,
                from utility/socket.c:9:
/opt/cross/lib/gcc/avr/4.1.3/../../../../avr/include/avr/io.h:301:6: warning: #warning "device type not defined"

i continued to compile me code, i get the error message,




avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -I/home/tenet/arduino/arduino-0016/hardware/cores/arduino /home/tenet/arduino/arduino-0016/hardware/cores/arduino/wiring_shift.c -o/tmp/build12600.tmp/wiring_shift.c.o

unknown MCU 'atmega328p' specified
Known MCU names:
  avr2
  at90s2313
  at90s2323
  at90s2333
  at90s2343
  attiny22
  attiny26
  at90s4414
  at90s4433
  at90s4434
  at90s8515
  at90c8534
  at90s8535
  attiny13
  attiny2313
  attiny24
  attiny44
  attiny84
  attiny25
  attiny45
  attiny85
  attiny261
  attiny461
  attiny861
  at86rf401
  avr3
  atmega103
  atmega603
  at43usb320
  at43usb355
  at76c711
  avr4
  atmega8
  atmega48
  atmega88
  atmega8515
  atmega8535
  at90pwm2
  at90pwm3
  avr5
  atmega16
  atmega161
  atmega162
  atmega163
  atmega164p
  atmega165
  atmega165p
  atmega168
  atmega169
  atmega169p
  atmega32
  atmega323
  atmega324p
  atmega325
  atmega3250
  atmega329
  atmega3290
  atmega406
  atmega64
  atmega640
  atmega644
  atmega644p
  atmega645
  atmega6450
  atmega649
  atmega6490
  atmega128
  atmega1280
  atmega1281
  at90can32
  at90can64
  at90can128
  at90usb646
  at90usb647
  at90usb1286
  at90usb1287
  at94k
  avr6
  atmega2560
  atmega2561
  avr1
  at90s1200
  attiny11
  attiny12
  attiny15
  attiny28
/home/tenet/arduino/arduino-0016/hardware/cores/arduino/wiring_shift.c:1: error: MCU 'atmega328p' supported for assembler only

Couldn't determine program size: avr-size: '/tmp/build12600.tmp/acce_test.hex': No such file

This problem is appearing only from past 3 days, earlier it was fine.The following are my observations,
-problem is only with Duemilanove w/ ATmega328, others dont have any problem
-I can burn bootloader for Atmega328, and it works fine, compiling and hence uploading is the problem

I use OpenSuse 11.0 and arduino IDE-16, i have installed all the required repositories.
some one plz suggest me the solution.

Jai Hind

CaptainObvious

I got this error before... but I can't recall what happened :/

0016? Have you tried updating to 0017?  Also, have you tried more than one sketch? Rather than just more than one board?


reva

hi captain,
    I have tried with multiple sketches also, i have tried with arduino 17 also

wayoda

Hi,
the atmega328p is newer than the OpenSuse 11.0 release so it isn't supported by the avr-gcc compiler of 11.0.

You should consider to update to OpenSuse 11.2 or you have to manually update the packages  "avr-gcc" and (maybe) "avr-libc" to the most recent versions (if that is possible with OpenSuse)

The easiest (time-consuming) solution is to upgrade the distribution to 11.2.

Eberhard

madworm

#4
Nov 22, 2009, 01:48 pm Last Edit: Nov 22, 2009, 01:52 pm by madworm Reason: 1
You can get updated AVR rpms for openSUSE here:

http://www.arduino.cc/playground/Linux/OpenSUSE


If you should consider updating to 11.2, please DON'T use the 'update' option on the DVD! Do a fresh install, it will save you time and a big headache. I think it is worth it, as KDE4 seems to be usable for the first time. Boot-up time has been improved as well.
• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

reva

hi wayoda and madworm,
       I understand this, but i was using 328p earlier with my system, i lost that duemilanove and now i have bought a new one. i have not changed any thing in my system, but tried to patch avrdude with a new version. so do u think even in this case, your solution works.

jai hind

madworm

Well, all I can say is that I've been using the AVR repository for ages and it usually works for me. There are some issues with the 'NewSoftSerial' library, but everything else seems to work.
• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

reva

ok i have decided to go for suse11.2,that wil take one more day for downloading and installing. i hope that will work, so i will post the results after 24 hours.

Go Up