<div dir="ltr"><div>Jakmile zavolám funkci pro zápis do EEPROM (přerušovací rutiny Timerů mám samozřejmě jako RAM_ATTR včetně funkcí, které se z této rutiny volají), pak to spadne.</div><div>Využívám volání procesů přes xTaskCreate - to může být také problém.<br></div><div>Ano, nezkusil jsem úplně všechen kód přenést do RAM, protože to už asi není úplně ten pravý Workaround....</div><div>Jestliže bych nemohl používat xTaskCreate - tedy separátní task RTOSu, pak pro mě asi interní emulace EEPROM není použitelná.<br></div><div><br></div><div>O.</div><div><br></div><div><br></div><div>PUT data saved to EEPROM<br>Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed)<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.<br>Memory dump at 0x4017f260: bad00bad bad00bad bad00bad<br>Guru Meditation Error: CorGuru Meditation Error: Core 1 panic'ed (Unhandled debug exception)<br>Debug exception reason: Stack canary watchpoint triggered (loopTask)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">út 27. 8. 2019 v 17:00 odesílatel Jiří Nesvacil <<a href="mailto:nesvacil@posys.eu">nesvacil@posys.eu</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Behem zapisu do Flash je vypnuta cache FLASH. Ovsem jedna
instrukce neustale pristupuje do cache a cele to vypadne na
vyjimku nejspise v preruseni.</p>
<p>Dejte si do google Cache disabled but cached memory region
accessed <br>
</p>
<p style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:14px;font-style:normal;font-variant:normal;letter-spacing:normal;margin-bottom:16px;margin-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><b>the code that was
triggered by the interrupt did not have the IRAM_ATTR attribute.</b></p>
<span style="display:inline;float:none;background-color:rgb(255,255,255);color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:14px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;line-height:1.5;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
</span>
<p style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:14px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:16px;margin-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Most O/S library function cannot be called
from an ISR. Review your code, make sure that every function it
calls is local. and has the IRAM_ATTR attribute. For example, you
Cannot call Serial.print() from an ISR.</p>
<p>Oznacte tedy atributem <b>IRAM_ATTR</b> kod preruseni a je to.</p>
<p>Jirka<br>
</p>
<p><br>
</p>
<div class="gmail-m_5428768419251792362moz-cite-prefix">Dne 26.08.2019 v 16:21 Jaroslav Buchta
napsal(a):<br>
</div>
<blockquote type="cite">Jak uz
jsem psal, problem bude asi v tom, ze behem mazani a zapisu proste
musi bezet program vyhradne z RAM, pro obe jadra (nebo musi byt
zastaveno, nevim, to jsem nejak dukladne nezkoumal) Tipuju, ze je
to asi nejak chybne naprogramovano, treba nejake SW moduly
nepocitaji s timto stavem.
<br>
Zase se divim, ze by mel byt problem s timery - asi v souvislosti
s prerusenim, to musi bezet v RAM kazdopadne.
<br>
<br>
Dne 26.08.2019 v 15:23 Josef Štengl napsal(a):
<br>
<blockquote type="cite">Některé procesory nesnášejí přerušování
během zápisu do FLASH. Jestli se to týká i zápisu do FEE (FLASH
EMULATED EERPROM), to nevím, zatím jsem se tomu vyhýbal.
<br>
<br>
<br>
On 26. 08. 19 15:11, Dodo Racek wrote:
<br>
<blockquote type="cite">Dohad:
<br>
Skor si myslim, ze je to citlive na ine (cudzie) prerusenia
pocas zapisu do EEPROM.
<br>
<br>
Dodo
<br>
<br>
po 26. 8. 2019 o 15:00 Petr Zapadlo <<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:zapik@email.cz" target="_blank">zapik@email.cz</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="mailto:zapik@email.cz" target="_blank"><mailto:zapik@email.cz></a>> napísal(a):
<br>
<br>
proč zrovna timery jsou kolizní s EEPROM? To mi moc nedává
smysl. (ale je to tím že do toho asi málo vidím)
<br>
<br>
Petr
<br>
<br>
<br>
Dne 26.8.2019 v 14:26 Ondřej Pavelka napsal(a):
<br>
<blockquote type="cite"> Problém s emulací EEPROM na ESP32
bývá pravděpodobně způsobem použitím timerů.
<br>
Mám dva timery na 1s a 10ms, používám PWM na řízení LED
a do EEPROM prostě nazapíšu, aniž by to nehavarovalo.
<br>
<br>
O.
<br>
<br>
<br>
pá 23. 8. 2019 v 6:13 odesílatel Pavel Brychta
<<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:pavel.brychta@duhasys.eu" target="_blank">pavel.brychta@duhasys.eu</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="mailto:pavel.brychta@duhasys.eu" target="_blank"><mailto:pavel.brychta@duhasys.eu></a>> napsal:
<br>
<br>
Zdá se, že to řeší tento PR
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="https://github.com/z3t0/Arduino-IRremote/pull/599" target="_blank">https://github.com/z3t0/Arduino-IRremote/pull/599</a> , ale
zatím není sloučený...
<br>
<br>
Pavel
<br>
<br>
Dne 22.8.2019 v 21:33 Petr Zapadlo napsal(a):
<br>
<blockquote type="cite">
<br>
A tady je někdo se stejným problémem:
<br>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="https://github.com/espressif/arduino-esp32/issues/928" target="_blank">https://github.com/espressif/arduino-esp32/issues/928</a>
<br>
<br>
petr
<br>
<br>
<br>
Dne 22.8.2019 v 19:26 Petr Zapadlo napsal(a):
<br>
<blockquote type="cite">
<br>
Zdravím,
<br>
<br>
tak jsem našel viníka. Je jím knihovna
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="https://github.com/shirriff/Arduino-IRremote" target="_blank">https://github.com/shirriff/Arduino-IRremote</a>.
<br>
<br>
Když odkomentuji
<br>
<br>
irrecv.enableIRIn();
<br>
<br>
tak to při zápisu do EEPROM začne havarovat.
<br>
<br>
Otázka je jestli mám šanci to nějak vyřešit.
<br>
<br>
Petr
<br>
<br>
<br>
<br>
Dne 22.8.2019 v 06:16 Pavel Brychta napsal(a):
<br>
<blockquote type="cite"> DD,
<br>
<br>
zkuste vyrobit MCVE a pošlete mi takto
vytvořený projekt, včetně platformio.ini - ověřím to
na různých
<br>
variantáh ESP32 modulů, které mám k dispozici.
<br>
<br>
Pavel
<br>
<br>
Dne 20.8.2019 v 19:16 Petr Zapadlo napsal(a):
<br>
</blockquote>
<br>
<br>
<br>
_______________________________________________
<br>
HW-list mailing list - sponsored <a href="http://bywww.HW.cz" target="_blank">bywww.HW.cz</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="http://www.HW.cz" target="_blank"><http://www.HW.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="mailto:Hw-list@list.hw.cz" target="_blank"><mailto:Hw-list@list.hw.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
HW-list mailing list - sponsored <a href="http://bywww.HW.cz" target="_blank">bywww.HW.cz</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="http://www.HW.cz" target="_blank"><http://www.HW.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="mailto:Hw-list@list.hw.cz" target="_blank"><mailto:Hw-list@list.hw.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
</blockquote>
_______________________________________________
<br>
HW-list mailing list - sponsored by <a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="http://www.HW.cz" target="_blank">www.HW.cz</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="http://www.HW.cz" target="_blank"><http://www.HW.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a> <a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="mailto:Hw-list@list.hw.cz" target="_blank"><mailto:Hw-list@list.hw.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
<br>
<br>
<br>
_______________________________________________
<br>
HW-list mailing list - sponsored <a href="http://bywww.HW.cz" target="_blank">bywww.HW.cz</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="http://www.HW.cz" target="_blank"><http://www.HW.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a> <a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="mailto:Hw-list@list.hw.cz" target="_blank"><mailto:Hw-list@list.hw.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
</blockquote>
<br>
_______________________________________________
<br>
HW-list mailing list - sponsored by <a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="http://www.HW.cz" target="_blank">www.HW.cz</a>
<a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="http://www.HW.cz" target="_blank"><http://www.HW.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a> <a class="gmail-m_5428768419251792362moz-txt-link-rfc2396E" href="mailto:Hw-list@list.hw.cz" target="_blank"><mailto:Hw-list@list.hw.cz></a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
<br>
<br>
_______________________________________________
<br>
HW-list mailing list - sponsored by <a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="http://www.HW.cz" target="_blank">www.HW.cz</a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
<br>
</blockquote>
_______________________________________________
<br>
HW-list mailing list - sponsored by <a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="http://www.HW.cz" target="_blank">www.HW.cz</a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
HW-list mailing list - sponsored by <a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="http://www.HW.cz" target="_blank">www.HW.cz</a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>
<br>
<a class="gmail-m_5428768419251792362moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
</blockquote>
<div id="gmail-m_5428768419251792362DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<br><br>
<hr style="border:medium none;color:rgb(144,144,144);background-color:rgb(176,176,176);height:1px;width:99%">
<table style="border-collapse:collapse;border:medium none">
<tbody><tr>
<td style="border:medium none;padding:0px 15px 0px 8px">
<a href="http://www.avg.com/internet-security" target="_blank">
<img src="http://static.avast.com/emails/avg-mail-stamp.png" alt="Logo AVG" border="0">
</a>
</td>
<td>
<p style="color:rgb(61,77,90);font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
Tento e-mail byl zkontrolován na viry antivirovým softwarem AVG.
<br><a href="http://www.avg.com/internet-security" target="_blank">www.avg.cz</a>
</p>
</td>
</tr>
</tbody></table>
<br>
<a href="#m_5428768419251792362_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></div>
_______________________________________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
</blockquote></div>