<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Tak nejak to funguje, zkousim ladeni
ESP32-C3 pres interni USB JTAG&CDC, CDC bez vyhrad ale JTAG
funguje ve spolupraci s GDB jak kdy...</div>
<div class="moz-cite-prefix">Kdyz selze, vypada to takto:</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Info : accepting 'gdb' connection on
tcp/3333<br>
Warn : No symbols for FreeRTOS!<br>
Info : [esp32c3] Found 8 triggers<br>
Info : Flash mapping 0: 0x10020 -> 0x3c0a0020, 103 KB<br>
Info : Flash mapping 1: 0x30020 -> 0x42000020, 632 KB<br>
Info : Auto-detected flash bank 'esp32c3.flash' size 4096 KB<br>
Info : Using flash bank 'esp32c3.flash' size 4096 KB<br>
Info : Flash mapping 0: 0x10020 -> 0x3c0a0020, 103 KB<br>
Info : Flash mapping 1: 0x30020 -> 0x42000020, 632 KB<br>
Info : Using flash bank 'esp32c3.irom' size 636 KB<br>
Info : Flash mapping 0: 0x10020 -> 0x3c0a0020, 103 KB<br>
Info : Flash mapping 1: 0x30020 -> 0x42000020, 632 KB<br>
Info : Using flash bank 'esp32c3.drom' size 104 KB<br>
Warn : negative reply, retrying<br>
Warn : negative reply, retrying<br>
Warn : negative reply, retrying<br>
Warn : Error writing to GDB socket. Dropping the connection.<br>
Info : dropped 'gdb' connection<br>
shutdown command invoked<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Kdyz nabehne OK, tak takto:</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Info : accepting 'gdb' connection on
tcp/3333<br>
Warn : No symbols for FreeRTOS!<br>
Info : [esp32c3] Found 8 triggers<br>
Info : Flash mapping 0: 0x10020 -> 0x3c0a0020, 103 KB<br>
Info : Flash mapping 1: 0x30020 -> 0x42000020, 632 KB<br>
Info : Auto-detected flash bank 'esp32c3.flash' size 4096 KB<br>
Info : Using flash bank 'esp32c3.flash' size 4096 KB<br>
Info : Flash mapping 0: 0x10020 -> 0x3c0a0020, 103 KB<br>
Info : Flash mapping 1: 0x30020 -> 0x42000020, 632 KB<br>
Info : Using flash bank 'esp32c3.irom' size 636 KB<br>
Info : Flash mapping 0: 0x10020 -> 0x3c0a0020, 103 KB<br>
Info : Flash mapping 1: 0x30020 -> 0x42000020, 632 KB<br>
Info : Using flash bank 'esp32c3.drom' size 104 KB<br>
Warn : negative reply, retrying<br>
Warn : negative reply, retrying<br>
Warn : Prefer GDB command "target extended-remote :3333" instead
of "target remote :3333"<br>
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg:
0x612 (Espressif Systems), part: 0x0005, ver: 0x0)<br>
Info : Reset cause (3) - (Software core reset)<br>
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg:
0x612 (Espressif Systems), part: 0x0005, ver: 0x0)<br>
Info : Reset cause (3) - (Software core reset)<br>
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg:
0x612 (Espressif Systems), part: 0x0005, ver: 0x0)<br>
Info : Reset cause (3) - (Software core reset)<br>
** Programming Started **<br>
Info : PROF: Erased 835584 bytes in 4909.54 ms<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Tusi nekdo, co je pricinou Warn :
negative reply, retryinga jestli se da nejakym parametrem zvetsit
pocet pokusu? Nezjistil jsem, na cem uspesnost zavisi ale mozna
kratky timeout?</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Dne 22.09.2022 v 22:33 Jaroslav Buchta
napsal(a):<br>
</div>
<blockquote type="cite"
cite="mid:babe3960-1a8a-f568-cbcf-39bcec3b317a@hascomp.cz">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Zdravim, nejdriv neco pozitivniho - ESP uz ma instalacni
balicek s nakonfigurovanym Eclipse. Funguje co se tyce prekladu
fajn. Pro ladeni JTAG je problem v OpenOCD, je na to patch a je
trosku problem mu ho vnutit (kontroluje verze)</p>
<p><a class="moz-txt-link-freetext"
href="https://dl.espressif.com/dl/esp-idf/"
moz-do-not-send="true">https://dl.espressif.com/dl/esp-idf/</a></p>
<p><a href="https://github.com/espressif/openocd-esp32/releases"
moz-do-not-send="true">Releases · espressif/openocd-esp32
(github.com)</a></p>
<p><br>
</p>
<p>Uz ve verzi 4.3 jsem narazil na chybu driveru I2C, kdy byla
cast kodu ISR provadena z XIP FLASH, funkce nic nedelala tak
jsem ji proste zakomentoval. Ve verzi 4.4 to vylepsili o dalsi
podobnou fci, uz jsem to moc neresil a napsal si to jen do
poznamky</p>
<p>diff --git a/components/driver/i2c.c b/components/driver/i2c.c<br>
index e00b023b8..dc4ea1eee 100644<br>
--- a/components/driver/i2c.c<br>
+++ b/components/driver/i2c.c<br>
@@ -1136,7 +1136,7 @@ static void IRAM_ATTR
i2c_master_cmd_begin_static(i2c_port_t i2c_num)<br>
break;<br>
}<br>
}<br>
- i2c_hal_update_config(&(i2c_context[i2c_num].hal));<br>
+// i2c_hal_update_config(&(i2c_context[i2c_num].hal));<br>
i2c_hal_trans_start(&(i2c_context[i2c_num].hal));<br>
return;<br>
}<br>
<br>
the same problem at function void IRAM_ATTR
i2c_hal_get_intsts_mask(i2c_hal_context_t *hal, uint32_t *mask),
IRAM missing</p>
<p>Nasledky jsou pri datove praci s FLASH fatalni.</p>
<p>To opravdu nikdo za ty roky nepoznal nebo nereportoval? Da se
tomu nejak pomoct a tyto problemy nahlasit?<br>
</p>
<p>Nove modely S3, C3 vypadaji zajimave, C3 mi dnes prisel, zitra
zkusim ladeni pres USB JTAG.<br>
</p>
<p><br>
</p>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
HW-list mailing list - sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>