Comments (12)
Hello. denky32
library has no relation to this project. Please, investigate how it got into libdeps
.
from esp32_cnc_pendant.
I get this error after compiling the project
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/devices/GrblDevice.cpp:1:
lib/FreeRTOS/stream_buffer.h:75:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
lib/FreeRTOS/stream_buffer.h:83:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
from esp32_cnc_pendant.
in this file stream_buffer.h there is an error with this struct
75 //////////////////////////////////
typedef struct xSTATIC_STREAM_BUFFER
{
size_t uxDummy1[ 4 ];
void * pvDummy2[ 3 ];
uint8_t ucDummy3;
#if ( configUSE_TRACE_FACILITY == 1 )
UBaseType_t uxDummy4;
#endif
} StaticStreamBuffer_t;
from esp32_cnc_pendant.
Ok, that's useful. Please provide output of compilation headers where it prints versions of toolchains. Also, do you have latest commit of this project? I've recently pinned ESP32 toolchain version, it might help.
from esp32_cnc_pendant.
Processing denky32 (platform: espressif32; board: denky32; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/denky32.html
PLATFORM: Espressif 32 (4.2.0) > Denky32 (WROOM32)
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20002.220503 (2.0.2)
- tool-esptoolpy @ 1.30300.0 (3.3.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP Async WebServer @ 1.2.3
| |-- AsyncTCP @ 1.1.1
| |-- ArduinoJson @ 6.19.4
| |-- FS @ 2.0.0
| |-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
| |-- WiFi @ 2.0.0
|-- SD @ 2.0.0
| |-- FS @ 2.0.0
| |-- SPI @ 2.0.0
|-- WiFi @ 2.0.0
|-- SPI @ 2.0.0
|-- U8g2 @ 2.34.5
| |-- SPI @ 2.0.0
| |-- Wire @ 2.0.0
|-- ArduinoJson @ 6.19.4
|-- AsyncTCP @ 1.1.1
|-- Embedded Template Library @ 20.35.2
|-- FreeRTOS
Building in release mode
Compiling .pio\build\denky32\src\InetServer.cpp.o
Compiling .pio\build\denky32\src\Job.cpp.o
Compiling .pio\build\denky32\src\devices\GCodeDevice.cpp.o
Compiling .pio\build\denky32\src\devices\GrblDevice.cpp.o
Compiling .pio\build\denky32\src\main.cpp.o
Compiling .pio\build\denky32\src\ui\DRO.cpp.o
Compiling .pio\build\denky32\src\ui\Display.cpp.o
Compiling .pio\build\denky32\src\ui\FileChooser.cpp.o
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/Job.h:7,
from src/Job.cpp:1:
lib/FreeRTOS/stream_buffer.h:74:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/Job.h:3,
from src/Job.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1373:16: note: previous definition
of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/Job.h:7,
from src/Job.cpp:1:
lib/FreeRTOS/stream_buffer.h:82:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/Job.h:3,
from src/Job.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1382:3: note: previous declaration
as 'typedef struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/devices/GrblDevice.cpp:1:
lib/FreeRTOS/stream_buffer.h:74:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/devices/GCodeDevice.h:3,
from src/devices/GrblDevice.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1373:16: note: previous definition
of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/devices/GrblDevice.cpp:1:
lib/FreeRTOS/stream_buffer.h:82:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/devices/GCodeDevice.h:3,
from src/devices/GrblDevice.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1382:3: note: previous declaration
as 'typedef struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/devices/GCodeDevice.cpp:1:
lib/FreeRTOS/stream_buffer.h:74:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/devices/GCodeDevice.h:3,
from src/devices/GCodeDevice.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1373:16: note: previous definition
of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/devices/GCodeDevice.cpp:1:
lib/FreeRTOS/stream_buffer.h:82:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/devices/GCodeDevice.h:3,
from src/devices/GCodeDevice.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1382:3: note: previous declaration
as 'typedef struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
*** [.pio\build\denky32\src\Job.cpp.o] Error 1
*** [.pio\build\denky32\src\devices\GrblDevice.cpp.o] Error 1
*** [.pio\build\denky32\src\devices\GCodeDevice.cpp.o] Error 1
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/Job.h:7,
from src/InetServer.cpp:8:
lib/FreeRTOS/stream_buffer.h:74:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/InetServer.h:3,
from src/InetServer.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1373:16: note: previous definition
of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/Job.h:7,
from src/InetServer.cpp:8:
lib/FreeRTOS/stream_buffer.h:82:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/InetServer.h:3,
from src/InetServer.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1382:3: note: previous declaration
as 'typedef struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
*** [.pio\build\denky32\src\InetServer.cpp.o] Error 1
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/ui/../devices/GCodeDevice.h:6,
from src/ui/Screen.h:9,
from src/ui/FileChooser.h:3,
from src/ui/FileChooser.cpp:1:
lib/FreeRTOS/stream_buffer.h:74:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/ui/Screen.h:3,
from src/ui/FileChooser.h:3,
from src/ui/FileChooser.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1373:16: note: previous definition
of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/ui/../devices/GCodeDevice.h:6,
from src/ui/Screen.h:9,
from src/ui/FileChooser.h:3,
from src/ui/FileChooser.cpp:1:
lib/FreeRTOS/stream_buffer.h:82:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/ui/Screen.h:3,
from src/ui/FileChooser.h:3,
from src/ui/FileChooser.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1382:3: note: previous declaration
as 'typedef struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/ui/../devices/GCodeDevice.h:6,
from src/ui/Display.h:11,
from src/ui/Display.cpp:1:
lib/FreeRTOS/stream_buffer.h:74:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/ui/Display.h:3,
from src/ui/Display.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1373:16: note: previous definition
of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/ui/../devices/GCodeDevice.h:6,
from src/ui/Display.h:11,
from src/ui/Display.cpp:1:
lib/FreeRTOS/stream_buffer.h:82:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/ui/Display.h:3,
from src/ui/Display.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1382:3: note: previous declaration
as 'typedef struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/main.cpp:7:
lib/FreeRTOS/stream_buffer.h:74:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/main.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1373:16: note: previous definition
of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/devices/GCodeDevice.h:6,
from src/main.cpp:7:
lib/FreeRTOS/stream_buffer.h:82:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from src/main.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1382:3: note: previous declaration
as 'typedef struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/ui/../devices/GCodeDevice.h:6,
from src/ui/Screen.h:9,
from src/ui/DRO.h:6,
from src/ui/DRO.cpp:1:
lib/FreeRTOS/stream_buffer.h:74:16: error: redefinition of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from lib/ArduinoJson/src/ArduinoJson.hpp:13,
from lib/ArduinoJson/src/ArduinoJson.h:9,
from src/ui/DRO.h:3,
from src/ui/DRO.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1373:16: note: previous definition
of 'struct xSTATIC_STREAM_BUFFER'
typedef struct xSTATIC_STREAM_BUFFER
^~~~~~~~~~~~~~~~~~~~~
In file included from lib/FreeRTOS/message_buffer.h:72,
from src/CommandQueue.h:5,
from src/ui/../devices/GCodeDevice.h:6,
from src/ui/Screen.h:9,
from src/ui/DRO.h:6,
from src/ui/DRO.cpp:1:
lib/FreeRTOS/stream_buffer.h:82:3: error: conflicting declaration 'typedef int StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from lib/ArduinoJson/src/ArduinoJson.hpp:13,
from lib/ArduinoJson/src/ArduinoJson.h:9,
from src/ui/DRO.h:3,
from src/ui/DRO.cpp:1:
C:/Users/ANDY/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1382:3: note: previous declaration
as 'typedef struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t'
} StaticStreamBuffer_t;
^~~~~~~~~~~~~~~~~~~~
*** [.pio\build\denky32\src\ui\FileChooser.cpp.o] Error 1
*** [.pio\build\denky32\src\ui\Display.cpp.o] Error 1
*** [.pio\build\denky32\src\ui\DRO.cpp.o] Error 1
*** [.pio\build\denky32\src\main.cpp.o] Error 1
================================================================= [FAILED] Took 17.32 seconds =================================================================
Environment Status Duration
denky32 FAILED 00:00:17.323
from esp32_cnc_pendant.
if I remove this part of the code, there is no error and it compiles but nothing is displayed
(I checked the settings and connecting the display on another project and it works)
typedef struct xSTATIC_STREAM_BUFFER
{
size_t uxDummy1[ 4 ];
void * pvDummy2[ 3 ];
uint8_t ucDummy3;
#if ( configUSE_TRACE_FACILITY == 1 )
UBaseType_t uxDummy4;
#endif
} StaticStreamBuffer_t;
from esp32_cnc_pendant.
I really like the design, the housing and the operation, so I decided to do it.
I hope I will succeed :)
from esp32_cnc_pendant.
Ok, your Espressif 32 platform version is 4.2.0, while the project is written for 3.5.0 at the moment. Could you please try the following:
- remove 4.2.0 platform (should not be necessary, but just to be sure),
- checkout the latest commit of the project,
- clean&build the project.
from esp32_cnc_pendant.
from esp32_cnc_pendant.
I don't know what to do next I have this screen.
I am connected to wifi
from esp32_cnc_pendant.
I tried to connect esp32 (usb) <--> Arduino (usb) grbl 1.1 but the screen is the same
from esp32_cnc_pendant.
Hi. You need to connect the arduino and ESP32 via UART. For testing purposes, direct cross connection of RX-TX will work, but for long-term I recommend a 3.3V-5V level shifter.
from esp32_cnc_pendant.
Related Issues (8)
- Missing file HOT 6
- connection to CNC machine HOT 6
- Test Conditions for CNC ESP32 HOT 3
- Glcd not working..... HOT 5
- Pin ESP32 SDK version HOT 2
- F360 or STEP files available? HOT 6
- Adding custom Button(s). HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32_cnc_pendant.