<p style="padding:0 0 0 0; margin:0 0 0 0;">Ve Visual studio code používám v menu Terminal položku Run Build Task,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">který nastavím v task.json</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">{</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> // See https://go.microsoft.com/fwlink/?LinkId=733558</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> // for the documentation about the tasks.json format</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "version": "2.0.0",</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "tasks": [</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> {</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "label": "UltraTimer Task",</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "type": "shell",</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "command": " ..\\_c1.bat",</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "presentation": {</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "echo": true,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "reveal": "always",</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "focus": false,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "panel": "shared",</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "showReuseMessage": false,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "clear": true</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> },</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "group": {</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "kind": "build",</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "isDefault": true</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> },</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> "problemMatcher": []</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> }</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> ]</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">}</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Spouští se tu baťák _c1.bat,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">adresář projektu mám D:\Hardware\RaspPicoSDK\PICO_UltraPWM</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">----------- _c1.bat -----------</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">@echo off</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">rem Compilation...</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">set PATH=..\_tools;C:\ARM10\bin;%PATH%</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">if exist program.uf2 del program.uf2</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">make all</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">if errorlevel 1 goto err</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">if not exist program.uf2 goto err</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">echo.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">type program.siz</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">..\_e1.bat</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">goto end</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">:err</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">pause ERROR!</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">:end</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">----------------------------------</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"><span style="font-size: 10pt;">> Od: "Jaroslav Buchta" <jaroslav.buchta@hascomp.cz></span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">> Komu: hw-list@list.hw.cz<br />
> Datum: 30.10.2022 17:55<br />
> Předmět: Re: RPi-pico VSCode - build ve Windows<br />
></p>
Pouzivam to spousteni pres command prompt, taky se mi to moc nelibi ale <br />
da se s tim zit. Aspon zatim vsehno funguje...<br />
Hledal jsem, jak to rozchodit s Eclipse, neco se najit da ale uplne <br />
jednoduse to nevypada. Nemam na to ted cas, kdybyste to nekam posunul, <br />
rad se priucim ;-)<br />
<br />
Dne 30.10.2022 v 16:44 Marek Sembol napsal(a):<br />
> Zdravim,<br />
> Snazim se rozchododit subj, uz na tom sedim treti den a celkem neutesne :(<br />
> Snazim se zbuildit pico-examplex a porad to neni ono :(<br />
> 1. Nasel jsem navod (+nejaka videa na youtube) s pouzitim NMake. To mi <br />
> sice jede, ale VSCode musim startovat z 'developer cmd prompt' - to je <br />
> nesikovne<br />
> 2. Nasel jsem jedno video, kde manik pouziva MinGW, ale to mi proste <br />
> nefunguje. Konfigurace se vytvori, ale pak to zhavaruje s hlaskou:<br />
> [build] -- The C compiler identification is unknown<br />
> [build] -- The CXX compiler identification is unknown<br />
> [build] CMake Error at CMakeLists.txt:2 (project):<br />
> [build] No CMAKE_CXX_COMPILER could be found.<br />
> 3. Jeste mam nainstalovany "GNU make" make-3.81-GnuWin32 (ale taky <br />
> nevim jak ho zapojit 'do vyrobniho procesu')<br />
><br />
> Muj lokalni settings.json je:<br />
> {<br />
> "cmake.cmakePath": "C:\\Utilities\\CMake\\bin/cmake",<br />
> "cmake.configureEnvironment": {<br />
> "PICO_SDK_PATH": "C:\\Data\\RpiPico\\pico-sdk"<br />
> },<br />
> // "cmake.generator": "NMake Makefiles",<br />
> "cmake.generator": "MinGWMakefiles",<br />
> "cmake.mingwSearchDirs": [<br />
> "C:/Utilities/MinGW"<br />
> ],<br />
> "cmake.configureOnOpen": true,<br />
> }<br />
><br />
> Uz mi z toho mam osypky. Uz par dnu resim na stridacku toto a 'preklad <br />
> a spusteni PulseView na RPi 3B+'. Ten PV jsem nakonec zda se dal, ale <br />
> RPi pico odolava :(<br />
><br />
> Dik za pripadne rady,<br />
> Marek<br />
><br />
><br />
> _______________________________________________<br />
> HW-list mailing list - sponsored by www.HW.cz<br />
> Hw-list@list.hw.cz<br />
> <a href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a><br />
<br />
<br />
_______________________________________________<br />
HW-list mailing list - sponsored by www.HW.cz<br />
Hw-list@list.hw.cz<br />
<a href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a><br />