MAIN.HEX COMPILE ERROR??

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
komisarios
Posts: 8
Joined: Sun Jan 27, 2008 1:54 am

MAIN.HEX COMPILE ERROR??

Post by komisarios » Sun Jan 27, 2008 2:04 am

HELLO ALL,

At the end of the compilation using the ''make'' command, there are 3 errors that say (red):

objcopy -j .text -j .data -0 ihex main.bin main.hex
checksize main.bin 8192 1024

checksize: awk :command not found
checksize: [:-gt:: unary operator expected bytes <data=>
checksize: [:-gt:: unary operator expected bytes


Is it something wrong????

Also, i don;t know what fuses should i change.

Thanks

Grendel
Rank 4
Rank 4
Posts: 167
Joined: Sat Dec 16, 2006 9:53 pm
Location: Oregon, USA
Contact:

Post by Grendel » Sun Jan 27, 2008 10:02 am

Edit the checksize script and change awk to gawk -- that should fix it.

komisarios
Posts: 8
Joined: Sun Jan 27, 2008 1:54 am

fuse change?

Post by komisarios » Mon Jan 28, 2008 7:50 am

Thanks for the help

BTW does anyone know which fuse should i change for avr-usb??

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Fri May 09, 2008 11:06 am

You can also simply delete the call to the checksize script.

The fuse values depend on the chip you use. See the examples in the latest version of the driver (http://www.obdev.at/products/avrusb/download.html) for example values and more info. The fuse values can be found in the Makefile.

Post Reply