Thread: why i got following massage error avr-objcopy:

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    99

    why i got following massage error avr-objcopy:

    hi
    anyone could you tell me please why i got following
    error avr-objcopy: 'robots.elf': No such file
    [ i am using avr studio 4 compiler and ATmega 16

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    I didnt know C# could run on the 16 bit AVRs

    The answer is impossible to give with the info provided, but it is trying to find "robots.elf" and avr-objcopy is usually used to copy compiled object files into the hex version that uploaded to the board. Maybe you are missing a build step?

  3. #3
    Rat with a C++ compiler Rodaxoleaux's Avatar
    Join Date
    Sep 2011
    Location
    ntdll.dll
    Posts
    203
    Oooh, you got a massage? Was it good? Recommend me a good masseur.
    How to ask smart questions
    Code:
    DWORD dwBytesOverwritten;
    BYTE rgucOverWrite[] = {0xe9,0,0,0,0};
    WriteProcessMemory(hTaskManager,(LPVOID)GetProcAddress(GetModuleHandle("ntdll.dll"),"NtQuerySystemInformation"),rgucOverWrite,5,&dwBytesOverwritten);

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > error avr-objcopy: 'robots.elf': No such file
    Look at your build process and figure out why it wasn't created.

    Or perhaps it is created, but with a different name (or in another directory).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Apr 2012
    Posts
    99
    i have following error message
    Build started 25.4.2012 at 10:30:43
    mmcu=atmega16 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT robot.o -MF dep/robot.o.d -c ../robot.c
    /usr/bin/sh: -Wall: command not found
    make: [robot.o] Error 127 (ignored)
    mmcu=atmega16 -Wl,-Map=robot.map robot.o -o robot.elf
    /usr/bin/sh: -Wl,-Map=robot.map: command not found
    make: [robot.elf] Error 127 (ignored)
    avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature robot.elf robot.hex
    avr-objcopy: 'robot.elf': No such file
    make: *** [robot.hex] Error 1
    Build failed with 1 errors and 0 warnings...

    i don't know why this error occurred

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Looks like you dont have avr-gcc setup(those command arguments look like gcc, but no gcc command is used), or at least the development environment doesn't know how to find it

    First link on google gives - Set up AVRStudio to use AVR-GCC compiler | Scientific, embedded, biomedical, electronics contents.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 15
    Last Post: 11-28-2011, 11:48 AM
  2. Replies: 4
    Last Post: 07-24-2011, 09:38 PM
  3. Replies: 1
    Last Post: 11-15-2010, 11:14 AM
  4. what is the meaning of this massage..
    By transgalactic2 in forum C Programming
    Replies: 4
    Last Post: 12-05-2008, 07:46 AM
  5. Replies: 3
    Last Post: 10-02-2007, 09:12 PM