<?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=4&amp;t=24491&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2023-06-06T19:08:42+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=24491&amp;mode</id>
<entry>
<author><name><![CDATA[AKSELINEK]]></name></author>
<updated>2023-06-06T19:08:42+01:00</updated>
<published>2023-06-06T19:08:42+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237077#p237077</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237077#p237077"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237077#p237077"><![CDATA[
Tak oczywiście wszystko zrozumiałem . Dowiedziałem się dzięki temu o liczbach ósemkowych. Wzbogaciłem wiedzę i cieszę się że zadałem w/w pytania.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18152">AKSELINEK</a> — 6 cze 2023, o 19:08</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[micky]]></name></author>
<updated>2023-06-03T14:58:25+01:00</updated>
<published>2023-06-03T14:58:25+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237069#p237069</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237069#p237069"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237069#p237069"><![CDATA[
To wpisz w hexie 0x08<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1546">micky</a> — 3 cze 2023, o 14:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Wirnick]]></name></author>
<updated>2023-06-02T18:23:48+01:00</updated>
<published>2023-06-02T18:23:48+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237068#p237068</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237068#p237068"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237068#p237068"><![CDATA[
<div class="quotetitle">AKSELINEK napisał(a):</div><div class="quotecontent"><br />Ale co w sytuacji jak wpisze po prostu 8 w tej konkretnej sytuacji czy będzie niepoprawnie?<br /></div><br />To po prostu wpisz. Ja się też uczę, nie tylko na błędach swoich.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=9272">Wirnick</a> — 2 cze 2023, o 18:23</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[AKSELINEK]]></name></author>
<updated>2023-06-02T18:06:12+01:00</updated>
<published>2023-06-02T18:06:12+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237067#p237067</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237067#p237067"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237067#p237067"><![CDATA[
Acha no to mi wyjaśniłeś super. Ale co w sytuacji jak wpisze po prostu 8 w tej konkretnej sytuacji czy będzie niepoprawnie?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18152">AKSELINEK</a> — 2 cze 2023, o 18:06</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Wirnick]]></name></author>
<updated>2023-06-02T17:57:00+01:00</updated>
<published>2023-06-02T17:57:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237066#p237066</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237066#p237066"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237066#p237066"><![CDATA[
<div class="quotetitle">AKSELINEK napisał(a):</div><div class="quotecontent"><br />Chce się jedynie dowiedzieć jak wpisać w tym konkretnym przypadku godzinę 9<br /></div><br />Godzina 8, to piszesz 010. Godzina 9, to piszesz 011 itd. 23cia - 027. Przekroczenie 027, to znowu error.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=9272">Wirnick</a> — 2 cze 2023, o 17:57</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[AKSELINEK]]></name></author>
<updated>2023-06-02T17:27:31+01:00</updated>
<published>2023-06-02T17:27:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237065#p237065</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237065#p237065"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237065#p237065"><![CDATA[
Ja nie twierdzę że ludzie tu źle piszą.  Chce się jedynie dowiedzieć jak wpisać w tym konkretnym przypadku godzinę 9 chyba że poczekam i zaprogramuje o 10 ale nie o to mi chodziło.<br />Bardzo przepraszam że zadaje głupie pytania<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18152">AKSELINEK</a> — 2 cze 2023, o 17:27</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2023-06-02T16:43:55+01:00</updated>
<published>2023-06-02T16:43:55+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237064#p237064</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237064#p237064"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237064#p237064"><![CDATA[
<div class="quotetitle">AKSELINEK napisał(a):</div><div class="quotecontent"><br />błąd kompilacji zgłasza dla 08 lub 09.<br /></div><br />Panie czytaj że wyżej co ci piszą ludzie bo dobrze piszą<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 2 cze 2023, o 16:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[AKSELINEK]]></name></author>
<updated>2023-06-02T15:03:22+01:00</updated>
<published>2023-06-02T15:03:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237063#p237063</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237063#p237063"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237063#p237063"><![CDATA[
Sytuacja wygląda tak: dla liczb od 01 do 07 kompiluje poprawnie dla liczb dwucyfrowych też poprawnie , błąd kompilacji zgłasza dla 08 lub 09.<br />A lista błędu kompilacji  jest długa:<br /><br />[syntax=c]make all <br />'Building file: ../main.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF&quot;main.d&quot; -MT&quot;main.o&quot; -c -o &quot;main.o&quot; &quot;../main.c&quot;<br />../main.c: In function 'main':<br />../main.c:159:65: warning: passing argument 1 of '__eerd_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />                              uint32_t estart = eeprom_read_word(&amp;zmienna_w_eepromie);  // czytanie ilosci wylaczen z EEPROMA<br />                                                                 ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:672:10: note: expected 'const uint16_t * {aka const unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> uint16_t eeprom_read_word (const uint16_t *__p) __ATTR_PURE__;<br />          ^<br />../main.c:172:57: warning: passing argument 1 of '__eerd_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />                             czytajP1 = eeprom_read_word(&amp;zmienna_P1);  // czytaj z EEPROMA wartosc napiecia zadanego w woltach<br />                                                         ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:672:10: note: expected 'const uint16_t * {aka const unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> uint16_t eeprom_read_word (const uint16_t *__p) __ATTR_PURE__;<br />          ^<br />../main.c:173:57: warning: passing argument 1 of '__eerd_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />                             czytajP2 = eeprom_read_word(&amp;zmienna_P2);  // czytaj z EEPROMA wartosc napiecia zadanego w dziesiatkach wolta<br />                                                         ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:672:10: note: expected 'const uint16_t * {aka const unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> uint16_t eeprom_read_word (const uint16_t *__p) __ATTR_PURE__;<br />          ^<br />../main.c:176:47: warning: passing argument 1 of '__eewr_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />                             eeprom_write_word(&amp;zmienna_w_eepromie,estart);  // ostatecznie czytaj z EEPROMA ilosc wylaczen<br />                                               ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:699:6: note: expected 'uint16_t * {aka unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> void eeprom_write_word (uint16_t *__p, uint16_t __value);<br />      ^<br />../main.c:279:44: error: invalid digit &quot;8&quot; in octal constant<br />  set_rtc_datetime( &amp;datetime, 2023, 06, 2, 08 , 48, 0 );<br />                                            ^<br />../main.c:316:58: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t {aka long unsigned int}' &#91;-Wformat=&#93;<br />                                              sprintf(zz1,&quot;Zasilanie %d&quot;,estart);<br />                                                          ^<br />../main.c:385:89: warning: passing argument 1 of '__eerd_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />                                                                lcd_int(eeprom_read_word(&amp;zmienna_w_eepromie));   // wyaswietlaj liczbe wylaczen zasilania<br />                                                                                         ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:672:10: note: expected 'const uint16_t * {aka const unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> uint16_t eeprom_read_word (const uint16_t *__p) __ATTR_PURE__;<br />          ^<br />../main.c:464:3: warning: implicit declaration of function 'UART_RX_STR_EVENT' &#91;-Wimplicit-function-declaration&#93;<br />   UART_RX_STR_EVENT( uart_buf );<br />   ^<br />../main.c: In function 'ustaw':<br />../main.c:559:36: warning: passing argument 1 of '__eerd_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />   uint32_t czP1 = eeprom_read_word(&amp;zmienna_P1);<br />                                    ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:672:10: note: expected 'const uint16_t * {aka const unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> uint16_t eeprom_read_word (const uint16_t *__p) __ATTR_PURE__;<br />          ^<br />../main.c:560:21: warning: passing argument 1 of '__eewr_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />   eeprom_write_word(&amp;zmienna_P1,P1);<br />                     ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:699:6: note: expected 'uint16_t * {aka unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> void eeprom_write_word (uint16_t *__p, uint16_t __value);<br />      ^<br />../main.c:562:36: warning: passing argument 1 of '__eerd_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />   uint32_t czP2 = eeprom_read_word(&amp;zmienna_P2);<br />                                    ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:672:10: note: expected 'const uint16_t * {aka const unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> uint16_t eeprom_read_word (const uint16_t *__p) __ATTR_PURE__;<br />          ^<br />../main.c:563:21: warning: passing argument 1 of '__eewr_word_m32' from incompatible pointer type &#91;-Wincompatible-pointer-types&#93;<br />   eeprom_write_word(&amp;zmienna_P2,P2);<br />                     ^<br />In file included from ../main.c:21:0:<br />g:\dokumenty\mkclipse\avr toolchain\avr\include\avr\eeprom.h:699:6: note: expected 'uint16_t * {aka unsigned int *}' but argument is of type 'uint32_t * {aka long unsigned int *}'<br /> void eeprom_write_word (uint16_t *__p, uint16_t __value);<br />      ^<br />../main.c:562:12: warning: unused variable 'czP2' &#91;-Wunused-variable&#93;<br />   uint32_t czP2 = eeprom_read_word(&amp;zmienna_P2);<br />            ^<br />../main.c:559:12: warning: unused variable 'czP1' &#91;-Wunused-variable&#93;<br />   uint32_t czP1 = eeprom_read_word(&amp;zmienna_P1);<br />            ^<br />make: *** &#91;main.o&#93; B��d 1<br />&quot;make all&quot; terminated with exit code 2. Build might be incomplete.<br /><br />15:48:05 Build Failed. 1 errors, 13 warnings. (took 971ms)[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18152">AKSELINEK</a> — 2 cze 2023, o 15:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[micky]]></name></author>
<updated>2023-06-02T11:57:52+01:00</updated>
<published>2023-06-02T11:57:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237060#p237060</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237060#p237060"/>
<title type="html"><![CDATA[Re: Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237060#p237060"><![CDATA[
Jakiego warninga?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1546">micky</a> — 2 cze 2023, o 11:57</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[AKSELINEK]]></name></author>
<updated>2023-06-02T07:55:47+01:00</updated>
<published>2023-06-02T07:55:47+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237059#p237059</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237059#p237059"/>
<title type="html"><![CDATA[Problem ustawienia czasu dla RTC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=24491&amp;p=237059#p237059"><![CDATA[
Witam .<br />Zaskoczył mnie dzisiaj jeden fakt dotyczący ustawienia daty i godziny dla RTC. Program przepisywałem kiedyś z poradnika wideo Mirka.<br />Problem dotyczy dziwnego zjawiska ustawienia konkretnej daty i godziny np:<br /><br />  [syntax=c]set_rtc_datetime( &amp;datetime, 2023, 06, 2, 08 , 48, 0 );[/syntax]<br />i tu wywala mi Warminga  <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /> <br />Ale jak zapisze do zaprogramowania godzinę wcześniej czyli 07 np<br /><br />[syntax=c]set_rtc_datetime( &amp;datetime, 2023, 06, 2, 07 , 48, 0 );[/syntax]<br /><br />Program elegancko się kompiluje . Podpowiedzcie jaka może być przyczyna?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18152">AKSELINEK</a> — 2 cze 2023, o 07:55</p><hr />
]]></content>
</entry>
</feed>