took a while:
add line to base cmakeList.txt:
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
get_filename_component(ProjectId ${CMAKE_CURRENT_LIST_DIR} NAME)
string(REPLACE " " "_" ProjectId ${ProjectId})
set(PROJECT_VER "1.0.0.0")
project(${ProjectId})
idf ...
Search found 28 matches
- Sat Feb 28, 2026 1:40 pm
- Forum: ESP-IDF
- Topic: preprocessor directive visual studio code
- Replies: 1
- Views: 68
- Sat Feb 28, 2026 10:56 am
- Forum: ESP-IDF
- Topic: preprocessor directive visual studio code
- Replies: 1
- Views: 68
preprocessor directive visual studio code
I cannot get a global #define directive to work;
set in in c_cpp_properties.json
"configurations": [
{
"name": "ESP-IDF",
"defines": [
"TESTCASE"
],
"compilerPath": "/home/dig/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20251107/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc",
"compileCommands ...
set in in c_cpp_properties.json
"configurations": [
{
"name": "ESP-IDF",
"defines": [
"TESTCASE"
],
"compilerPath": "/home/dig/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20251107/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc",
"compileCommands ...
- Thu Jul 11, 2024 5:41 pm
- Forum: General Discussion
- Topic: Error__GLIBC_USE' is not defined when compiling cpp
- Replies: 2
- Views: 2461
Re: Error__GLIBC_USE' is not defined when compiling cpp
No succes.
I removed version 3 of the plugin and installed version 2.12 manually with the LSP preview enabled.
Works OK. I can use the LSP editor here without problems. Unfortunately i have to do this every time i open a file.
The default editor setting preference does nothing.
Dig
I removed version 3 of the plugin and installed version 2.12 manually with the LSP preview enabled.
Works OK. I can use the LSP editor here without problems. Unfortunately i have to do this every time i open a file.
The default editor setting preference does nothing.
Dig
- Thu Jul 11, 2024 1:43 pm
- Forum: General Discussion
- Topic: Error__GLIBC_USE' is not defined when compiling cpp
- Replies: 2
- Views: 2461
Error__GLIBC_USE' is not defined when compiling cpp
An (editor) error is generated at line:
#include "freertos/FreeRTOS.h
In included file: function-like macro '__GLIBC_USE' is not defined
/usr/include/limits.h:145:5:
note: error occurred here
This happens with .cpp files. c files OK.
The code builds OK.
I am using Espressif IDE 3.0.0 Build id ...
#include "freertos/FreeRTOS.h
In included file: function-like macro '__GLIBC_USE' is not defined
/usr/include/limits.h:145:5:
note: error occurred here
This happens with .cpp files. c files OK.
The code builds OK.
I am using Espressif IDE 3.0.0 Build id ...
- Mon Oct 02, 2023 9:57 am
- Forum: ESP-IDF
- Topic: gptimer high irq priority
- Replies: 2
- Views: 1798
Re: gptimer high irq priority
The irq function has to be called directly, not via the driver. This is why this function needs to be in assembly with a rfi at the end.
There are some examples that couple a GPIO to this function.See https://esp32.com/viewtopic.php?t=28008
But how to do this for the timer?
There are some examples that couple a GPIO to this function.See https://esp32.com/viewtopic.php?t=28008
But how to do this for the timer?
- Thu Sep 28, 2023 9:51 am
- Forum: ESP-IDF
- Topic: gptimer high irq priority
- Replies: 2
- Views: 1798
gptimer high irq priority
Hi,
I want to use gpTimer 0 for high prio irq. The irq handler (assembly) is called, but after rfi i get an unhandled kernel error. I have set the timer for Freertos to timer 1. I hope someone can help.
My very stripped down C code:
#include "driver/gptimer.h"
void xt_highint5( void);
void ...
I want to use gpTimer 0 for high prio irq. The irq handler (assembly) is called, but after rfi i get an unhandled kernel error. I have set the timer for Freertos to timer 1. I hope someone can help.
My very stripped down C code:
#include "driver/gptimer.h"
void xt_highint5( void);
void ...
- Sat Apr 03, 2021 3:36 pm
- Forum: ESP-IDF
- Topic: Eclipse IDF plugin misses C General Paths and Symbols
- Replies: 0
- Views: 1698
Eclipse IDF plugin misses C General Paths and Symbols
Hi
I miss the project property setting C General-> Paths and Symbols. Now the editor cannot find the library stuff.
Building is OK.
Latest plugin. latest Eclipse.
Dig
I miss the project property setting C General-> Paths and Symbols. Now the editor cannot find the library stuff.
Building is OK.
Latest plugin. latest Eclipse.
Dig
- Sat May 23, 2020 2:06 pm
- Forum: ESP-IDF
- Topic: SNTP and static IP
- Replies: 2
- Views: 4496
Re: SNTP and static IP
Hi markkuk
It would take 100 years for me to find out ...
It works with the right ips.
Thanks
Dig
It would take 100 years for me to find out ...
It works with the right ips.
Thanks
Dig
- Fri May 22, 2020 2:15 pm
- Forum: ESP-IDF
- Topic: SNTP and static IP
- Replies: 2
- Views: 4496
SNTP and static IP
Not the first post about this:
I have set dhcp off, set IP, mask and gateway.
Set sntpservers to "8.8.8.8" and " 1.1.1.1"
From the ESP i can ping these addresses, so the gateway is ok.
No time. What am i missing?
I "solved" the problem by starting with DHCP, getting the time, and moving to a fixed ...
I have set dhcp off, set IP, mask and gateway.
Set sntpservers to "8.8.8.8" and " 1.1.1.1"
From the ESP i can ping these addresses, so the gateway is ok.
No time. What am i missing?
I "solved" the problem by starting with DHCP, getting the time, and moving to a fixed ...
- Wed Dec 04, 2019 1:04 pm
- Forum: ESP-ADF
- Topic: which compiler for ADF
- Replies: 1
- Views: 3781
which compiler for ADF
Hi,
Do i have to install the (msis201810001) toolchain to use the ADF or only the 3.2.3 IDF ?
When will the ADF be updated to use 4.x IDF?
Dig
Do i have to install the (msis201810001) toolchain to use the ADF or only the 3.2.3 IDF ?
When will the ADF be updated to use 4.x IDF?
Dig