avr EB-00-2

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
ikke
Posts: 13
Joined: Sat Dec 12, 2009 6:08 pm

avr EB-00-2

Post by ikke »

Hello
I have trouble sending a program to the board.I always get the same message back (see below) when I compile the code.
I tried it with a ATMEGA88 and than it worked well.But the ATM88 could not get programmed but Igot no error message. Then i tried AVR STUDIO4 and loaded the HEX-file. Then it worked well?

Code: Select all

File name:     D:\PAPA\flowcode\voorbeelden\test1bis.c
Generated by:  Flowcode v3.3.5.45
Date:          Monday, December 14, 2009 15:25:19
Licence:       Professional
Registered to: Vandecruys Johan


http://www.matrixmultimedia.com



Launching the compiler...

C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avra.bat atmega324 "D:\PAPA\flowcode\VOORBE~1\test1bis.elf" "D:\PAPA\flowcode\VOORBE~1\test1bis.c" "D:\PAPA\flowcode\VOORBE~1\test1bis.lst"


D:\PAPA\flowcode\voorbeelden>"C:\PROGRA~1\MATRIX~1\FLOWCO~1\Tools\MX_bats\..\bin\avr-gcc.exe" -mmcu=atmega324 -Os -funsigned-char -o "D:\PAPA\flowcode\VOORBE~1\test1bis.elf" "D:\PAPA\flowcode\VOORBE~1\test1bis.c" 
unknown MCU 'atmega324' 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
   atmega8hva
   at90pwm1
   at90pwm2
   at90pwm3
   avr5
   atmega16
   atmega161
   atmega162
   atmega163
   atmega164p
   atmega165
   atmega165p
   atmega168
   atmega169
   atmega169p
   atmega32
   atmega323
   atmega324p
   atmega325
   atmega325p
   atmega3250
   atmega3250p
   atmega329
   atmega329p
   atmega3290
   atmega3290p
   atmega406
   atmega64
   atmega640
   atmega644
   atmega644p
   atmega645
   atmega6450
   atmega649
   atmega6490
   atmega128
   atmega1280
   atmega1281
   atmega16hva
   at90can32
   at90can64
   at90usb82
   at90can128
   at90usb162
   at90usb646
   at90usb647
   at90usb1286
   at90usb1287
   at94k
   avr6
   atmega2560
   atmega2561
   avr1
   at90s1200
   attiny11
   attiny12
   attiny15
   attiny28
D:\PAPA\flowcode\VOORBE~1\test1bis.c:1: error: MCU 'atmega324' supported for assembler only
In file included from D:\PAPA\flowcode\VOORBE~1\test1bis.c:45:
c:/progra~1/matrix~1/flowco~1/tools/bin/../avr/include/avr\io.h:356:6: warning: #warning "device type not defined"
In file included from D:\PAPA\flowcode\VOORBE~1\test1bis.c:47:
c:/progra~1/matrix~1/flowco~1/tools/bin/../avr/include/avr\eeprom.h:173:3: error: #error "No write enable bit known for this device's EEPROM."
D:\PAPA\flowcode\VOORBE~1\test1bis.c: In function 'FCD_Switches0_ReadState':
D:\PAPA\flowcode\VOORBE~1\test1bis.c:168: error: 'DDRD' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:168: error: (Each undeclared identifier is reported only once
D:\PAPA\flowcode\VOORBE~1\test1bis.c:168: error: for each function it appears in.)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:169: error: 'PIND' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c: In function 'FCD_Switches0_WaitUntilHigh':
D:\PAPA\flowcode\VOORBE~1\test1bis.c:199: error: 'DDRD' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:201: error: 'PIND' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c: In function 'FCD_Switches0_WaitUntilLow':
D:\PAPA\flowcode\VOORBE~1\test1bis.c:232: error: 'DDRD' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:234: error: 'PIND' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c: In function 'main':
D:\PAPA\flowcode\VOORBE~1\test1bis.c:249: error: 'MCUSR' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:250: error: 'WDTCSR' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:261: error: 'DDRD' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:262: error: 'PIND' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:276: error: 'DDRB' undeclared (first use in this function)
D:\PAPA\flowcode\VOORBE~1\test1bis.c:277: error: 'PORTB' undeclared (first use in this function)

Error returned from [avr-gcc.exe]

Return code = 1

Flowcode kan de C-code niet vertalen vanwege de volgende fout:


Als de flowchart C-code bevat, controleer die dan zorgvuldig. Als de flowchart geen C-code bevat of als die gegarandeerd vrij is van fouten, neem dan contact op met de technische ondersteuning.

FINISHEDcode]

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: avr EB-00-2

Post by Sean »

There is a patch to update Flowcode for AVR. This adds some new devices and components, and resolves the target naming issues (Atmega324 is updated to Atmega324p etc.)

http://www.matrixmultimedia.com/softwar ... pdates.zip

Fixing the device name problem will resolve all the other compiler issues.

The Atmega88 should program correctly from your current version of Flowcode. It would seem that the compilation was completed successfully, generating the hex file, but the programming failed (this usually generates an error message). There are several postings on the forum regarding connection to the AVRISPmkII programmer, especially if AVR Studio is already installed and working (there are two conflicting USB drivers):

http://www.matrixmultimedia.com/mmforum ... kii#p15877

Post Reply