• [^] # Re: lapin compris

    Posté par (site web personnel) . En réponse au journal HWA : accéder au matériel autrement. Évalué à 1.

    J'ai produit un exécutable.

    LANG=C make -k clean all
    Rebuilding deps...
    rm -rf build
    find . '(' \
     -name '*~' \
     -o -name '*.cp.*' \
     -o -name '*.pyc' \
     ')' -exec rm {} ';'
    avr-gcc -mmcu=attiny44 -std=c99 -Wall -Os -DFUSE_LB=0xE2 -DFUSE_HB=0xDF -DFUSE_EB=0xFE -DHW_DEVICE=attiny44 -I/home/indy/dev/hwa -c demo-03.c -o build/demo-03.attiny44.o
    avr-gcc -mmcu=attiny44 -std=c99 -Wall -Os -DFUSE_LB=0xE2 -DFUSE_HB=0xDF -DFUSE_EB=0xFE -DHW_DEVICE=attiny44 -I/home/indy/dev/hwa -c demo-03b.c -o build/demo-03b.attiny44.o
    avr-gcc -mmcu=attiny44 -Wl,-Map,build/out.map,--cref -Wl,--gc-sections -o build/out.elf build/demo-03.attiny44.o build/demo-03b.attiny44.o 
    avr-objcopy --gap-fill=0xFF -R .eeprom -O ihex build/out.elf build/out.hex
    avr-objcopy -R .eeprom -O binary --gap-fill=0xFF --pad-to 0x1000 build/out.elf build/out.bin
    avr-objdump -h -S build/out.elf >build/out.lst
    avr-size build/out.elf
     text data bss dec hex filename
     220 0 2 222 de build/out.elf
    Compilation finished at Fri Jun 29 12:44:21
    
    
    build/demo-03.attiny44.o: file format elf32-avr
    SYMBOL TABLE:
    00000000 l df *ABS* 00000000 demo-03.c
    00000000 l d .text 00000000 .text
    00000000 l d .data 00000000 .data
    00000000 l d .bss 00000000 .bss
    0000003e l *ABS* 00000000 __SP_H__
    0000003d l *ABS* 00000000 __SP_L__
    0000003f l *ABS* 00000000 __SREG__
    00000000 l *ABS* 00000000 __tmp_reg__
    00000001 l *ABS* 00000000 __zero_reg__
    00000000 l O .bss 00000001 direction.1643
    00000001 l O .bss 00000001 pwm.1642
    00000000 l d .text.startup 00000000 .text.startup
    00000000 l d .comment 00000000 .comment
    00000000 g F .text 00000054 __vector_11
    00000054 g F .text 00000016 ioinit
    00000000 g F .text.startup 00000014 main
    00000000 *UND* 00000000 ioinit2
    00000000 *UND* 00000000 __do_clear_bss
    
    
    build/demo-03b.attiny44.o: file format elf32-avr
    SYMBOL TABLE:
    00000000 l df *ABS* 00000000 demo-03b.c
    00000000 l d .text 00000000 .text
    00000000 l d .data 00000000 .data
    00000000 l d .bss 00000000 .bss
    0000003e l *ABS* 00000000 __SP_H__
    0000003d l *ABS* 00000000 __SP_L__
    0000003f l *ABS* 00000000 __SREG__
    00000000 l *ABS* 00000000 __tmp_reg__
    00000001 l *ABS* 00000000 __zero_reg__
    00000000 l d .comment 00000000 .comment
    00000000 g F .text 00000016 ioinit2
    
    

    « J'ai pas Word, j'ai pas Windows, et j'ai pas la télé ! »