<div dir="ltr"><div>DD,</div><div>pouzivam do embitz "vestaveny" STLInk GDB server (STLinkGDB.exe, 207872Bytes).</div><div>Podle vypisu ve verbose modu se zda ze chip by mohl byt podporovan (neni tam uvedeno unknown chip ID),</div><div>ale je fakt mozne ze nekde na hlubsi urovni neni.</div><div>mam tu jeste desticku s STM32F103 takze skusim jeste tu.</div><div><br></div><div>"Ukecany" vypis z Gbd serveru: </div><div><br></div><div>STLINK GDB Server (EmBitz Sep 30 2016 12:24:29)</div><div>Shutdown after disconnect is active.</div><div>Connect under reset is active.</div><div><br></div><div>Connected to STlink/V2 probe at 001:028</div><div>DEBUG: stlink current mode: mass</div><div>DEBUG: stlink current mode: mass</div><div>DEBUG: *** stlink_enter_swd_mode ***</div><div>INFO : Interface - SWD mode</div><div>DEBUG: *** stlink_reset ***</div><div>DEBUG: *** looking up stlink version</div><div>DEBUG: st vid = 0x0483 (expect 0x0483)</div><div>DEBUG: stlink pid = 0x3748</div><div>DEBUG: stlink version = 0x2</div><div>DEBUG: jtag version = 0x1c</div><div>DEBUG: swim version = 0x6</div><div>INFO : Loading device parameters....</div><div>DEBUG: *** stlink_core_id ***</div><div>DEBUG: core_id = 0x0bb11477</div><div>DEBUG: *** stlink_read_debug32 0 is 0xe0042000</div><div>DEBUG: *** stlink_read_debug32 10006445 is 0x40015800</div><div>DEBUG: *** stlink_read_debug32 ffff0020 is 0x1ffff7cc</div><div>INFO : Device connected is: F0 medium device, id 0x445</div><div>INFO : SRAM size: 0x1800 bytes (6 KiB), Flash: 0x8000 bytes (32 KiB) in pages of</div><div> 1024 bytes</div><div>Chip ID is 00000445, Core ID is 0bb11477.</div><div>Target voltage: 3.24</div><div>DEBUG: *** stlink_enter_swd_mode ***</div><div>INFO : Interface - SWD mode</div><div>DEBUG: *** stlink_force_debug_mode ***</div><div>DEBUG: *** stlink_reset ***</div><div>DEBUG: *** stlink_read_debug32 1 is 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 1000001 to 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001028</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001038</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001048</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001058</div><div>DEBUG: *** stlink_write_debug32 3 to 0xe0002000</div><div>DEBUG: *** stlink_read_debug32 41 is 0xe0002000</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002008</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe000200c</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002010</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002014</div><div>Number of HW-breakpoints: 4</div><div>Listening at *:4242...</div><div>GDB connected.</div><div>DEBUG: *** stlink_read_all_regs ***</div><div>DEBUG: *** stlink_write_debug32 3 to 0xe0002000</div><div>DEBUG: *** stlink_read_debug32 41 is 0xe0002000</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002008</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe000200c</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002010</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002014</div><div>DEBUG: *** stlink_force_debug_mode ***</div><div>DEBUG: *** stlink_read_debug32 1000001 is 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 1000001 to 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 5fa0004 to 0xe000ed0c</div><div>DEBUG: *** stlink_read_debug32 3030003 is 0xe000edf0</div><div>DEBUG: *** stlink_read_debug32 30003 is 0xe000edf0</div><div>DEBUG: *** stlink_write_debug32 1000000 to 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 3 to 0xe0002000</div><div>DEBUG: *** stlink_read_debug32 41 is 0xe0002000</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002008</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe000200c</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002010</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002014</div><div>DEBUG: *** stlink_read_debug32 1000000 is 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 1000000 to 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001028</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001038</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001048</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001058</div><div>Reset: system</div><div>GDB Program Transfer:</div><div>**</div><div>done.</div><div>DEBUG: *** stlink_reset ***</div><div>INFO : Starting verification of write complete</div><div>DEBUG: *** stlink_read_mem32 ***</div><div>INFO : Flash written and verified!</div><div>Flash skip unchanged page 0x8000000 of 0x400 bytes.</div><div>INFO : Starting verification of write complete</div><div>DEBUG: *** stlink_read_mem32 ***</div><div>INFO : Flash written and verified!</div><div>Flash skip unchanged page 0x8000400 of 0x400 bytes.</div><div>INFO : Starting verification of write complete</div><div>DEBUG: *** stlink_read_mem32 ***</div><div>INFO : Flash written and verified!</div><div>Flash skip unchanged page 0x8000800 of 0x400 bytes.</div><div>INFO : Starting verification of write complete</div><div>DEBUG: *** stlink_read_mem32 ***</div><div>INFO : Flash written and verified!</div><div>Flash skip unchanged page 0x8000c00 of 0x400 bytes.</div><div>INFO : Starting verification of write complete</div><div>DEBUG: *** stlink_read_mem32 ***</div><div>INFO : Flash written and verified!</div><div>Flash skip unchanged page 0x8001000 of 0x400 bytes.</div><div>INFO : Starting verification of write complete</div><div>DEBUG: *** stlink_read_mem32 ***</div><div>INFO : Flash written and verified!</div><div>Flash skip unchanged page 0x8001400 of 0x400 bytes.</div><div>DEBUG: *** stlink_reset ***</div><div>DEBUG: *** stlink_write_reg</div><div>DEBUG: *** stlink_read_reg</div><div>DEBUG: (16) ***</div><div>DEBUG: r_idx (16) = 0xc1000000</div><div>DEBUG: *** stlink_read_mem32 ***</div><div>DEBUG: *** stlink_read_all_regs ***</div><div>DEBUG: *** stlink_read_mem32 ***</div><div>DEBUG: *** stlink_read_reg</div><div>DEBUG: (16) ***</div><div>DEBUG: r_idx (16) = 0xc1000000</div><div>DEBUG: *** stlink_force_debug_mode ***</div><div>DEBUG: *** stlink_read_debug32 1 is 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 1 to 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 5fa0004 to 0xe000ed0c</div><div>DEBUG: *** stlink_read_debug32 3030003 is 0xe000edf0</div><div>DEBUG: *** stlink_read_debug32 30003 is 0xe000edf0</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 3 to 0xe0002000</div><div>DEBUG: *** stlink_read_debug32 41 is 0xe0002000</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002008</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe000200c</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002010</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0002014</div><div>DEBUG: *** stlink_read_debug32 0 is 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 1000000 to 0xe000edfc</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001028</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001038</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001048</div><div>DEBUG: *** stlink_write_debug32 0 to 0xe0001058</div><div>Reset: system</div><div>Write memory: address 0xE000ED08 (Data = 0x8000000)</div><div>DEBUG: *** stlink_write_mem32 4 bytes to 0xe000ed08</div><div>DEBUG: *** stlink_read_all_regs ***</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">Dne 11. listopadu 2016 17:31 Josef Štengl <span dir="ltr"><<a href="mailto:ok1ced@nagano.cz" target="_blank">ok1ced@nagano.cz</a>></span> napsal(a):<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Troufalý dotaz: co používáte za gdb? Respektive když přímo spustíte gdb, tak to pracuje nebo nikoliv?<br>
<br>
<br>
Dne 11.11.2016 v 15:20 tomas mainzer napsal(a):<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
ad embitz/debugovani (p.Buchta) - dekuji za zaslani projektu, ale ani se (temer) stejnym nastavenim jako mate vy to neslo.<br>
Sel jsem dokonce tak daleko ze jsem nainstaloval predchozi verzi embitz (tj. ve ktere byl vytvoren Vas projekt), prelozil<br>
jsem ho tam a skusil to debugovat. Bez vysledku.<br>
tj. dosavadni zaver: zda se ze nemoznost debugovani je neco mimo kontrolu prekladace (tj. ne nastavenim).<br>
takze muj OS: windows8<br>
ST-LINK Firmware version : V2J28S6<br>
Pokud nekoho napada co dalsiho by by mohlo byt pricinou, rad vyzkousim.<br>
TM.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br></span>
Dne 11. listopadu 2016 13:20 tomas mainzer <<a href="mailto:t.mainzer@gmail.com" target="_blank">t.mainzer@gmail.com</a> <mailto:<a href="mailto:t.mainzer@gmail.com" target="_blank">t.mainzer@gmail.com</a>>> napsal(a):<span class=""><br>
<br>
ad embitz/debugovani (p.Buchta) - nastaveni interface mame totozne. V nastaveni kompilatoru/linkeru jsem se jiz drive<br>
snazil nastavit co nejvice informaci, ale bez uspechu na moznost bebugovani. Pokud mate nejaky projekt (nebo alespon<br>
*.epb soubor) ktery je mozne poslat pokusil bych se porovnat nastaveni. Jako prekladac pouzivam ten Embitz baremetal.<br>
Diky. TM,<br>
<br>
<br>
<br></span>
Dne 11. listopadu 2016 12:21 Jaroslav Buchta <<a href="mailto:jaroslav.buchta@hascomp.cz" target="_blank">jaroslav.buchta@hascomp.cz</a> <mailto:<a href="mailto:jaroslav.buchta@hascomp.cz" target="_blank">jaroslav.buchta@hascom<wbr>p.cz</a>>> napsal(a):<span class=""><br>
<br>
S touto kombinaci pouzivam ladeni vsude a zcela bez problemu - neni spis problem v nastaveni prekladu, linkovani z<br>
hlediska ladicich informaci?<br>
Jeste kouknete na nastaveni interface, me to funguje s timto:<br>
<br>
<br>
<br>
<br></span><span class="">
Dne 11.11.2016 v 12:13 tomas mainzer napsal(a):<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dekuji za vsechny rady, reportuji prvni uspech - prvni odeslany paket na osciloskopu.<br>
Pro prvni prihlizeni pomohl zakaz preruseni, ackoliv prerusovaci rutina tam je. Tedy je tam zakopan pes kolem<br>
tohoto.<br>
Uprava kodu: CAN_ITConfig(CAN, CAN_IT_FMP0, DISABLE); //bylo: ENABLE<br>
<br>
K ladeni se poji dotaz - ma li nekdo zkusenosti - pouzivam Embitz + ST-link V2 (klon) - pripojeno pouze SWCLK a<br>
SWDIO.<br>
Procesor to naprogramuje, ale neni to ochotno spustit/krokovat. vypisuje to hlasku<br>
"Cannot find bounds of current function".<br>
pokud odpojim a pripojim napajeni program se normalne rozbehne, ale ladit se to neda.<br>
<br>
Pro pripadne zajemce dodavam: Aby sli importovane STL examply v embitz prelozit bylo treba do COMPILER settings<br>
/ defines pridat jeste polozku STM32F042 (embitz tam automaticky pri tvrobe projektu definoval pouze STM32F0xx<br>
a STM32F042K6 )<br>
<br>
T.<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
______________________________<wbr>_________________<br></span><span class="">
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a> <<a href="http://www.HW.cz" rel="noreferrer" target="_blank">http://www.HW.cz</a>><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a> <mailto:<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/list<wbr>info/hw-list</a> <<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/lis<wbr>tinfo/hw-list</a>><br>
<br>
<br>
<br>
<br>
<br></span><span class="">
______________________________<wbr>_________________<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/list<wbr>info/hw-list</a><br>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<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/list<wbr>info/hw-list</a><br>
</div></div></blockquote></div><br></div>