Може ли уорнингите за указателите да правят проблема?
avr-gcc -Wall -o MP3.elf MP3.c -mmcu=atmega128
In file included from mmc.c:31,
from MP3.c:21:
mmc.h:35:1: warning: multi-line comment
MP3.c: In function 'load_next_file':
MP3.c:190: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness
MP3.c:190: warning: pointer targets in assignment differ in signedness
MP3.c:191: warning: pointer targets in passing argument 1 of 'rprintfStr' differ in signedness
MP3.c: In function 'load_prev_file':
MP3.c:226: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness
MP3.c:226: warning: pointer targets in assignment differ in signedness
MP3.c:227: warning: pointer targets in passing argument 1 of 'rprintfStr' differ in signedness
MP3.c: In function 'main':
MP3.c:506: warning: label 'initagain' defined but not used
MP3.c:371: warning: label 'loop' defined but not used
MP3.c:272: warning: unused variable 'j'
avr-objcopy -O ihex -R.eeprom ./MP3.elf ./MP3.hex
avrdude -P /dev/ttyS0 -e -p m128 -U flash:w:./$(APPLICATION).hex -U efuse:w:0xff:m -U hfuse:w:0xC1:m -U lfuse:w:0x1f:m -c ponyser -v
avrdude: Version 5.2, compiled on Oct 19 2006 at 17:24:52
Copyright (c) 2000-2005 Brian Dean,
http://www.bdmicro.com/
System wide configuration file is "/etc/avrdude.conf"
User configuration file is "/home/sstilqnov/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyS0
Using Programmer : ponyser
AVR Part : ATMEGA128
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 4 12 64 0 no 4096 8 0 9000 9000 0xff 0xff
flash 33 6 128 0 yes 131072 256 512 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : SERBB
Description : design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9702
avrdude: safemode: lfuse reads as 1F
avrdude: safemode: hfuse reads as C1
avrdude: safemode: efuse reads as FF
avrdude: erasing chip
avrdude: reading input file "./MP3.hex"
avrdude: input file ./MP3.hex auto detected as Intel Hex
avrdude: writing flash (54088 bytes):
Writing | ################################################## | 100% 23.69s
avrdude: 54088 bytes of flash written
avrdude: verifying flash memory against ./MP3.hex:
avrdude: load data flash data from input file ./MP3.hex:
avrdude: input file ./MP3.hex auto detected as Intel Hex
avrdude: input file ./MP3.hex contains 54088 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 21.72s
avrdude: verifying ...
avrdude: 54088 bytes of flash verified
avrdude: reading input file "0xff"
avrdude: writing efuse (1 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xff:
avrdude: load data efuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip efuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of efuse verified
avrdude: reading input file "0xC1"
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xC1:
avrdude: load data hfuse data from input file 0xC1:
avrdude: input file 0xC1 contains 1 bytes
avrdude: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0x1f"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0x1f:
avrdude: load data lfuse data from input file 0x1f:
avrdude: input file 0x1f contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: safemode: lfuse reads as 1F
avrdude: safemode: hfuse reads as C1
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK
avrdude done. Thank you.