Search found 382 matches

by permal
Thu Nov 14, 2019 6:02 pm
Forum: General Discussion
Topic: Sharing a nifty trick with ULP coprocessor
Replies: 2
Views: 220

Re: Sharing a nifty trick with ULP coprocessor

I'd press the like-button if there were one :) thanks for sharing.
by permal
Thu Nov 14, 2019 5:56 pm
Forum: General Discussion
Topic: Is it recommended/practical to use C++ instead of plain C ?
Replies: 11
Views: 415

Re: Is it recommended/practical to use C++ instead of plain C ?

Late to the game, but the answer is absolutely "yes". I've written C++ on the ESP32 since day one (2.5 years ago) and never regretted the decision to do so. As always, you have to know your tool, so if you know C++, then there's no reason not use it on this platform imho. With the xtensa-gcc 8.2 com...
by permal
Tue Nov 05, 2019 10:07 pm
Forum: ESP32 IDF
Topic: writing code that can be run on both esp32 and desktop toolchain
Replies: 1
Views: 117

Re: writing code that can be run on both esp32 and desktop toolchain

I had the same idea some years back, it grew into a complete framework that can run on *nix and ESP32. for reference, this I/O card/alarm is built on top of Smooth

Depending on your application size and what else you need, writing parts as an external component/library might be enough for you.
by permal
Sun Oct 13, 2019 9:33 am
Forum: ESP32 IDF
Topic: Shared code and cross-platform stubs in IDF CMake API v4.0
Replies: 2
Views: 180

Re: Shared code and cross-platform stubs in IDF CMake API v4.0

You're welcome :)

Looking forward to you feedback. Smooth isn't perfect but it has worked well for me. Just recently a few others have also started using it so welcome to the club I guess. ;)
by permal
Sun Oct 13, 2019 9:03 am
Forum: ESP32 IDF
Topic: Help using CLion + CMake + ESP-IDF v4.0+
Replies: 8
Views: 403

Re: Help using CLion + CMake + ESP-IDF v4.0+

My question to the ESP devs is why does the 'build_system' 'idf_as_lib' example explicitly specify Ninja? I too pointed that out to them a while back. The answer I got was that Ninja is faster. So yes, just a preference. Btw, don't go down the route using IDF as a library, I've been down that rabbi...
by permal
Sun Oct 13, 2019 8:44 am
Forum: ESP32 IDF
Topic: Some basic questions
Replies: 5
Views: 316

Re: Some basic questions

flash = partition table, bootloader and the app
app-flash = flashes only the application, nothing else.

https://docs.espressif.com/projects/esp ... ystem.html

HTH
by permal
Sun Oct 13, 2019 8:38 am
Forum: General Discussion
Topic: Is there another ide for esp instead of Eclipse?
Replies: 4
Views: 469

Re: Is there another ide for esp instead of Eclipse?

CLion & VSCode both support CMake as project files.
by permal
Sun Oct 13, 2019 8:23 am
Forum: ESP32 IDF
Topic: Help using CLion + CMake + ESP-IDF v4.0+
Replies: 8
Views: 403

Re: Help using CLion + CMake + ESP-IDF v4.0+

There is no such thing as "CMake make file". CMake is a build system generator , not a build system. It generates whatever build system you tell it to. Make files, Ninja, Visual Studio solution... Unless you absolutely want CLion to use Ninja during compilation, just let it do its thing based on the...
by permal
Sat Oct 12, 2019 8:52 pm
Forum: ESP32 IDF
Topic: Help using CLion + CMake + ESP-IDF v4.0+
Replies: 8
Views: 403

Re: Help using CLion + CMake + ESP-IDF v4.0+

You can have CMake generate a build system for either make or Ninja; just don't specify "-G Ninja" on the command line and it defaults to regular make files (at least on Linux). I'm using both in parallel, Ninja when I run my CI, and the make file CodeBlocks-variant that CLion uses. I compile my cod...
by permal
Tue Oct 08, 2019 6:16 pm
Forum: ESP32 IDF
Topic: [solved] {fmt} and xtensa-esp32-elf-g++ 8.2.0 (crosstool-NG esp32-2019r1)
Replies: 0
Views: 95

[solved] {fmt} and xtensa-esp32-elf-g++ 8.2.0 (crosstool-NG esp32-2019r1)

Hi, I'm trying to use {fmt} (https://fmt.dev) in my project, but I'm stuck on the linker step - I suspect that there are missing pieces in the toolchain. The first few lines of the error message are these: externals/fmt/libfmtd.a(format.cc.obj):(.literal+0x0): undefined reference to `__xpg_strerror_...

Go to advanced search