positron96 / ESP32_CNC_Pendant

A CNC Pendant on ESP32 board, with LCD, WiFi and SD card
MIT License
70 stars 21 forks source link

hello errors #6

Closed andy0983 closed 1 year ago

andy0983 commented 1 year ago

hello errors when compiling the project with related to: .pio/libdeps/denky32/FreeRTOS-Kernel/event_groups.c: Assembler messages: .pio/libdeps/denky32/FreeRTOS-Kernel/event_groups.c:413: Error: unknown opcode or format name 'dsb' .pio/libdeps/denky32/FreeRTOS-Kernel/event_groups.c:413: Error: unknown opcode or format name 'isb' .pio/libdeps/denky32/FreeRTOS-Kernel/portable/GCC/ARM_CM3/portmacro.h:216: Error: unknown opcode or format name 'mrs' .pio/libdeps/denky32/FreeRTOS-Kernel/portable/GCC/ARM_CM3/portmacro.h:217: Error: bad register name: 3 .pio/libdeps/denky32/FreeRTOS-Kernel/portable/GCC/ARM_CM3/portmacro.h:217: Error: junk at end of line, first unrecognized character is `3'

please help

positron96 commented 1 year ago

Hello. denky32 library has no relation to this project. Please, investigate how it got into libdeps.

andy0983 commented 1 year ago

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'

andy0983 commented 1 year ago

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;

positron96 commented 1 year ago

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.

andy0983 commented 1 year ago

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:

Environment Status Duration


denky32 FAILED 00:00:17.323

andy0983 commented 1 year ago

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;

andy0983 commented 1 year ago

I really like the design, the housing and the operation, so I decided to do it. I hope I will succeed :)

positron96 commented 1 year ago

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:

andy0983 commented 1 year ago

image

andy0983 commented 1 year ago

I don't know what to do next I have this screen. I am connected to wifi

andy0983 commented 1 year ago

I tried to connect esp32 (usb) <--> Arduino (usb) grbl 1.1 but the screen is the same

positron96 commented 1 year ago

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.