'AVR ELF'에 해당되는 글 1건

  1. 2011.07.27 AVR Studio 에서 ELF 생성시 에러발생
embeded/AVR (ATmega,ATtiny)2011. 7. 27. 15:51
AVR Studio의 ISP 메뉴에서 보면
"ELF Production File Format" 이라는 항목이 존재한다.
이 ELF가 Unix/Linux의 ELF 인지는 모르겠지만 -_-
아무튼 퓨즈비트/락비트 전부 하나의 파일에 넣는 매우 편한 방법중에 하나이다.


그런데 이거 생성을 하려고 했더니...
"A Problem occured when executing the command. See the command output for more info."


"The contents of the HEX file does not fit in the selected device"


요따구로 배를짼다 -_-

이러한 문제가 발생하는 건
1. 파일 경로상에 한글이 들어간 경우(AVR Studio 4 V4.1 Build 684 에서 테스트시 한글 경로 문제 없음)
2. WinAVR이 설치된 경우/ 혹은 경로가 이상하게 들어간경우
   (C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin 두개의 패스가 들어가 있는데
    WinAVR 버전 문제이거나, utils\bin 까지 잡혀서 인지는 미지수..)

머.. 안되면 둘다 해봐야 하려나?


---
흐음.. ELF인건 맞는듯 -ㅁ-
그러면.. AVR Studio에서 이걸 인식해서 따로 저장하는 거겠....지?
설마 -_- AVR 칩 자체적으로 ELF를 인식하는 것 일리는 -ㅁ-!
(머.. 어짜피 퓨즈비트도 메모리의 특정 영역으로 몇 바이트만 잡아먹는거라면 충분히 가능하겠지만..)
$ readelf -a avrstudio.elf
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Atmel AVR 8-bit microcontroller
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          180 (bytes into file)
  Flags:                             0x85
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         4
  Size of section headers:           40 (bytes)
  Number of section headers:         6
  Section header string table index: 1

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .shstrtab         STRTAB          00000000 0001a4 000028 00      0   0  0
  [ 2] .text             PROGBITS        00000000 0001cc 004852 00  AX  0   0  2
  [ 3] .fuse             PROGBITS        00820000 004a1e 000003 00  WA  0   0  1
  [ 4] .lock             PROGBITS        00830000 004a21 000001 00  WA  0   0  1
  [ 5] .signature        PROGBITS        00840000 004a22 000003 00  WA  0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)

There are no section groups in this file.

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x0001cc 0x00000000 0x00000000 0x04852 0x04852 R E 0x1
  LOAD           0x004a1e 0x00820000 0x00820000 0x00003 0x00003 RW  0x1
  LOAD           0x004a21 0x00830000 0x00830000 0x00001 0x00001 RW  0x1
  LOAD           0x004a22 0x00840000 0x00840000 0x00003 0x00003 RW  0x1

 Section to Segment mapping:
  Segment Sections...
   00     .text
   01     .fuse
   02     .lock
   03     .signature

There is no dynamic section in this file.

There are no relocations in this file.

There are no unwind sections in this file.

No version information found in this file.
 
 

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

nop  (2) 2011.10.31
ATmega64 timer 설정  (0) 2011.10.28
IAR compiler 컴파일시 이미지 크기 보기  (3) 2011.07.25
PINA_Bit0 누구냐 넌! (IAR)  (0) 2011.03.31
AVR - PINA / PORTA / DDRA  (2) 2011.03.31
Posted by 구차니