Platform IO + ESP32
Petr Zapadlo
zapik na email.cz
Neděle Květen 23 14:14:42 CEST 2021
Zdravím,
Normálně používám PIO a Wemos D1 ESP32, framework Arduino a to funguje
bez problémů.
TeĎ jsem zkoušel vaši kombinaci a to proběhlo taky OK - teda trvalo to
tak 10 minut, ale normálně doběhlo. I prázdný projekt jde zkompilovat.
Nicméně to teď nemám do čeho nahrát - nemám tu po ruce žádnou ESP32.
Mám:
Deepin Linux 20.2.1 (based Debian 10)
Atom 1.57.0
PIO 5.1.1.
Petr
Dne 23. 05. 21 v 13:43 Jan Půhoný napsal(a):
> Hmm, tak fakt už nevím. Zkoušel jsem vytvořit projekt pro Node
> MCU ESP32S. To prostě zaboha nejde. Skončí to při nejlepším touto
> hláškou:
>
> PIO Core Call Error: "The current working directory
> C:\\Users\\uživatel\\Documents\\Prace\\Moje_projekty\\_ovladani_topeni\\ESP32-2019-ovladani_topeni\\platformio\\topeniESP32
> will be used for the project.\r\n\r\nThe next files/directories have
> been created in
> C:\\Users\\uživatel\\Documents\\Prace\\Moje_projekty\\_ovladani_topeni\\ESP32-2019-ovladani_topeni\\platformio\\topeniESP32\r\ninclude
> - Put project header files here\r\nlib - Put here project specific
> (private) libraries\r\nsrc - Put project source files
> here\r\nplatformio.ini - Project Configuration File\r\n\n\nError:
> Processing nodemcu-32s (platform: espressif32; board: nodemcu-32s;
> framework:
> espidf)\r\n--------------------------------------------------------------------------------\r\nVerbose
> mode can be enabled via `-v, --verbose` option\r\nCONFIGURATION:
> https://docs.platformio.org/page/boards/espressif32/nodemcu-32s.html\r\nPLATFORM
> <https://docs.platformio.org/page/boards/espressif32/nodemcu-32s.html\r\nPLATFORM>:
> Espressif 32 (3.2.0) > NodeMCU-32S\r\nHARDWARE: ESP32 240MHz, 320KB
> RAM, 4MB Flash\r\nDEBUG: Current (esp-prog) External (esp-prog,
> iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd,
> olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny,
> tumpa)\r\nPACKAGES: \r\n - framework-espidf 3.40200.210118 (4.2.0)
> \r\n - tool-cmake 3.16.4 \r\n - tool-esptoolpy 1.30000.201119 (3.0.0)
> \r\n - tool-idf 1.0.1 \r\n - tool-mconf 1.4060000.20190628 (406.0.0)
> \r\n - tool-ninja 1.9.0 \r\n - toolchain-esp32ulp 1.22851.191205
> (2.28.51) \r\n - toolchain-xtensa32 2.80400.210211 (8.4.0)\r\nReading
> CMake configuration...\r\n-- Found Git: C:/Program
> Files/Git/cmd/git.exe (found version \"2.14.1.windows.1\") \r\n-- The
> C compiler identification is GNU 8.4.0\r\n-- The CXX compiler
> identification is GNU 8.4.0\r\n-- The ASM compiler identification is
> GNU\r\n-- Found assembler:
> C:/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc.exe\r\n--
> Check for working C compiler:
> C:/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc.exe\r\n--
> Check for working C compiler:
> C:/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc.exe
> -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C
> compiler ABI info - done\r\n-- Detecting C compile features\r\n--
> Detecting C compile features - done\r\n-- Check for working CXX
> compiler:
> C:/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++.exe\r\n--
> Check for working CXX compiler:
> C:/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++.exe
> -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX
> compiler ABI info - done\r\n-- Detecting CXX compile features\r\n--
> Detecting CXX compile features - done\r\n-- Project is not inside a
> git repository, or git repository has no commits; will not use 'git
> describe' to determine PROJECT_VER.\r\n-- Building ESP-IDF components
> for target esp32\r\n-- Configuring incomplete, errors occurred!\r\nSee
> also
> \"C:/Users/uĹľivatel/Documents/Prace/Moje_projekty/_ovladani_topeni/ESP32-2019-ovladani_topeni/platformio/topeniESP32/.pio/build/nodemcu-32s/CMakeFiles/CMakeOutput.log\".\r\n\r\nfatal:
> Not a git repository (or any of the parent directories):
> .git\r\nTraceback (most recent call last):\r\n\r\n File
> \"C:\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\prepare_kconfig_files.py\",
> line 96, in <module>\r\n\r\n _prepare_source_files(env)\r\n\r\n File
> \"C:\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\prepare_kconfig_files.py\",
> line 67, in _prepare_source_files\r\n\r\n
> _write_source_file(env_dict['COMPONENT_KCONFIGS'],
> env_dict['COMPONENT_KCONFIGS_SOURCE_FILE'])\r\n\r\n File
> \"C:\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\prepare_kconfig_files.py\",
> line 63, in _write_source_file\r\n\r\n with open(config_file, 'w',
> encoding='utf-8') as f:\r\n\r\nFileNotFoundError: [Errno 2] No such
> file or directory:
> 'C:/Users/u┼żivatel/Documents/Prace/Moje_projekty/_ovladani_topeni/ESP32-2019-ovladani_topeni/platformio/topeniESP32/.pio/build/nodemcu-32s/kconfigs.in
> <http://kconfigs.in>'\r\n\r\nTraceback (most recent call
> last):\r\n\r\n File
> \"C:\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\confgen.py\",
> line 641, in <module>\r\n\r\n main()\r\n\r\n File
> \"C:\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\confgen.py\",
> line 261, in main\r\n\r\n config =
> kconfiglib.Kconfig(args.kconfig)\r\n\r\n File
> \"C:\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\kconfiglib.py\",
> line 947, in __init__\r\n\r\n self._init(filename, warn,
> warn_to_stderr, encoding)\r\n\r\n File
> \"C:\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\kconfiglib.py\",
> line 1085, in _init\r\n\r\n self._parse_block(None, self.top_node,
> self.top_node).next = None\r\n\r\n File
> \"C:\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\kconfiglib.py\",
> line 2970, in _parse_block\r\n\r\n raise
> KconfigError(\r\n\r\nkconfiglib.KconfigError:
> C:/.platformio/packages/framework-espidf/Kconfig:165:
> 'C:/Users/u┼żivatel/Documents/Prace/Moje_projekty/_ovladani_topeni/ESP32-2019-ovladani_topeni/platformio/topeniESP32/.pio/build/nodemcu-32s/kconfigs_projbuild.in
> <http://kconfigs_projbuild.in>' not found (in 'source
> \"$COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE\"'). Check that
> environment variables are set correctly (e.g. $srctree, which is unset
> or blank). Also note that unset environment variables expand to the
> empty string.\r\n\r\nCMake Error at
> C:/.platformio/packages/framework-espidf/tools/cmake/kconfig.cmake:225
> (message):\r\n Failed to run confgen.py\r\n
> (c:\\.platformio\\penv\\scripts\\python.exe;C:/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py;--kconfig;C:/.platformio/packages/framework-espidf/Kconfig;--sdkconfig-rename;C:/.platformio/packages/framework-espidf/sdkconfig.rename;--config;C:/Users/uĹľivatel/Documents/Prace/Moje_projekty/_ovladani_topeni/ESP32-2019-ovladani_topeni/platformio/topeniESP32/sdkconfig;--env-file;C:/Users/uĹľivatel/Documents/Prace/Moje_projekty/_ovladani_topeni/ESP32-2019-ovladani_topeni/platformio/topeniESP32/.pio/build/nodemcu-32s/config.env).\r\n
> Error 1\r\nCall Stack (most recent call first):\r\n
> C:/.platformio/packages/framework-espidf/tools/cmake/build.cmake:442
> (__kconfig_generate_config)\r\n
> C:/.platformio/packages/framework-espidf/tools/cmake/project.cmake:395
> (idf_build_process)\r\n CMakeLists.txt:3
> (project)\r\n\r\n\r\n\r\n========================= [FAILED] Took 11.25
> seconds ==========
>
> Zkoušel jsem restarty, spustit jako správce, chová se to pořád stejně.
> Prostě to ani nezaloží projekt.
>
> Funguje Vám ještě někomu platformio pro ESP32?
>
> Pro např. Arduino MEGE2560 jde projekt normálně přes toho průvodce
> vytvořit.
>
> Díky,
>
> Honza Půhoný
>
>
> pá 21. 5. 2021 v 20:26 odesílatel Jaroslav Buchta
> <jaroslav.buchta na hascomp.cz <mailto:jaroslav.buchta na hascomp.cz>> napsal:
>
> Me to slo bez problemu, ale par minut instalace netrvala, spis par
> desitek nebo mozna i nejake hodiny, nevim uz.
> To prostredi je na jednu stranu hezke a celkem funkcni, ale zacina
> mi dost vadit, ze si zije dost vlastnim zivotem a vsechno v nem
> neskutecne dlouho trva. Zatim to na ESP32 pouzivam ale nemam z
> toho velkou radost. Navic to ma proti IDF nestandardni strukturu
> adresaru projektu, nejak si to osetri, aby to prelozilo ale...
>
> Dne 21.05.2021 v 20:21 Jan Půhoný napsal(a):
>>
>> Dobrý večer,
>>
>> chtěl jsem si pohrát s ESP32 a Platform IO, které jsem po pomoci
>> z konference krásně rozchodil s normálním Arduinem, ale zaboha mi
>> nejde vytvořit projekt s ESP32.
>>
>> Vyberu desku, vyberu NodeMCU-32S, jako framework jsem chtěl
>> zkusit Esspressif IoT Development Framework, dám finish a pak to
>> píše:
>>
>> Please wait...
>> The first initialization requires Internet connection and may
>> take a while (need to install dependent toolchains, frameworks,
>> SDKs).
>> Please be patient and let the initialization complete.
>>
>> Jenže jsem to pustil ráno točí se to tady už na pozadí celý den.
>>
>> Čekal bych, že to bude trvat pár minut. Zkusil jsem to znovu po
>> restartu a stejné chování.
>>
>> Nezkoušel jste to někdo?
>>
>> Díky,
>>
>> Honza Půhoný
>>
>> _______________________________________________
>> HW-list mailing list - sponsored bywww.HW.cz <http://www.HW.cz>
>> Hw-list na list.hw.cz <mailto:Hw-list na list.hw.cz>
>> http://list.hw.cz/mailman/listinfo/hw-list <http://list.hw.cz/mailman/listinfo/hw-list>
>
>
> _______________________________________________
> HW-list mailing list - sponsored by www.HW.cz <http://www.HW.cz>
> Hw-list na list.hw.cz <mailto:Hw-list na list.hw.cz>
> http://list.hw.cz/mailman/listinfo/hw-list
> <http://list.hw.cz/mailman/listinfo/hw-list>
>
>
> _______________________________________________
> HW-list mailing list - sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://list.hw.cz/pipermail/hw-list/attachments/20210523/0543ec16/attachment.html>
Další informace o konferenci Hw-list