Note that there are some explanatory texts on larger screens.

plurals
  1. POatmega8 program size limit?
    primarykey
    data
    text
    <p>I am new to atmega8. I convert some old freesacle code into atmega8. but seems my chip can not hold code more than 2400 bytes? below is result, when code is 2412 bytes... all things become mess. </p> <p>code below avrdude is comes from "cat /dev/ttyUSB0". my debug informations.</p> <pre><code>avrdude: verifying ... avrdude: 2412 bytes of flash verified avrdude: safemode: Fuses OK avrdude done. Thank you. 55432111001-0000 6Gn�H(�h�X0443234554321190 6Gn�H (�h�X0443234554321100-FD-90-6F55432111001-0000 6Gn�H (�h�X0443234554321190 6Gn�H(�h�X0443234554321100-FD-90-6F^C </code></pre> <p>but if i reduced code(only audio data), i got right result.</p> <pre><code>avrdude: verifying ... avrdude: 2312 bytes of flash verified avrdude: safemode: Fuses OK avrdude done. Thank you. AVR-IrDA-Tone-Audio start. version 1.2 --IrDA-- Bin: 1001-0000 Hex: 90 Complete Hex: 00-FD-90-6F </code></pre> <p>all hfuse, lfuse, lock bits are original value. my code might be 6k with some audio data. </p> <p>if it is due to boot flash section?</p> <p>Addtion: --------------------------------------------------------------------------------------------------</p> <p>I change crystal to 8M now.</p> <pre><code>● ll h8-* -rw-rw-r-- 1 eexp eexp 933 9月 22 00:27 h8-reduce.c -rw-rw-r-- 1 eexp eexp 14K 9月 22 00:26 h8-org.c ● cp h8-org.c h8.c ● avr.sh main.c ...... avrdude: 5272 bytes of flash verified </code></pre> <p>now all goes mess.</p> <pre><code>● cp h8-reduce.c h8.c ● avr.sh main.c ..... avrdude: 1872 bytes of flash verified </code></pre> <p>now all goes right, but i lost almost all audio data.</p> <p>below is h8.c.</p> <pre><code>● head h8.c const unsigned char h8[] = { 36,14,0,0,129,129,128,129,130,127,126,128,128,127,128,130,131,128,127,127,127,126,127,129,130,130,129,129,128,128,128,128,128,126,126,129,128,127,127,130,133,130,126,126,129,128,125,127,128,129,128,127,129,128,127,127,127,128,128,129,127,127,129,128,130,130,128,128,127,126,128,128,128,130,129,128,129,126,126,125,127,132,130,127,126,129,131,127,127,133,133,127,122,125,129,130,127,127,130,129, 126,125,127,128,129,128,128,128,128,127,127,129,128,129,129,128,126,127,129,127,128,127,128,130,129,129,128,128,127,127,129,130,128,128,129,129,127,127,128,128,128,128,128,128,126,126,129,129,127,129,130,130,126,126,128,128,127,128,131,130,127,126,126,128,129,125,128,130,131,128,126,129,128,129,125,126,130,129,131,130,131,129,125,128,129,131,130,127,130,129,127,128,127,129,128,126,126,127,128,126, 127,127,128,128,128,127,127,127,127,127,129,128,129,128,128,129,129,128,128,129,128,128,128,129,0xff, }; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload