Newbie no contact with E-block

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
Kenta
Posts: 9
Joined: Wed Mar 16, 2011 12:00 pm
Location: Ulricehamn, Sweden
Contact:

Newbie no contact with E-block

Post by Kenta »

Hi everybody

I have just get my E-block and Flowcode 4 for AVR installed.

This is my first experience with this and I have trouble to get the code into my e-block

I wounder how should I setup the compiler so the code is will be tranferd to the processor.

This is what information I get when I compile to Chip.


File name: C:\Users\Kent Andersson\Documents\Flowcode\Examples\TUT_01.c
Generated by: Flowcode v4.3.6.61
Date: Wednesday, March 23, 2011 18:13:56
Licence: Professional
Registered to: Kent Andersson


http://www.matrixmultimedia.com


Launching the compiler...
C:\fcw4\Tools\MX_bats\avra.bat atmega324p "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.elf" "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.c" "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.lst"

C:\Users\Kent Andersson\Documents\Flowcode\Examples>"C:\fcw4\Tools\MX_bats\..\bin\avr-gcc.exe" -mmcu=atmega324p -Os -funsigned-char -o "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.elf" "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.c" -lm

C:\Users\Kent Andersson\Documents\Flowcode\Examples>"C:\fcw4\Tools\MX_bats\..\bin\avr-objdump.exe" -S "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.elf" 1>"C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.lst"

C:\Users\Kent Andersson\Documents\Flowcode\Examples>"C:\fcw4\Tools\MX_bats\..\bin\avr-size.exe" -B -d "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.elf"
text data bss dec hex filename
358 0 22 380 17c C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.elf

Compilation successful!

Return code = 0

Launching the linker/assembler...
C:\fcw4\Tools\MX_bats\avrb.bat "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.elf" "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.hex" "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.cof"

C:\Users\Kent Andersson\Documents\Flowcode\Examples>"C:\fcw4\Tools\MX_bats\..\bin\avr-objcopy" -O ihex -R .eeprom "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.elf" "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.hex"

HEX file creation successful!

C:\Users\Kent Andersson\Documents\Flowcode\Examples>"C:\fcw4\Tools\MX_bats\..\bin\avr-objcopy" -O coff-avr -R .eeprom "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.elf" "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.cof"

COFF file creation successful!

Return code = 0

Launching the programmer...
C:\fcw4\Tools\AVRDUDEusb\avrdude.exe AVRDUDE m324p atmega324p "C:\Users\KENTAN~1\DOCUME~1\Flowcode\Examples\TUT_01.hex" "TUT_01.hex" 0 3 223 -1 -1
C:\fcw4\Tools\AVRDUD~1\avrdude.exe: unknown option -- 1
Usage: avrdude.exe [options]
Options:
-p <partno> Required. Specify AVR device.
-b <baudrate> Override RS-232 baud rate.
-B <bitclock> Specify JTAG/STK500v2 bit clock period (us).
-C <config-file> Specify location of configuration file.
-c <programmer> Specify programmer type.
-D Disable auto erase for flash memory
-i <delay> ISP Clock Delay [in microseconds]
-P <port> Specify connection port.
-F Override invalid signature check.
-e Perform a chip erase.
-O Perform RC oscillator calibration (see AVR053).
-U <memtype>:r|w|v:<filename>[:format]
Memory operation specification.
Multiple -U options are allowed, each request
is performed in the order specified.
-n Do not write anything to the device.
-V Do not verify.
-u Disable safemode, default when running from a script.
-s Silent safemode operation, will not ask you if
fuses should be changed back.
-t Enter terminal mode.
-E <exitspec>[,<exitspec>] List programmer exit specifications.
-x <extended_param> Pass <extended_param> to programmer.
-y Count # erase cycles in EEPROM.
-Y <number> Initialize erase cycle # in EEPROM.
-v Verbose output. -v -v for more.
-q Quell progress output. -q -q for less.
-? Display this usage.

avrdude project: <URL:http://savannah.nongnu.org/projects/avrdude>

Return code = 0

FINISHED

I hope anybody can put me in right direction.

Regards
Kent

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: Newbie no contact with E-block

Post by DavidA »

Hi Kent,

Could you post this in the Flowcode V4 forum sub section please?

If you need access to the Flowcode v4 forums, you will need your forum account upgrading; the walkthrough is here:

http://www.matrixmultimedia.com/support ... f=29&t=602

It looks like your programmer is linking directly to AVRDUDE than through the batch file like it is supposed to.

Try Clicking the Restore Defaults button throug the Chip >> Configure section on Flowcodes main menu.

Post Reply