<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><span style="font-family:monospace">Ak chcete ladit vo VSC,
nainstalujte si extension "Native debug".<br>
<br>
Konfiguracia by mohla vyzerat takto:</span></p>
<p><span style="font-family:monospace">tasks.json<br>
</span></p>
<div
style="color: #cccccc;background-color: #1f1f1f;font-family: 'Droid Sans Mono', 'monospace', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span
style="color: #cccccc;">{</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #9cdcfe;">"version"</span><span
style="color: #cccccc;">: </span><span style="color: #ce9178;">"2.0.0"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #9cdcfe;">"tasks"</span><span
style="color: #cccccc;">: [</span></div><div><span
style="color: #cccccc;"> {</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"label"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"do_compile_program"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"type"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"shell"</span><span style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"command"</span><span
style="color: #cccccc;">: </span><span style="color: #ce9178;">"gcc --version"</span></div><div><span
style="color: #cccccc;"> },</span></div><div><span
style="color: #cccccc;"> {</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"label"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"do_load_program"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"type"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"shell"</span><span style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"command"</span><span
style="color: #cccccc;">: </span><span style="color: #ce9178;">"echo --help"</span><span
style="color: #cccccc;">, </span></div><div><span
style="color: #cccccc;"> },</span></div><div><span
style="color: #cccccc;"> {</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"label"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"compile_and_load"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"dependsOn"</span><span
style="color: #cccccc;">:[</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #ce9178;">"do_compile_program"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #ce9178;">"do_load_program"</span></div><div><span
style="color: #cccccc;"> ]</span></div><div><span
style="color: #cccccc;"> }, </span></div>
<div><span style="color: #cccccc;"> ]</span></div><div><span
style="color: #cccccc;">}</span></div></div>
<p><span style="font-family:monospace">launch.json</span></p>
<div
style="color: #cccccc;background-color: #1f1f1f;font-family: 'Droid Sans Mono', 'monospace', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span
style="color: #cccccc;">{</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #9cdcfe;">"launch"</span><span
style="color: #cccccc;">: {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #9cdcfe;">"configurations"</span><span
style="color: #cccccc;">: [</span></div><div><span
style="color: #cccccc;"> </span></div><div><span
style="color: #cccccc;"> {</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"type"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"gdb"</span><span style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"request"</span><span
style="color: #cccccc;">: </span><span style="color: #ce9178;">"launch"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"name"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"Launch Program"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"target"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"./bin/executable"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"cwd"</span><span style="color: #cccccc;">: </span><span
style="color: #ce9178;">"${workspaceRoot}"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"valuesFormatting"</span><span
style="color: #cccccc;">: </span><span style="color: #ce9178;">"parseText"</span><span
style="color: #cccccc;">,</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #9cdcfe;">"preLaunchTask"</span><span
style="color: #cccccc;">: </span><span style="color: #ce9178;">"compile_and_load"</span></div><div><span
style="color: #cccccc;"> }</span></div>
<div><span style="color: #cccccc;"> ]</span></div><div><span
style="color: #cccccc;"> }</span></div><div><span
style="color: #cccccc;">}</span></div></div>
<p></p>
<div class="moz-cite-prefix">On 2/16/25 18:05, Pavel Hudeček wrote:<br>
</div>
<blockquote type="cite"
cite="mid:24e64416-6bea-4b1f-9fc3-a54e9f9497c1@seznam.cz">Dobrý
den všem,
<br>
mějme nainstalovaný VScode, AVRdude, Microchip studio, připojený
kit ATtiny416 Xplained Nano a přes něj zapojené UPDI do zařízení s
procesorem ATtiny814. Není problém spustit kompilaci přes GCC-AVR
nainstalované v Microchip Studiu příkazem mimo Microchip studio,
to funguje.
<br>
Taktéž funguje nahrání výsledného kódu pomocí avrdude přes Xnano
do připojeného zařízení.
<br>
<br>
Chtěl bych, aby tlačítko Run and debug ve VScode tohle spouštělo.
<br>
<br>
Každý z těch koroků znám, ale už nevím jak je zakomponovat do,
předpokládám, launch.json a možná ještě tasks.json? Ale jejich
obsahu moc nerozumím.
<br>
<br>
Určitě tohle už někdo řešil, ale nedaří se mi to najít.
<br>
<br>
Díky,
<br>
PH
<br>
_______________________________________________
<br>
HW-list mailing list - sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
<br>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
</blockquote>
</body>
</html>