To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/0eafd067-b99d-4426-b856-03d2659b9a0dn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/0eafd067-b99d-4426-b856-03d2659b9a0dn%40googlegroups.com.
Thank you, Andrew
Problem is that the video assumes you know how to set up the environment, which I don't. Tried to have a look, but did not know which options to use.
I am definitely not an expert on platformio, but I was able to compile on esp8266 platform and make .bin files that works implementing support for MQTT over SSL + some extra sensors. Now I want to try the same using ESP32. Hoped this could be done by editing the platromio.ini file, but I suppose there must be something missing. It is not enough to change the board to esp32-c3-devkitm-1. It gives me an error:
Error: Unknown board ID 'esp32-c3-devkitm-1'
Thank you, Justin.
I suppose my problem is that I do not set up platformio correct. I have downloaded the Tasmota-master, and if I just use a build task on my_user_config.h then I can compile a binary that works on esp8266. Problem is that I want to compile for esp32.
As you might understand, I am in swimming in deep water, so I might be asking stupid questions (have been working on customer support for DEC a couple of years, so I know what kind of questions you could get😊)
All the best from
UIf
Fra: Justin Adie <justi...@adieandco.com>
Sendt: 08 October 2024 10:17
Til: Ulf Holt <ulf....@gmail.com>
Kopi: TasmotaUsers <sonof...@googlegroups.com>
Emne: Re: Compiling for ESP32
Esp32c3 is supported by platformio





On 8 Oct 2024, at 12:23, <ulf....@gmail.com> <ulf....@gmail.com> wrote:Thank you so much.Not sure if I was able to follow you correctly, but I now have a build task called tasmota32c3. When I try to run it I get the following error:riscv32-esp-elf-g++: fatal error: cannot execute 'c:/users/ulfho/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
Fra: Justin Adie <justi...@adieandco.com>
Sendt: 08 October 2024 12:38
Til: Ulf Holt <ulf....@gmail.com>
Kopi: SonoffUsers <sonof...@googlegroups.com>
Emne: Re: Compiling for ESP32
HiWith platformIO if you run the default task then it does a default action (which may actually compile every single target and take hours) and may not be what you actually want.You should just run the task you want. The steps are these:1. download the latest version of the tasmota source code.2 open VS Code and click on platformIO (the alien in the screen shot below)3. wait for the core to initialise. Press pick a folder4. select the folder that you downloaded the source code into5. locate user_config_override.ini and make the overrides that you need.6. click back on platformIO7. In the project tasks section locate your build target (see below). And expand the section.8. Wait. A very very very long time. VS Code and PlatformIO are building the build-target tasks in the background. On my laptop this takes 15 minutes or more.9. Plug your board in and make sure it is in download mode.10. click Upload.11. Wait ….Justin
On 8 Oct 2024, at 13:05, <ulf....@gmail.com> <ulf....@gmail.com> wrote:Maybe I should reinstall vscode and platformio – the registry entry was 0 when I installed.

On 8 Oct 2024, at 13:52, <ulf....@gmail.com> <ulf....@gmail.com> wrote:Rebooted after changing the registry settings. Removed the directories you told me to delete. I then started VS Code and waited for the reinitialise, I still get same error.Tried to follow the path using file explorer and it stops at:C:\Users\ulfho\.platformio\packages\toolchain-riscv32-esp\bin where I find a lot of executables
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/d113b6ae-ceaa-438f-9dcd-60cd901be0dan%40googlegroups.com.