Search found 28 matches

by GreenGiant
Wed Nov 03, 2021 3:40 pm
Forum: General Discussion
Topic: clang-tidy
Replies: 0
Views: 1342

clang-tidy

Has anyone managed to successfully use clang-tidy (or another good linter) with the IDF cmake build system?

In particular, IDF 4v3, using the vscode extension.

I've tried but failed!

Cheers
by GreenGiant
Wed Oct 20, 2021 11:52 am
Forum: ESP-IDF
Topic: Linking external libraries and interfaces with CMake
Replies: 2
Views: 3130

Re: Linking external libraries and interfaces with CMake

Sprite, many thanks. No idea how I missed this in the docs, apologies. So I have got the CMake side of things working now with GSL (interface, header only lib) and JsonCpp, using you suggestions. If anyone reading is still struggling the commit is public, so hopefully this helps you out: https://git...
by GreenGiant
Tue Oct 19, 2021 7:36 pm
Forum: ESP-IDF
Topic: Linking external libraries and interfaces with CMake
Replies: 2
Views: 3130

Linking external libraries and interfaces with CMake

When using CMake to build a desktop programme, you can link in external libraries. For example, if I wanted to link in the jsoncpp library on linux (libjsoncpp-dev), my root CMakeLists.txt might look like: project(myprogram) find_package(PkgConfig REQUIRED) pkg_check_modules(JSONCPP jsoncpp) link_li...
by GreenGiant
Tue Oct 19, 2021 7:18 pm
Forum: ESP-IDF
Topic: Build flags for my code only
Replies: 3
Views: 3033

Re: Build flags for my code only

Yep, that was exactly the issue, thanks. Pragmas have come to the rescue for now. Cheers
by GreenGiant
Wed Oct 06, 2021 9:05 am
Forum: ESP-IDF
Topic: Build flags for my code only
Replies: 3
Views: 3033

Re: Build flags for my code only

Just to add the why... With these two flags there are a LOT of warnings, particularly in the use of anonymous structs, e.g.: /home/simon/_esp4v3/esp-idf/components/soc/esp32/include/soc/gpio_struct.h:187:9: warning: ISO C++ prohibits anonymous structs [-Wpedantic] }; ^ /home/simon/_esp4v3/esp-idf/co...
by GreenGiant
Fri Oct 01, 2021 9:27 am
Forum: ESP-IDF
Topic: Build flags for my code only
Replies: 3
Views: 3033

Build flags for my code only

Using: target_compile_options(${COMPONENT_LIB} PRIVATE -Wall -Wpedantic) This is very handy however it flags issues with the IDF, which I don't really care about. Is there an elegant way to confine the extra build flags to my project code/components ONLY and not IDF components, without needing to li...
by GreenGiant
Fri Aug 20, 2021 9:58 am
Forum: ESP-IDF
Topic: ESP-MQTT with custom tx and rx
Replies: 0
Views: 1223

ESP-MQTT with custom tx and rx

Is it possible to use the ESP-MQTT library but override the default low level send and receive functions? Using IDF v3.3 release. For example, I have an ESP32 WROOM connected to a cellular modem which is connected over UART using AT commands. On the modem I have setup a TLS/SSL connection to AWS-IoT...
by GreenGiant
Tue Mar 16, 2021 12:27 pm
Forum: ESP-IDF
Topic: kconfig for setting IDF params
Replies: 1
Views: 1853

kconfig for setting IDF params

Question regarding kconfig and the menuconfig system. I have a custom parameter in my project kconfig which can be "release" or "devboard". The main point of this is on my product we are using UART0 on GPIO1,3 for communication to another device, then use UART1 on different pins for the normal conso...
by GreenGiant
Wed Jul 08, 2020 1:38 pm
Forum: ESP-IDF
Topic: HFP Unknown AT+CSRSF
Replies: 0
Views: 2077

HFP Unknown AT+CSRSF

I am using the hfp ag example, trying to connect to a Blaupunkt Bluetooth speaker that supports HFP. I'm getting errors from the BTM layer and unknown AT commands which google isn't throwing any hits for. Any ideas? I (506) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting schedule...
by GreenGiant
Mon Jul 06, 2020 2:37 pm
Forum: ESP-ADF
Topic: LyraT-Mini Shipped Firmware
Replies: 0
Views: 2598

LyraT-Mini Shipped Firmware

Is there anywhere to download the binary/elf that the LyraT-Mini ships with? Or, if it is one of the example projects in the ADF, which one?

Many thanks