Bonjour.
I have a problΓ©me to create and transfert Files "Hex" create with in Atmel Board with Flowcode and AVR studio
With Files exemples TUT-01 and select Atmega324 ( Atmega324P not list )
The message error :
File name: C:\CDEAO\Matrix Multimedia\Tutorial franΓ§ais\TUT_01.c
Generated by: Flowcode v3.3.5.45
Date: Wednesday, January 07, 2009 16:19:59
Licence: Professional
***UNREGISTERED***
http://www.matrixmultimedia.com
Launching the compiler...
C:\CDEAO\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avra.bat atmega324 "C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.elf" "C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c" "C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.lst"
C:\CDEAO\Matrix Multimedia\Tutorial fran‡ais>"C:\CDEAO\MATRIX~1\FLOWCO~3\Tools\MX_bats\..\bin\avr-gcc.exe" -mmcu=atmega324 -Os -funsigned-char -o "C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.elf" "C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.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
C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:1: error: MCU 'atmega324' supported for assembler only
In file included from C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:46:
c:/cdeao/matrix~1/flowco~3/tools/bin/../avr/include/avr\io.h:356:6: warning: #warning "device type not defined"
In file included from C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:48:
c:/cdeao/matrix~1/flowco~3/tools/bin/../avr/include/avr\eeprom.h:173:3: error: #error "No write enable bit known for this device's EEPROM."
C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c: In function 'main':
C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:98: error: 'MCUSR' undeclared (first use in this function)
C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:98: error: (Each undeclared identifier is reported only once
C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:98: error: for each function it appears in.)
C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:99: error: 'WDTCSR' undeclared (first use in this function)
C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:106: error: 'DDRA' undeclared (first use in this function)
C:\CDEAO\MATRIX~1\TUTORI~1\TUT_01.c:107: error: 'PORTA' undeclared (first use in this function)
Error returned from [avr-gcc.exe]
Return code = 1
Flowcode a Γ©tΓ© incapable de traduire l'algorigramme en code C Γ cause des erreurs suivantes :
Si votre algorigramme contient du code C, examinez ce code soigneusement. Si votre algorigramme ne contient aucun code C ou si vous avez minutieusement rΓ©visΓ© le code, contactez la technique.
FINISHED
The Processor AVR is ATMEGA324P in Atmel AVR Board.
With Avr studio : Read and Write the program demo in Atmega324P : it is ok .
AVR Studio : V 4B623 : the AVRISP mkII : upgrade : it is OK.
I have WinAVR 20081114rc1 : it is possible upgrade the version in Flowcode AVR ?
With Select Atmega32 in flowcode AVR :
the message error :
File name: C:\CDEAO\Matrix Multimedia\Flowcode_AVR\examples\TUT_01.c
Generated by: Flowcode v3.3.5.45
Date: Wednesday, January 07, 2009 18:16:46
Licence: Professional
***UNREGISTERED***
http://www.matrixmultimedia.com
Launching the compiler...
C:\CDEAO\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avra.bat atmega32 "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.elf" "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.c" "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.lst"
C:\CDEAO\Matrix Multimedia\Flowcode_AVR\examples>"C:\CDEAO\MATRIX~1\FLOWCO~3\Tools\MX_bats\..\bin\avr-gcc.exe" -mmcu=atmega32 -Os -funsigned-char -o "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.elf" "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.c"
C:\CDEAO\Matrix Multimedia\Flowcode_AVR\examples>"C:\CDEAO\MATRIX~1\FLOWCO~3\Tools\MX_bats\..\bin\avr-objdump.exe" -S "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.elf" 1>"C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.lst"
Compilation successful!
Return code = 0
Launching the linker/assembler...
C:\CDEAO\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avrb.bat "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.elf" "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.hex"
C:\CDEAO\Matrix Multimedia\Flowcode_AVR\examples>"C:\CDEAO\MATRIX~1\FLOWCO~3\Tools\MX_bats\..\bin\avr-objcopy" -O ihex -R .eeprom "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.elf" "C:\CDEAO\MATRIX~1\FLOWCO~3\examples\TUT_01.hex"
HEX file creation successful!
Return code = 0
Launching the programmer...
C:\CDEAO\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avrc.bat m32 avrispmkii usb "TUT_01.hex" 0 2 223 -1 -1
C:\CDEAO\Matrix Multimedia\Flowcode_AVR\examples>"C:\CDEAO\MATRIX~1\FLOWCO~3\Tools\MX_bats\..\AVRDUDEusb\avrdude.exe" -p m32 -P usb -c avrispmkii -U flash:w:"TUT_01.hex"
avrdude.exe: usbdev_open(): did not find any USB device "usb"
Error returned from [avrdude]
Return code = 1
Flowcode a Γ©tΓ© incapable de transfΓ©rer l'algorigramme dans le microcontroleur. VΓ©rifier les options du programmateur et la connexion physique.
FINISHED
Thanks.
B MAIROT
Flowcode AVR with AVRISP mkII
-
- Valued Contributor
- Posts: 548
- Joined: Tue Jun 26, 2007 11:23 am
- Has thanked: 6 times
- Been thanked: 44 times
Re: Flowcode AVR with AVRISP mkII
Hello,
Here are two updated fcd files that should solve the problem you have encountered with the m324 and a similar problem with the m164.
Copying the files into the FCD folder of your Flowcode_AVR installation, overwriting the original files, will provide the 'p' suffix required by the compiler.
The programmer error message returned from the ATmega32 compilation indicates that the Flowcode programming utility (AVRDUDE) can not find the programmer on the USB
The AVRISPmkII drivers supplied with Flowcode_AVR are not compatible with the drivers supplied by AVR Studio. If you already have AVR Studio installed, the AVRISPmkII programmer will use the AVR Studio drivers and can not communicate with the Flowcode programming utility.
To avoid the requirement for driver swapping if AVR Studio is installed, it is possible to change the Flowcode parameters to program via the AVR Studio programming utility (STK500).
In the Programmer section of the Chip -> Compiler options menu, the following parameters will redirect the programming to AVR Studio. The location setting is an example taken from my machine using the default installation of AVR Studio.
Location:
C:\Program Files\Atmel\AVR Tools\STK500\STK500.exe
Parameters:
-cUSB -d%t -e -if"%D\%f.hex" -pf -vf
If you use this option, you can also use AVR Studio to program the device fuse settings and download programmer firmware upgrades as they are made available.
The alternative is to uninstall the AVR Studio driver and select the Flowcode supplied driver when you reconnect the AVRISPmkII programmer (making the programmer unavailable to AVR Studio).
Here are two updated fcd files that should solve the problem you have encountered with the m324 and a similar problem with the m164.
Copying the files into the FCD folder of your Flowcode_AVR installation, overwriting the original files, will provide the 'p' suffix required by the compiler.
The programmer error message returned from the ATmega32 compilation indicates that the Flowcode programming utility (AVRDUDE) can not find the programmer on the USB
The AVRISPmkII drivers supplied with Flowcode_AVR are not compatible with the drivers supplied by AVR Studio. If you already have AVR Studio installed, the AVRISPmkII programmer will use the AVR Studio drivers and can not communicate with the Flowcode programming utility.
To avoid the requirement for driver swapping if AVR Studio is installed, it is possible to change the Flowcode parameters to program via the AVR Studio programming utility (STK500).
In the Programmer section of the Chip -> Compiler options menu, the following parameters will redirect the programming to AVR Studio. The location setting is an example taken from my machine using the default installation of AVR Studio.
Location:
C:\Program Files\Atmel\AVR Tools\STK500\STK500.exe
Parameters:
-cUSB -d%t -e -if"%D\%f.hex" -pf -vf
If you use this option, you can also use AVR Studio to program the device fuse settings and download programmer firmware upgrades as they are made available.
The alternative is to uninstall the AVR Studio driver and select the Flowcode supplied driver when you reconnect the AVRISPmkII programmer (making the programmer unavailable to AVR Studio).
-
- Posts: 19
- Joined: Fri Jul 27, 2007 2:56 pm
Re: Flowcode AVR with AVRISP mkII
Thanks.
I have to change the Flowcode parameters to program via the AVR Studio programming utility (STK500), and update Atmega324.FCd + Atmega164.fcd.
It is All Ready.
Bernard MAIROT
I have to change the Flowcode parameters to program via the AVR Studio programming utility (STK500), and update Atmega324.FCd + Atmega164.fcd.
It is All Ready.
Bernard MAIROT