by po1nt · 5y ago · 0 comments
Everything about just compiling a code seems so tiresome and unstable in comparison with STM or Atmel environment. Yet still I love ESP32 even though I gave up trying to code it in Rust. Even C++ was not working well and had to make several pull requests to add `extern "C"`s into IDF codebase for my code to work.
I'm looking forward to improvements on the Rust environment.
Wouldn't abandoning Xtensa architecture for RISC-V help? Are there any plans to simplify the stack?
Of course ideally everything would just work on Windows, and there's nothing wrong with running Windows as your main os, but the reality is that especially bleeding edge software development tools will never be as good on Windows as they are on Linux or MacOS, just because bleeding edge open source software developers generally do not use Windows.
I play a lot of games and use lab software for electronic engineering so Windows is a must.
And try to convince my wife I need a third computer.
MacOS...has a monopoly on developing for Apple products, but I can't imagine the embedded toolchain is particularly good?
I do enjoy the image in my head of some hipster guy in a coffee shop with a macbook, scope, power supply and a bunch of wires sticking out a pcb trying to debug something though.
I think more embedded devlopers should insist on only using linux tooling. Windows is a broken platform for software development. Programming an embedded device should be as simple as using GCC and a flashing tool.
Requiring some kind of insane windows IDE seems like such a 1990 way to develop software, imo.
Personally, I've never experienced any better IDE than Visual Studio. I would call it bleeding edge.
FYI: There's already an official rust based rewrite of it: https://github.com/esp-rs/espflash
Also got it working on WSL2. I could install flashing and monitoring tools as Windows binaries, which have access to Windows ports. https://pfesenmeier.github.io/wsl2-and-embedded-development/
The rest of Espressif's product line, including the extremely popular original ESP32 and the older 8266, use different chip architecture (xtensa) that requires a more annoying setup.
Not having to install custom Rust toolchain for Xtensa chips was nice, too.
I mean, the new one's are already risc-v based and they added tier-3 compiler support for those in rust recently (1.56 IIRC), not sure if they still plan to release xtensa based ones in the future.
I use it's dual-core capabilities extensively as I heavily utilize WiFi and still have to maintain low-latency processing of IO input.
Didn't look much into RISC-V ESP but does it have some interrupts without multiplexor?
[0]: https://www.espressif.com/en/products/socs/esp32-c3
[1]: https://www.mouser.de/new/espressif/espressif-esp32c3wroom02...
> ESP32-C3 is a single-core, 32-bit, RISC-V-based MCU with 400KB of SRAM, which is capable of running at 160MHz