AVR 1284p Error

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

AVR 1284p Error

Post by JohnCrow »

Ive just tried programming an AVR 1284P device with the following error
(though it will compile to hex ok)

Target folder: H:\FLOWCO~1\PROJEC~1
Source name: H:\Flowcode 6 Projects\Projects FC6 AVR\LED Flash.fcfx
Title:
Description:
Device: AVR.ATMEGA.ATMEGA1284P
Generated by: Flowcode v6.0.10.0
Date: Sunday, August 03, 2014 16:17:54
Users: 1
Registered to: JohnCrow
Licence key: HRKH69
NOT FOR COMMERCIAL USE
http://www.flowcode.co.uk
Launching the compiler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V6\compilers\avr\batchfiles\avra.bat atmega1284p "H:\FLOWCO~1\PROJEC~1\LED Flash.elf" "H:\FLOWCO~1\PROJEC~1\LED Flash.c" "H:\FLOWCO~1\PROJEC~1\LED Flash.lst"
Launching compiler...

H:\FLOWCO~1\PROJEC~1>"C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega1284p -Os -funsigned-char -o "H:\FLOWCO~1\PROJEC~1\LED Flash.elf" "H:\FLOWCO~1\PROJEC~1\LED Flash.c" -lm

H:\FLOWCO~1\PROJEC~1>"C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objdump.exe" -S "H:\FLOWCO~1\PROJEC~1\LED Flash.elf" 1>"H:\FLOWCO~1\PROJEC~1\LED Flash.lst"

H:\FLOWCO~1\PROJEC~1>"C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-size.exe" -B -d "H:\FLOWCO~1\PROJEC~1\LED Flash.elf"
text data bss dec hex filename
792 0 22 814 32e H:\FLOWCO~1\PROJEC~1\LED Flash.elf

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V6\compilers\avr\batchfiles\avrb.bat "H:\FLOWCO~1\PROJEC~1\LED Flash.elf" "H:\FLOWCO~1\PROJEC~1\LED Flash.hex" "H:\FLOWCO~1\PROJEC~1\LED Flash.cof"

H:\FLOWCO~1\PROJEC~1>"C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom "H:\FLOWCO~1\PROJEC~1\LED Flash.elf" "H:\FLOWCO~1\PROJEC~1\LED Flash.hex"

HEX file creation successful!

H:\FLOWCO~1\PROJEC~1>"C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom "H:\FLOWCO~1\PROJEC~1\LED Flash.elf" "H:\FLOWCO~1\PROJEC~1\LED Flash.cof"

COFF file creation successful!

Launching the programmer...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V6\compilers\avr\batchfiles\avrc.bat AVRDUDE m1284p atmega1284p "H:\FLOWCO~1\PROJEC~1\LED Flash.hex" "LED Flash.hex" 0 255 255 255

H:\FLOWCO~1\PROJEC~1>"C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\BATCHF~1\..\bin\avrdude.exe" -p m1284p -P usb -c avrispmkii -U flash:w:"LED Flash.hex"
avrdude.exe: AVR Part "m1284p" not found.

Valid parts are:
m6450 = ATMEGA6450 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:11732]
m3250 = ATMEGA3250 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:11543]
m645 = ATMEGA645 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:11354]
m325 = ATMEGA325 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:11165]
usb1287 = AT90USB1287 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:10977]
usb1286 = AT90USB1286 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:10788]
usb647 = AT90USB647 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:10599]
usb646 = AT90USB646 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:10409]
t84 = ATtiny84 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:10226]
t44 = ATtiny44 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:10044]
t24 = ATtiny24 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:9862]
m2561 = ATMEGA2561 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:9669]
m2560 = ATMEGA2560 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:9476]
m1281 = ATMEGA1281 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:9288]
m1280 = ATMEGA1280 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:9099]
m640 = ATMEGA640 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:8911]
t85 = ATtiny85 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:8730]
t45 = ATtiny45 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:8551]
t25 = ATtiny25 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:8371]
pwm3b = AT90PWM3B [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:8190]
pwm2b = AT90PWM2B [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:8007]
pwm3 = AT90PWM3 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:7824]
pwm2 = AT90PWM2 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:7640]
t2313 = ATtiny2313 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:7453]
m328p = ATMEGA328P [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:7265]
m168 = ATMEGA168 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:7077]
m88 = ATMEGA88 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:6891]
m48 = ATMEGA48 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:6704]
t861 = ATTINY861 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:6516]
t461 = ATTINY461 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:6327]
t261 = ATTINY261 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:6138]
t26 = ATTINY26 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:5981]
m8535 = ATMEGA8535 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:5823]
m8515 = ATMEGA8515 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:5665]
m8 = ATMEGA8 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:5505]
m161 = ATMEGA161 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:5365]
m32 = ATMEGA32 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:5190]
m6490 = ATMEGA6490 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:4997]
m649 = ATMEGA649 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:4812]
m3290 = ATMEGA3290 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:4629]
m329 = ATMEGA329 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:4444]
m169 = ATMEGA169 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:4264]
m163 = ATMEGA163 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:4121]
m162 = ATMEGA162 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:3925]
m644p = ATMEGA644P [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:3734]
m644 = ATMEGA644 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:3543]
m324p = ATMEGA324P [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:3351]
m164p = ATMEGA164P [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:3159]
m16 = ATMEGA16 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:2981]
c128 = AT90CAN128 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:2790]
m128 = ATMEGA128 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:2612]
m64 = ATMEGA64 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:2431]
m103 = ATMEGA103 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:2291]
8535 = AT90S8535 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:2170]
8515 = AT90S8515 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:2056]
4434 = AT90S4434 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:1973]
4433 = AT90S4433 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:1849]
2343 = AT90S2343 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:1725]
2333 = AT90S2333 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:1640]
2313 = AT90S2313 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:1527]
4414 = AT90S4414 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:1414]
1200 = AT90S1200 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:1299]
t15 = ATtiny15 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:1166]
t13 = ATtiny13 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:993]
t12 = ATtiny12 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:860]
t11 = ATtiny11 [C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\avr\bin\avrdude.conf:796]


Error returned from [avrdude]
.
C:\Program Files (x86)\Matrix Multimedia\Flowcode V6\compilers\avr\batchfiles\avrc.bat reported error code 1


FINISHED

The AVR1284 component file is present and is not corrupted. Tried an earlier FC6 version with the same results.

Simple LED Flasher Test Program
LED Flash.fcfx
(4.05 KiB) Downloaded 265 times
The same program / settings works fine under FC5
1 in 10 people understand binary, the other one doesn't !

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: AVR 1284p Error

Post by Benj »

Hi John,

We have recently upgraded to the latest AVRdude software to help better support Arduino devices and this also seems to fix the problem your having.

Extract the contents of the archive into your "Flowcode 6\compilers\avr\bin" directory and hopefully this should resolve the issue.
AVRdude.zip
(531.65 KiB) Downloaded 328 times

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: AVR 1284p Error

Post by JohnCrow »

Thanks Benj
Just tried the new files, all works fine now.
1 in 10 people understand binary, the other one doesn't !

Post Reply