<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=50&amp;t=24052&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2022-01-20T13:59:02+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=50&amp;t=24052&amp;mode</id>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2022-01-20T13:59:02+01:00</updated>
<published>2022-01-20T13:59:02+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234882#p234882</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234882#p234882"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234882#p234882"><![CDATA[
Uruchamianie samej biblioteki nie ma sensu. Trzeba napisać jakiś program główny (main.c).<br />Zaraz przetestuję z nowym projektem.<br />.......<br />Przetestowałem i jest OK czyli trzeba szukać w programie głównym, ale nie znalazłem tam nic <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><br /><br />O co chodzi z tym: main.c:(.text.uart_rx+0x0): multiple definition of `uart_rx'<br />W programie main.c nie ma wogóle definicji, są tylko wywołania funkcji.<br /><br />Po dodaniu do testowego programu wywyłania funkcji uar_rx błąd pojawia sie taki sam jak poprzednio.<br />[syntax=cpp]/*<br /> * main.c    ATtiny13A    F_CPU = 1000000 Hz<br /> * <br /> * Created on: 20.01.2022<br /> *     Author: Włodek<br />*/<br />// dołączanie systemowych plików nagłówkowych<br />#include &lt;avr/io.h&gt;<br />#include &lt;util/delay.h&gt;  <br />#include&quot;COM_read_Attiny13.c&quot;<br />  <br />// miejsce na dołączanie własnych plików<br /><br />// główna funkcja programu - main()<br />int main( void ) {<br />                            <br />// sekcja inicjalizacji peryferiów<br /><br />// główna pętla programu  <br />int x=0;<br />    while(1) {<br />      x=uart_rx();<br />    }<br /><br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 20 sty 2022, o 13:59</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2022-01-20T13:05:31+01:00</updated>
<published>2022-01-20T13:05:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234879#p234879</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234879#p234879"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234879#p234879"><![CDATA[
<div class="quotetitle">koczis_ws napisał(a):</div><div class="quotecontent"><br />Błąd dotyczy dołączonej biblioteki programowego UART do Tiny 13.<br /></div><br /><div class="quotetitle">Misiek_86 napisał(a):</div><div class="quotecontent"><br />coś takiego<br />Składnia: [ Pobierz ] [ Ukryj ]<br />język c<br />int main(void)<br /></div><br />nie może być.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 20 sty 2022, o 13:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2022-01-20T12:34:52+01:00</updated>
<published>2022-01-20T12:34:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234877#p234877</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234877#p234877"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234877#p234877"><![CDATA[
Te biblioteki mam w main.c i AS to wystarczało. Dopisałem je tu ale nadal jest problem:<br />[syntax=cpp]Release/main.o: In function `uart_rx':<br />main.c:(.text.uart_rx+0x0): multiple definition of `uart_rx'<br />Release/COM_read_Attiny13.o:COM_read_Attiny13.c:(.text.uart_rx+0x0): first defined here<br />collect2.exe: error: ld returned 1 exit status<br />----------------<br />ERROR[/syntax]<br />Ale to nieprawda???<br />[syntax=cpp]#include &lt;avr/io.h&gt;<br />#include &lt;stdlib.h&gt;     <br />#include &lt;util/delay.h&gt;<br />#define BAUD_RATE 9600<br />#define UART_RX_PIN 3<br />//#define FP 0.941e-6 // dla Tiny DIL8 110.7   <br />#define FP 1e-6 // dla Tiny SMD<br />#define UART_BIT_LENGTH (1/((double)BAUD_RATE) / FP)         <br /><br />// <br />int uart_rx(void)   <br />{   uint8_t rv = 0;        <br />    uint8_t i;         <br />                <br />    if (!(PINB &amp; _BV(UART_RX_PIN)))<br />        return -1;<br />    while (PINB &amp; _BV(UART_RX_PIN))            <br />        /* wait for start bit */;<br />    _delay_us(UART_BIT_LENGTH / 2);<br /><br />    for (i = 0; i &lt; 8; ++i)<br />    {<br />        rv &gt;&gt;= 1;<br />        _delay_us(UART_BIT_LENGTH);<br />        if (PINB &amp; _BV(UART_RX_PIN))<br />            rv |= 0x80;<br />    }<br />                                             <br />    _delay_us(UART_BIT_LENGTH);     /* wait for stop bit */<br /><br />    if (PINB &amp; _BV(UART_RX_PIN))    /* stop bit must be one */<br />        return rv;<br />    else<br />        return -1;<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 20 sty 2022, o 12:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Marhef]]></name></author>
<updated>2022-01-19T21:45:40+01:00</updated>
<published>2022-01-19T21:45:40+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234872#p234872</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234872#p234872"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234872#p234872"><![CDATA[
AS dodaje biblioteki z automatu, w mkclipse dodaj ręcznie:<br />[syntax=c]#include &lt;avr/io.h&gt;<br />#include &lt;stdlib.h&gt;[/syntax]<br />Te dwie powiny wystarczyć<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=12752">Marhef</a> — 19 sty 2022, o 21:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2022-01-18T13:35:18+01:00</updated>
<published>2022-01-18T13:35:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234864#p234864</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234864#p234864"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234864#p234864"><![CDATA[
Chciałem tak bo zauważyłem, że mój programator znacznie szybciej działa przez MkClipse niż AS ???<br />Programowanie w AS i przenoszenie pliku HEX to trochę upierdliwe.<br />Ale moje pierwsze pytanie było czemu za pierwszym razem poszło a potem już nie chciało?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 18 sty 2022, o 13:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2022-01-18T10:35:11+01:00</updated>
<published>2022-01-18T10:35:11+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234860#p234860</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234860#p234860"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234860#p234860"><![CDATA[
Witam ponownie,<br />Znowu problem po przeniesieniu projektu z AVR Studio. Ale bardzo dziwny.<br />Po wpisaniu plików projektu ładnie się skompilował i załadował do mikrokontrolera. Ale później chciałem załadować innym programatorem i po wciśnięciu 'Builid' pojawił się błąd kompilacji. Nic nie zmieniałem w plikach projektu i było to w tej samej sesji MkClipse. Błąd dotyczy dołączonej biblioteki programowego UART do Tiny 13.<br />[syntax=cpp]#define BAUD_RATE 9600<br />#define UART_RX_PIN 3<br />#define FP 1e-6 <br />#define UART_BIT_LENGTH (1/((double)BAUD_RATE) / FP)//(104+EEPROM_read(5)/100)//(104.16)// (1/((double)BAUD_RATE) / 1e-6)//104//EEPROM_read(5)//104.16<br />     <br />int uart_rx(void);<br />   <br />//  <br />int uart_rx(void)   <br />{   uint8_t rv = 0;<br />    uint8_t i;         <br />                <br />    if (!(PINB &amp; _BV(UART_RX_PIN)))<br />        return -1;<br />    while (PINB &amp; _BV(UART_RX_PIN))            <br />        /* wait for start bit */;<br />    _delay_us(UART_BIT_LENGTH / 2);<br /><br />    for (i = 0; i &lt; 8; ++i)<br />    {<br />        rv &gt;&gt;= 1;<br />        _delay_us(UART_BIT_LENGTH);<br />        if (PINB &amp; _BV(UART_RX_PIN))<br />            rv |= 0x80;<br />    }<br /><br />    _delay_us(UART_BIT_LENGTH);     /* wait for stop bit */<br /><br />    if (PINB &amp; _BV(UART_RX_PIN))    /* stop bit must be one */<br />        return rv;<br />    else<br />        return -1;<br />}[/syntax]<br />A błąd jest taki:<br />[syntax=cpp]compiling process, please wait...<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=attiny13a -DF_CPU=1000000UL -MMD -MP -MF&quot;Release/COM_read_Attiny13.d&quot; -MT&quot;Release/COM_read_Attiny13.o&quot; -c -o &quot;Release/COM_read_Attiny13.o&quot; &quot;COM_read_Attiny13.c&quot;&quot;<br />COM_read_Attiny13.c: In function 'uart_rx':<br />COM_read_Attiny13.c:11:5: error: unknown type name 'uint8_t'<br /> {   uint8_t rv = 0;<br />     ^<br />COM_read_Attiny13.c:12:5: error: unknown type name 'uint8_t'<br />     uint8_t i;         <br />     ^<br />COM_read_Attiny13.c:14:11: error: 'PINB' undeclared (first use in this function)<br />     if (!(PINB &amp; _BV(UART_RX_PIN)))<br />           ^<br />COM_read_Attiny13.c:14:11: note: each undeclared identifier is reported only once for each function it appears in<br />COM_read_Attiny13.c:14:18: warning: implicit declaration of function '_BV' &#91;-Wimplicit-function-declaration&#93;<br />     if (!(PINB &amp; _BV(UART_RX_PIN)))<br />                  ^<br />COM_read_Attiny13.c:18:5: warning: implicit declaration of function '_delay_us' &#91;-Wimplicit-function-declaration&#93;<br />     _delay_us(UART_BIT_LENGTH / 2);<br />     ^<br />COM_read_Attiny13.c:34:1: warning: control reaches end of non-void function &#91;-Wreturn-type&#93;<br /> }<br /> ^<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=attiny13a -DF_CPU=1000000UL -MMD -MP -MF&quot;Release/mk_build.d&quot; -MT&quot;Release/mk_build.o&quot; -c -o &quot;Release/mk_build.o&quot; &quot;mk_build.c&quot;&quot;<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=attiny13a -DF_CPU=1000000UL -MMD -MP -MF&quot;Release/main.d&quot; -MT&quot;Release/main.o&quot; -c -o &quot;Release/main.o&quot; &quot;main.c&quot;&quot;<br /><br />----------------<br />ERROR --&gt; COM_read_Attiny13.c  --&gt; Line:  11[/syntax]<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 37 minutach ]</span></strong><br /><br />Jakieś dziwne to forum, nie mogę edytować swojego postu.<br />Jest tam drobna nieścisłość bo usunąłem jedną zaremowaną linię z kodu i linia błędu się przesunęła z 10 na 11<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 18 sty 2022, o 10:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-09T10:59:04+01:00</updated>
<published>2021-12-09T10:59:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234483#p234483</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234483#p234483"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234483#p234483"><![CDATA[
<div class="quotetitle">Marhef napisał(a):</div><div class="quotecontent"><br /><div class="quotetitle">koczis_ws napisał(a):</div><div class="quotecontent">W MkCLIPSE kompiluje się bez błędów<br /></div>Potwierdzam. Skopiowałem, wybrałem procek z listy. Wybrałem build. Działa</div><br /><br />Problem leży tu w moim przypadku:<br />avr-gcc: error: At13.map: No such file or directory<br /><br />Widać brakuje tego pliku w mojej instalacji. Skąd go wziąć i gdzie ma być ulokowany ?<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 6 minutach ]</span></strong><br /><br />Usunąłem spację z nazwy projektu i kurde skompilowało się <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />Dzięki za pomoc<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 9 gru 2021, o 10:59</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Marhef]]></name></author>
<updated>2021-12-08T22:36:36+01:00</updated>
<published>2021-12-08T22:36:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234476#p234476</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234476#p234476"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234476#p234476"><![CDATA[
<div class="quotetitle">koczis_ws napisał(a):</div><div class="quotecontent"><br />W MkCLIPSE kompiluje się bez błędów<br /></div>Potwierdzam. Skopiowałem, wybrałem procek z listy. Wybrałem build. Działa<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=12752">Marhef</a> — 8 gru 2021, o 22:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[fofex]]></name></author>
<updated>2021-12-08T21:31:35+01:00</updated>
<published>2021-12-08T21:31:35+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234475#p234475</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234475#p234475"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234475#p234475"><![CDATA[
<div class="quotetitle">koczis_ws napisał(a):</div><div class="quotecontent"><br />co znaczą te rzeczy<br /></div><br />Te rzeczy znaczą, że w nazwie projektu jest/są spacj(a/e)<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 3 minutach ]</span></strong><br /><br /><div class="quotetitle">koczis_ws napisał(a):</div><div class="quotecontent"><br />W AS nie musi być<br /></div><br />Tam miałeś ustawiony niższy poziom raportowania błędów, a więc warning (formalnie, faktycznie jest to poważny błąd) nie został wyemitowany.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=21072">fofex</a> — 8 gru 2021, o 21:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-08T21:13:40+01:00</updated>
<published>2021-12-08T21:13:40+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234473#p234473</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234473#p234473"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234473#p234473"><![CDATA[
Po poprawie wyeliminowałem to:<br />main.c: In function 'dht11_gethumidity':<br />main.c:128:1: warning: control reaches end of non-void function [-Wreturn-type]<br />Domyśliłem się, że chodzi o to, że funkcja nie zawierała instrukcji 'return' a jest typu non-void. W AS nie musi być. Ja w tym programie akurat do potrzebnej wartości użyłem zmiennej globalnej. Dopisałem ten return ot tak dla świętego spokoju, ale nadal są problemy. Poniżej nowy kod:<br />[syntax=cpp]/*<br />* main.c    ATtiny13A    F_CPU = 8000000 Hz<br />*<br />* Created on: 07.12.2021<br />*     Author: admin<br />*/<br />// dołączanie systemowych plików nagłówkowych<br />#include &lt;stdio.h&gt;<br />#include &lt;avr/io.h&gt;<br />#include &lt;util/delay.h&gt;<br />//#include &lt;avr/eeprom.h&gt;<br /><br />#define DHT11_ERROR 255<br />#define LED_ON DDRB |= (1&lt;&lt;4);PORTB &amp;= (0&lt;&lt;4);<br />#define LED_OFF DDRB|= (1&lt;&lt;4);PORTB |= (1&lt;&lt;4);<br /><br />#define DHT11_DDR DDRB<br />#define DHT11_PORT PORTB<br />#define DHT11_PIN PINB<br />#define DHT11_INPUTPIN PB0<br />int8_t humidityH = 0;<br />//int8_t limit=60;<br />/*<br /> * get data from dht11<br /> */<br /><br />uint8_t dht11_getdata( void ) {<br />    uint8_t bits&#91;5&#93;;<br />    uint8_t i, j = 0;<br /><br />    //memset(bits, 0, sizeof(bits));<br /><br />    //reset port<br />    DHT11_DDR |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //output<br />    DHT11_PORT |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //high<br />    _delay_ms( 100 );<br /><br />    //send request<br />    DHT11_PORT &amp;= ~( 1 &lt;&lt; DHT11_INPUTPIN ); //low<br />    _delay_ms( 18 );<br />    DHT11_PORT |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //high<br />    _delay_us( 1 );<br />    DHT11_DDR &amp;= ~( 1 &lt;&lt; DHT11_INPUTPIN ); //input<br />    _delay_us( 39 );<br /><br />    //check start condition 1<br />    if (( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ) ) {<br />        return DHT11_ERROR;<br />    }<br />    _delay_us( 80 );<br />    //check start condition 2<br />    if ( !( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ) ) {<br />        return DHT11_ERROR;<br />    }<br />    _delay_us( 80 );<br /><br />    //read the data<br />    for ( j = 0; j &lt; 5; j++ ) { //read 5 byte<br />        uint8_t result = 0;<br />        for ( i = 0; i &lt; 8; i++ ) {//read every bit<br />            while ( !( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ) ); //wait for an high input<br />            _delay_us( 39 );<br />            if ( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ) //if input is high after 30 us, get result<br />                result |= ( 1 &lt;&lt; ( 7 - i ) );<br />            while ( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ); //wait until input get low<br />        }<br />        bits&#91;j&#93; = result;<br />    }<br />                               <br />    //reset port<br />    DHT11_DDR |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //output<br />    DHT11_PORT |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //low<br />    _delay_ms( 100 );<br />    //check checksum<br />    if ( bits&#91;0&#93; + bits&#91;1&#93; + bits&#91;2&#93; + bits&#91;3&#93; == bits&#91;4&#93; ) <br />    {humidityH = bits&#91;0&#93;;<br />    return humidityH;      <br />    }<br />    else {<br />        return DHT11_ERROR;<br />    }<br />}<br />//<br />//                     <br />int main( void ) {      // Testownie działanie czujnika DHT11<br />    //limit=eeprom_read_byte(0);     // Próg zapisany w EEPROM<br />    while ( 1 ) {<br />        _delay_ms( 500 );<br />        if ( dht11_getdata() == DHT11_ERROR ) {      // Gdy błąd odczytu DHT11<br />            LED_ON;<br />            _delay_ms( 400 );<br />            LED_OFF;<br />            _delay_ms( 400 );<br />            LED_ON;<br />            _delay_ms( 400 );<br />            LED_OFF;<br />            _delay_ms( 400 );<br />        } else {<br />            LED_ON<br />            if ( 70 &gt; humidityH ) {        // Gdy wilgotność poniżej progu załączania wentylatora<br />                _delay_ms( 50 );<br />                LED_OFF;<br />                _delay_ms( 1000 );<br />            } else {                       // Gdy wilgotność przekracza próg załączania wentylatora<br />                _delay_ms( 1000 );<br />                LED_OFF;<br />                //_delay_ms(50);<br />            }<br />        }<br />    }<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 8 gru 2021, o 21:13</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-08T20:53:34+01:00</updated>
<published>2021-12-08T20:53:34+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234471#p234471</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234471#p234471"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234471#p234471"><![CDATA[
Nie da się edytować postu ??? , więc piszę nowy.<br />Poprawiłem trochę kod i dostaję następujący komunikat:<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=attiny13a -DF_CPU=8000000UL -MMD -MP -MF&quot;Release/mk_build.d&quot; -MT&quot;Release/mk_build.o&quot; -c -o &quot;Release/mk_build.o&quot; &quot;mk_build.c&quot;&quot;<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=attiny13a -DF_CPU=8000000UL -MMD -MP -MF&quot;Release/main.d&quot; -MT&quot;Release/main.o&quot; -c -o &quot;Release/main.o&quot; &quot;main.c&quot;&quot;<br /><br />avr-gcc&quot; -Wl,-Map,Release/Test At13.map -Wl,--undefined=MkBuildVersion -Wl,--undefined=MkBuildNumber -Wl,--undefined=MkBuildDate -Wl,--undefined=MkBuildTime  -Wl,--section-start=.text=0x0000 -Wl,--gc-sections -mmcu=attiny13a -o &quot;Release/Test At13.elf&quot; Release/main.o Release/mk_build.o <br />avr-gcc: error: At13.map: No such file or directory<br /><br />Skąd mam wziąć At13.map ?  I co znaczą te rzeczy w przedostatniej linii?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 8 gru 2021, o 20:53</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-08T19:36:06+01:00</updated>
<published>2021-12-08T19:36:06+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234470#p234470</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234470#p234470"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234470#p234470"><![CDATA[
Nie mam nawet jak sprawdzić bo teraz przy próbie uruchomienia mkclips pojawia się taki kwiatek <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><br /><a href="https://obrazkiforum.atnel.pl/16269/80e4c17d745483af2713ba536e362e5b.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/16269/80e4c17d745483af2713ba536e362e5b.jpg" alt="Obrazek" /></a><br /><br />Tłumacz Google napisał 'O Cheng Dao ' cokolwiek to znaczy.<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 11 minutach ]</span></strong><br /><br />Odznaczyłem &quot;warning as error&quot; i dalej nic.<br />Kompilacja:<br />compiling process, please wait...<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=attiny13a -DF_CPU=8000000UL -MMD -MP -MF&quot;Release/mk_build.d&quot; -MT&quot;Release/mk_build.o&quot; -c -o &quot;Release/mk_build.o&quot; &quot;mk_build.c&quot;&quot;<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=attiny13a -DF_CPU=8000000UL -MMD -MP -MF&quot;Release/main.d&quot; -MT&quot;Release/main.o&quot; -c -o &quot;Release/main.o&quot; &quot;main.c&quot;&quot;<br />main.c: In function 'dht11_getdata':<br />main.c:79:1: warning: control reaches end of non-void function [-Wreturn-type]    <br /> }     <br /> ^<br /><br />avr-gcc&quot; -Wl,-Map,Release/Test At13.map -Wl,--undefined=MkBuildVersion -Wl,--undefined=MkBuildNumber -Wl,--undefined=MkBuildDate -Wl,--undefined=MkBuildTime  -Wl,--section-start=.text=0x0000 -Wl,--gc-sections -mmcu=attiny13a -o &quot;Release/Test At13.elf&quot; Release/main.o Release/mk_build.o <br />avr-gcc: error: At13.map: No such file or directory<br />----------------<br />WARNING --&gt; main.c  --&gt; Line:  79<br /><br />Ech, zraziłem się <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 8 gru 2021, o 19:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Marhef]]></name></author>
<updated>2021-12-08T18:16:36+01:00</updated>
<published>2021-12-08T18:16:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234467#p234467</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234467#p234467"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234467#p234467"><![CDATA[
<div class="quotetitle">koczis_ws napisał(a):</div><div class="quotecontent"><br />Poniżej zrzut.<br /><a href="https://obrazkiforum.atnel.pl/16269/008060626142416c7fc778e6c31b9f72.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/16269/008060626142416c7fc778e6c31b9f72.jpg" alt="Obrazek" /></a><br /></div><br />Akurat ten warning oznacza, że masz funkcję zwracającą zmienną typu uint8_t, a jest możliwy warunek, w którym brakuje return.<br /><br />implicit declaration of function 'itoa'<br />Brakuje include'a (w as może być dodany w ustawieniach projektu, w mkclipse musisz dodać ręcznie).<br /><br />passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast<br />Funkcja tworzy wskaźnik z liczby bez rzutowania<br /><br />Trzy pierwsze błędy, pierwsze wyniki wyszukiwania w google.<br /><br />Kolejny:<br />expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br />Wymagany jest argument typu uint8_t, a jest typu int<br /><br />Nie mam czasu szukać dalej. Powodzenia <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br /><br />EDIT:<br />Jeżeli w mkclipse odznaczysz w settings &quot;warning as error&quot;, to Ci się skompiluje. I pewnie nawet będzie działało <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=12752">Marhef</a> — 8 gru 2021, o 18:16</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-07T23:22:51+01:00</updated>
<published>2021-12-07T23:22:51+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234460#p234460</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234460#p234460"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234460#p234460"><![CDATA[
<div class="quotetitle">mirekk36 napisał(a):</div><div class="quotecontent"><br />zdecydowanie to jest to o czym pisze micky<br /></div><br /><br />Hmmm . . . ale co?<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 5 minutach ]</span></strong><br /><br />Tutaj przebieg kompilacji:<br /><br />compiling process, please wait...<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF&quot;Release/mk_build.d&quot; -MT&quot;Release/mk_build.o&quot; -c -o &quot;Release/mk_build.o&quot; &quot;mk_build.c&quot;&quot;<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF&quot;Release/HD44780.d&quot; -MT&quot;Release/HD44780.o&quot; -c -o &quot;Release/HD44780.o&quot; &quot;HD44780.c&quot;&quot;<br />&quot;C:\Users\Wlodek\Documents\MkClipse\AVR Toolchain\bin\avr-gcc&quot; -Wall -Os -Wstrict-aliasing=1 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields  -Wl,--section-start=.text=0x0000  -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF&quot;Release/main.d&quot; -MT&quot;Release/main.o&quot; -c -o &quot;Release/main.o&quot; &quot;main.c&quot;&quot;<br />main.c: In function 'main':<br />main.c:182:13: warning: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]<br />             itoa( temperatureH, str, 10 );<br />             ^<br />main.c: In function 'Zapis':<br />main.c:226:28: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]<br />         eeprom_write_byte( adres, humidityL );<br />                            ^<br />In file included from main.c:18:0:<br />c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br /> void eeprom_write_byte (uint8_t *__p, uint8_t __value);<br />      ^<br />main.c:228:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]<br />         eeprom_write_byte(( adres + 1 ), humidityH );<br />                           ^<br />In file included from main.c:18:0:<br />c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br /> void eeprom_write_byte (uint8_t *__p, uint8_t __value);<br />      ^<br />main.c:230:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]<br />         eeprom_write_byte(( adres + 2 ), 0xAA );<br />                           ^<br />In file included from main.c:18:0:<br />c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br /> void eeprom_write_byte (uint8_t *__p, uint8_t __value);<br />      ^<br />main.c:232:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]<br />         eeprom_write_byte(( adres + 3 ), temperatureL );<br />                           ^<br />In file included from main.c:18:0:<br />c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br /> void eeprom_write_byte (uint8_t *__p, uint8_t __value);<br />      ^<br />main.c:234:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]<br />         eeprom_write_byte(( adres + 4 ), temperatureH );<br />                           ^<br />In file included from main.c:18:0:<br />c:\users\wlodek\documents\mkclipse\avr <br />toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br /> void eeprom_write_byte (uint8_t *__p, uint8_t __value);<br />      ^<br />main.c:236:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]<br />         eeprom_write_byte(( adres + 5 ), 0xAA );<br />                           ^<br />In file included from main.c:18:0:<br />c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br /> void eeprom_write_byte (uint8_t *__p, uint8_t __value);<br />      ^<br />main.c:238:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]<br />         eeprom_write_byte(( adres + 6 ), suma_kontrolna );<br />                           ^<br />In file included from main.c:18:0:<br />c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br /> void eeprom_write_byte (uint8_t *__p, uint8_t __value);<br />      ^<br />main.c:240:27: warning: passing argument 1 of '__eewr_byte_m8' makes pointer from integer without a cast [-Wint-conversion]<br />         eeprom_write_byte(( adres + 7 ), 256 );<br />                           ^<br />In file included from main.c:18:0:<br />c:\users\wlodek\documents\mkclipse\avr toolchain\avr\include\avr\eeprom.h:694:6: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'int'<br /> void eeprom_write_byte (uint8_t *__p, uint8_t __value);<br />      ^<br />main.c:240:42: warning: large integer implicitly truncated to unsigned type [-Woverflow]<br />         eeprom_write_byte(( adres + 7 ), 256 );<br />                                          ^<br />main.c: In function 'dht11_gettemperature':<br />main.c:117:1: warning: control reaches end of non-void function [-Wreturn-type]<br /> }<br /> ^<br />main.c: In function 'dht11_gethumidity':                                           <br />main.c:128:1: warning: control reaches end of non-void function [-Wreturn-type]<br /> }                                                            <br /> ^                                                             <br /><br />----------------<br />WARNING --&gt; main.c  --&gt; Line:  182<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 35 minutach ]</span></strong><br /><br />Może dajmy spokój tamtemu programowi. Stworzyłem nowy projekt, przekopiowałem kod z AVR Studio i pomimo poprawnego działania w AS tu nie da się skompilować. Poniżej kod:<br />[syntax=cpp]/*<br />* main.c    ATtiny13A    F_CPU = 8000000 Hz<br />*<br />* Created on: 07.12.2021<br />*     Author: admin<br />*/<br />// dołączanie systemowych plików nagłówkowych<br />#include &lt;stdio.h&gt;<br />#include &lt;avr/io.h&gt;<br />#include &lt;util/delay.h&gt;<br />//#include &lt;avr/eeprom.h&gt;<br /><br />#define DHT11_ERROR 255<br />#define LED_ON DDRB |= (1&lt;&lt;4);PORTB &amp;= (0&lt;&lt;4);<br />#define LED_OFF DDRB|= (1&lt;&lt;4);PORTB |= (1&lt;&lt;4);<br /><br />#define DHT11_DDR DDRB<br />#define DHT11_PORT PORTB<br />#define DHT11_PIN PINB<br />#define DHT11_INPUTPIN PB0<br />int8_t humidityH = 0;<br />//int8_t limit=60;<br />/*<br /> * get data from dht11<br /> */<br /><br />uint8_t dht11_getdata( void ) {<br />    uint8_t bits&#91;5&#93;;<br />    uint8_t i, j = 0;<br /><br />    //memset(bits, 0, sizeof(bits));<br /><br />    //reset port<br />    DHT11_DDR |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //output<br />    DHT11_PORT |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //high<br />    _delay_ms( 100 );<br /><br />    //send request<br />    DHT11_PORT &amp;= ~( 1 &lt;&lt; DHT11_INPUTPIN ); //low<br />    _delay_ms( 18 );<br />    DHT11_PORT |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //high<br />    _delay_us( 1 );<br />    DHT11_DDR &amp;= ~( 1 &lt;&lt; DHT11_INPUTPIN ); //input<br />    _delay_us( 39 );<br /><br />    //check start condition 1<br />    if (( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ) ) {<br />        return DHT11_ERROR;<br />    }<br />    _delay_us( 80 );<br />    //check start condition 2<br />    if ( !( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ) ) {<br />        return DHT11_ERROR;<br />    }<br />    _delay_us( 80 );<br /><br />    //read the data<br />    for ( j = 0; j &lt; 5; j++ ) { //read 5 byte<br />        uint8_t result = 0;<br />        for ( i = 0; i &lt; 8; i++ ) {//read every bit<br />            while ( !( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ) ); //wait for an high input<br />            _delay_us( 39 );<br />            if ( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ) //if input is high after 30 us, get result<br />                result |= ( 1 &lt;&lt; ( 7 - i ) );<br />            while ( DHT11_PIN &amp; ( 1 &lt;&lt; DHT11_INPUTPIN ) ); //wait until input get low<br />        }<br />        bits&#91;j&#93; = result;<br />    }<br /><br />    //reset port<br />    DHT11_DDR |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //output<br />    DHT11_PORT |= ( 1 &lt;&lt; DHT11_INPUTPIN ); //low<br />    _delay_ms( 100 );<br />    //check checksum<br />    if ( bits&#91;0&#93; + bits&#91;1&#93; + bits&#91;2&#93; + bits&#91;3&#93; == bits&#91;4&#93; ) humidityH = bits&#91;0&#93;;<br />    else {<br />        return DHT11_ERROR;<br />    }  <br />}     <br />//    <br />//<br />int main( void ) {      // Testownie działanie czujnika DHT11<br />    //limit=eeprom_read_byte(0);     // Próg zapisany w EEPROM  <br />    while ( 1 ) {<br />        _delay_ms( 500 ); <br />        if ( dht11_getdata() == DHT11_ERROR ) {      // Gdy błąd odczytu DHT11<br />            LED_ON;<br />            _delay_ms( 400 );<br />            LED_OFF;<br />            _delay_ms( 400 );<br />            LED_ON;<br />            _delay_ms( 400 );<br />            LED_OFF;                        <br />            _delay_ms( 400 );<br />        } else {<br />            LED_ON<br />            if ( 70 &gt; humidityH ) {        // Gdy wilgotność poniżej progu załączania wentylatora  <br />                _delay_ms( 50 );<br />                LED_OFF;<br />                _delay_ms( 1000 );<br />            } else {                       // Gdy wilgotność przekracza próg załączania wentylatora <br />                _delay_ms( 1000 );<br />                LED_OFF;<br />                //_delay_ms(50);         <br />            }<br />        }<br />    }<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 7 gru 2021, o 23:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2021-12-07T23:06:59+01:00</updated>
<published>2021-12-07T23:06:59+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234459#p234459</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234459#p234459"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234459#p234459"><![CDATA[
zdecydowanie to jest to o czym pisze micky<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 7 gru 2021, o 23:06</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-07T23:05:10+01:00</updated>
<published>2021-12-07T23:05:10+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234458#p234458</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234458#p234458"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234458#p234458"><![CDATA[
Napewno nie bo program działa pod AVR Studio.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 7 gru 2021, o 23:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[micky]]></name></author>
<updated>2021-12-07T19:27:16+01:00</updated>
<published>2021-12-07T19:27:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234454#p234454</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234454#p234454"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234454#p234454"><![CDATA[
A z klamrami masz wszystko ok? Nie zjadłeś czegoś lub nie pomieszałeś ze średnikami?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1546">micky</a> — 7 gru 2021, o 19:27</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-07T10:41:08+01:00</updated>
<published>2021-12-07T10:41:08+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234450#p234450</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234450#p234450"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234450#p234450"><![CDATA[
Poniżej zrzut.<br /><a href="https://obrazkiforum.atnel.pl/16269/008060626142416c7fc778e6c31b9f72.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/16269/008060626142416c7fc778e6c31b9f72.jpg" alt="Obrazek" /></a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 7 gru 2021, o 10:41</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[micky]]></name></author>
<updated>2021-12-07T06:32:25+01:00</updated>
<published>2021-12-07T06:32:25+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234449#p234449</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234449#p234449"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234449#p234449"><![CDATA[
Co to znaczy, że stanęło? Wklej komunikaty z kompilatora.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1546">micky</a> — 7 gru 2021, o 06:32</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-07T01:45:18+01:00</updated>
<published>2021-12-07T01:45:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234448#p234448</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234448#p234448"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234448#p234448"><![CDATA[
Proszę bardzo <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />W trakcie kompilacji błędy są wykrywane stopniowo. Po zmianach w kodzie pojawiają się następne. Aktualnie stanęło na :<br />'itoa( temperatureH, str, 10 );' co w AS oznacza zamianę int na string np. do wyświetlenia na LCD.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 7 gru 2021, o 01:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2021-12-06T14:15:40+01:00</updated>
<published>2021-12-06T14:15:40+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234446#p234446</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234446#p234446"/>
<title type="html"><![CDATA[Re: Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234446#p234446"><![CDATA[
Przede wszystkim to nie ma takiej możliwości żeby wprost przenieść projekt z AS do MkClipse.<br /><br />Owszem można to zrobić ale trzeba po prostu skopiować tylko pliki *.c i *.h z folderu projektu, który był robiony w AS. Struktura folderu może zostać identyczna. I w MkClipse już powinno to działać, chyba że w AS są jakieś głębsze zależności albo nowszego toolchaina niż ten który jest w MkClipse.<br /><br />Jeśli nie działa i są błędy kompilacji - to na podstawie opisu problemu - może pomóc tylko jasnowidz - skoro nie wiadomo jakie to się błędy kompilacji pojawiają, a można przecież wkleić przecież widok tego co się pojawia w konsoli po kompilacji żeby pokazać innym o jakie błędy chodzi<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 6 gru 2021, o 14:15</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koczis_ws]]></name></author>
<updated>2021-12-06T12:48:56+01:00</updated>
<published>2021-12-06T12:48:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234445#p234445</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234445#p234445"/>
<title type="html"><![CDATA[Import z AVRStudio5 do MkCLIPSE]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24052&amp;p=234445#p234445"><![CDATA[
Witam,<br />Najpierw się chcę przywitać bo to jest mój pierwszy wpis na forum.<br />Tak jak w temacie, Chciałem przenieść projekt napisany w AS , ale nic się nie otwiera pomimo, że w drzewku są pliki.<br />Utworzyłem nowy projekt i przekopiowałem kod ale niestety przy kompilacji pojawiają się błędy. Nadmieniam, że w AS projekt kompiluje się i program działa na kontrolerze prawidłowo.<br />Czy są jakieś różnice w składni?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=16269">koczis_ws</a> — 6 gru 2021, o 12:48</p><hr />
]]></content>
</entry>
</feed>