Code Monkey home page Code Monkey logo

Comments (12)

terjeio avatar terjeio commented on September 14, 2024

0x40080400: _init at ??:? //What is the cause of these ??:? in the monitor

Is it a problem?
The startup log in this ESP page show the same message so it is perhaps normal?

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

This is the output of " idf.py -p /dev/ttyUSB0 monitor", but after "entry 0x400805e4", I don't get more output.
This is not in the output;
"I (26) boot: ESP-IDF v4.2.2-76-gefa6eca 2nd stage bootloader"
and so on
till
"I (691) boot: Disabling RNG early entropy source...
module_name:WROOM-32
max tx power=78,ret=0
2.2.0"

When the protoneerboard V3 is installed and despite the resistor is cut off, the software goes in a loop.
Without the board it goes not in a loop, but all commands were not answered.
I only get back; "GrblHAL 1.1f ['$' or '$HELP' for help]".
I hope you understand this.

jan@jan-LubuntuEST32:~/esp/esp-idf/ESP32$ idf.py -p /dev/ttyUSB0 monitor
Executing action: monitor
Running idf_monitor in directory /home/jan/esp/esp-idf/ESP32
Executing "/home/jan/.espressif/python_env/idf4.4_py3.10_env/bin/python /home/jan/esp/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /home/jan/esp/esp-idf/ESP32/build/grbl.elf -m '/home/jan/.espressif/python_env/idf4.4_py3.10_env/bin/python' '/home/jan/esp/esp-idf/tools/idf.py' '-p' '/dev/ttyUSB0'"...
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:12784
load:0x40080400,len:3040
0x40080400: _init at ??:? //What is the cause of these ??:? in the monitor

entry 0x400805e4

GrblHAL 1.1f ['$' or '$HELP' for help]

from esp32.

terjeio avatar terjeio commented on September 14, 2024

Could this be due to you using ESP-IDF v4.4 and that has breaking changes vs v4.3 that I am using?

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

I will try ESP-IDF v4.3

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

Dear terjeio,

I did all with ESP-IDF v4.3.
Without the protoneerboard V3 it is working with bCNC, but when the board is connected to the ESPduino bCNC could not connect with /dev/ttyUSB0.
The monitor over the serial pins TX and RX gives then only "error".

ESP-IDF v4.3

jan@jan-LubuntuESP32:~/esp/esp-idf/ESP32$ idf.py -p /dev/ttyUSB0 flash

Executing action: flash
Running ninja in directory /home/jan/esp/esp-idf/ESP32/build
Executing "ninja flash"...
[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cd /home/jan/esp/esp-idf/components/esptool_py && /usr/...e/jan/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
esptool.py esp32 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 grbl.bin
esptool.py v3.1-dev
Serial port /dev/ttyUSB0
Connecting........_
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 30:c6:f7:2f:b6:c4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x0005ffff...
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 768.8 kbit/s)...
Hash of data verified.
Compressed 25024 bytes to 15377...
Writing at 0x00001000... (100 %)
Wrote 25024 bytes (15377 compressed) at 0x00001000 in 0.5 seconds (effective 431.6 kbit/s)...
Hash of data verified.
Compressed 326624 bytes to 186566...
Writing at 0x00010000... (8 %)
Writing at 0x0001b1e3... (16 %)
Writing at 0x00025b29... (25 %)
Writing at 0x0002b3a6... (33 %)
Writing at 0x0003126e... (41 %)
Writing at 0x00036e5a... (50 %)
Writing at 0x0003c322... (58 %)
Writing at 0x00041ef6... (66 %)
Writing at 0x0004780b... (75 %)
Writing at 0x0004cf22... (83 %)
Writing at 0x00053ce5... (91 %)
Writing at 0x0005d5c7... (100 %)
Wrote 326624 bytes (186566 compressed) at 0x00010000 in 4.5 seconds (effective 579.5 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Done

an@jan-LubuntuESP32:~/esp/esp-idf/ESP32$ idf.py -p /dev/ttyUSB0 monitor

Executing action: monitor
Running idf_monitor in directory /home/jan/esp/esp-idf/ESP32
Executing "/home/jan/.espressif/python_env/idf4.3_py3.10_env/bin/python /home/jan/esp/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- /home/jan/esp/esp-idf/ESP32/build/grbl.elf -m '/home/jan/.espressif/python_env/idf4.3_py3.10_env/bin/python' '/home/jan/esp/esp-idf/tools/idf.py' '-p' '/dev/ttyUSB0'"...
/home/jan/esp/esp-idf/tools/idf_monitor.py:518: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if StrictVersion(serial.VERSION) < StrictVersion('3.3.0'):
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6948
load:0x40078000,len:14292
load:0x40080400,len:3688
0x40080400: _init at ??:?

entry 0x40080678
I (27) boot: ESP-IDF v4.3 2nd stage bootloader
I (27) boot: compile time 22:13:20
I (27) boot: chip revision: 1
I (29) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (36) boot.esp32: SPI Speed : 40MHz
I (41) boot.esp32: SPI Mode : DIO
I (46) boot.esp32: SPI Flash Size : 2MB
I (50) boot: Enabling RNG early entropy source...
I (56) boot: Partition Table:
I (59) boot: ## Label Usage Type ST Offset Length
I (66) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (74) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (81) boot: 2 factory factory app 00 00 00010000 00100000
I (89) boot: End of partition table
I (93) boot_comm: chip revision: 1, min. application chip revision: 0
I (100) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=111c8h ( 70088) map
I (135) esp_image: segment 1: paddr=000211f0 vaddr=3ffb0000 size=02f4ch ( 12108) load
I (140) esp_image: segment 2: paddr=00024144 vaddr=40080000 size=0bed4h ( 48852) load
I (162) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=2df7ch (188284) map
I (233) esp_image: segment 4: paddr=0005dfa4 vaddr=4008bed4 size=01c00h ( 7168) load
I (236) esp_image: segment 5: paddr=0005fbac vaddr=50000000 size=00010h ( 16) load
I (247) boot: Loaded app from partition at offset 0x10000
I (247) boot: Disabling RNG early entropy source...
I (262) cpu_start: Pro cpu up.
I (262) cpu_start: Starting app cpu, entry point is 0x40081384
0x40081384: call_start_cpu1 at /home/jan/esp/esp-idf/components/esp_system/port/cpu_start.c:141

I (0) cpu_start: App cpu up.
I (276) cpu_start: Pro cpu start user code
I (276) cpu_start: cpu freq: 160000000
I (276) cpu_start: Application information:
I (281) cpu_start: Project name: grbl
I (285) cpu_start: App version: 5c4e6cf-dirty
I (291) cpu_start: Compile time: Jun 26 2022 22:13:16
I (297) cpu_start: ELF file SHA256: d23a94ae89443cd5...
I (303) cpu_start: ESP-IDF: v4.3
I (308) heap_init: Initializing. RAM available for dynamic allocation:
I (315) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (321) heap_init: At 3FFB6000 len 0002A000 (168 KiB): DRAM
I (327) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (333) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (340) heap_init: At 4008DAD4 len 0001252C (73 KiB): IRAM
I (347) spi_flash: detected chip: generic
I (351) spi_flash: flash io: dio
W (355) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (369) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
E (20) gpio: GPIO can only be used as input mode
I (40) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (40) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (50) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (60) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (70) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:1
I (80) gpio: GPIO[4]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1
I (100) gpio: GPIO[2]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1
E (100) gpio: gpio_set_level(237): GPIO output gpio_num error
E (110) gpio: gpio_set_level(237): GPIO output gpio_num error

GrblHAL 1.1f ['$' or '$HELP' for help]
E (130) gpio: gpio_set_level(237): GPIO output gpio_num error
E (130) gpio: gpio_set_level(237): GPIO output gpio_num error

from esp32.

terjeio avatar terjeio commented on September 14, 2024

Have you modified the board map (protoneer_3.xx_map.h)?
Please attach your main/CMakeLists.txt to a comment so I can try it.

It is a bit odd that you get detailed output on startup - this is what I get:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1456
load:0x40078000,len:12260
ho 0 tail 12 room 4
load:0x40080400,len:3064
entry 0x400805ec

GrblHAL 1.1f ['$' or '$HELP' for help]
[MSG:'$H'|'$X' to unlock]

$I response:

[VER:1.1f.20220625:]
[OPT:VNMSL,35,1024,3,0]
[NEWOPT:ENUMS,RT+,TC,SED]
[FIRMWARE:grblHAL]
[NVS STORAGE:*FLASH]
[DRIVER:ESP32]
[DRIVER VERSION:220327]
[DRIVER OPTIONS:v4.3.1-dirty]
[BOARD:Protoneer v3]
ok

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

I have used this without the protoneerboard and with bCNC, but I saw much "?" signs between the grbl code over minicom /dev/ttyACM0. (serial uart0)
This setup has only works one evening when I prepared this ESPduino, next day it couldn't connect with bCNC.
Then I made yesterday a new setup from "https://github.com/grblHAL/ESP32".

git clone -b release/v4.3 --recursive --shallow-submodules https://github.com/espressif/esp-idf.git

$I

[VER:1.1f.20220625:]
[OPT:VNMSL,35,1024,3,0]
[NEWOPT:ENUMS,RT+,TC,SED]
[FIRMWARE:grblHAL]
[NVS STORAGE:*FLASH]
[DRIVER:ESP32]
[DRIVER VERSION:220327]
[DRIVER OPTIONS:v4.3]
[BOARD:Protoneer v3]
ok

$HELP

Help topics:
Commands
Settings
Axis
Control signals
Coolant
General
Homing
Jogging
Limits
Probing
Spindle
Stepper
Tool change
X-axis
Y-axis
Z-axis
ok

$

[HLP:$$ $# $G $I $N $x=val $Nx=line $J=line $SLP $C $X $H $B ~ ! ? ctrl-x]
ok

main/CMakeLists.txt

Select board to compile for:

NOTE: Only one board may be enabled!

If none is enabled pin mappings from generic_map.h will be used.

OPTION(BOARD_BDRING_V3P5 "Compile for v3.5 3-axis board" OFF)
OPTION(BOARD_BDRING_V4 "Compile for bdring v4 3-axis board" OFF)
OPTION(BOARD_BDRING_I2S6A "Compile for bdring 6-axis I2S board - untested!" OFF)
OPTION(BOARD_CNC_BOOSTERPACK "Compile for CNC BoosterPack" OFF)
OPTION(BOARD_ESPDUINO32 "Compile for ESPDUINO-32 Wemos D1 R32" OFF)
OPTION(BOARD_SOURCERABBIT_4AXIS "Compile for SourceRabbit 4-axis board" OFF)
OPTION(BOARD_PROTONEER_3XX "Compile for Protoneer v3.xx boards" ON)
OPTION(BOARD_FYSETC_E4 "Compile for Fysetc E4 v1.0 board" OFF)
OPTION(BOARD_XPRO_V5 "Compile for xPro v5 board - untested!" OFF)
OPTION(BOARD_MKS_DLC32_V2P0 "Compile for MKS DLC2!" OFF)
OPTION(BOARD_MY_MACHINE "Compile for my_machine_map.h" OFF)

OPTION(X_AXIS_GANGED "Compile with ganged X axis" OFF)
OPTION(X_AXIS_SQUARED "Compile with auto-squared X axis" OFF)
OPTION(Y_AXIS_GANGED "Compile with ganged Y axis" OFF)
OPTION(Y_AXIS_SQUARED "Compile with auto-squared Y axis" OFF)
OPTION(Z_AXIS_GANGED "Compile with ganged Z axis" OFF)
OPTION(Z_AXIS_SQUARED "Compile with auto-squared Z axis" OFF)

The following plugins/options are supported:

OPTION(SafetyDoor "Safety door enable" OFF)
OPTION(Networking "Wifi + protocols" OFF)
OPTION(Bluetooth "Bluetooth" OFF)
OPTION(Keypad "I2C Keypad" OFF)
OPTION(SDcard "SD Card Streaming" OFF)

NOTE: SPI mode Trinamic drivers cannot currently be used with SD Card enabled!

OPTION(TMC2130 "Trinamic TMC2130 driver support" OFF)
OPTION(TMC5160 "Trinamic TMC5160 driver support" OFF)
OPTION(Trinamic "Trinamic driver support via I2C" OFF)
OPTION(WebUI "WebUI services" OFF)
OPTION(WebAuth "WebUI authentication" OFF)
OPTION(MPGMode "MPG mode" OFF)
OPTION(I2SStepping "Use I2S Stepping" OFF)

Networking options (WiFi)

OPTION(SoftAP "Enable soft AP mode" OFF)
OPTION(FtpDaemon "Enable ftp daemon" OFF) # Requires SDcard On

For Huanyan spindle support copy the spindle plugin code to the project.

OPTION(HUANYANG "Compile with Huanyang RS485 Spindle support" OFF)

ModBus options

OPTION(RS485_DIR_OUT "Compile with RS485 direction pin enabled" OFF)

For EEPROM/FRAM support copy the EEPROM plugin code to the project.

OPTION(EEPROM "Compile with I2C EEPROM support" OFF)
OPTION(FRAM "Compile with I2C FRAM support" OFF)
OPTION(NOPROBE "Compile without probe support" OFF)

set(SDCARD_SOURCE sdcard/sdcard.c sdcard/ymodem.c)
set(KEYPAD_SOURCE keypad/keypad.c)
set(WEBUI_SOURCE webui/server.c webui/response.c webui/commands.c webui/flashfs.c )
set(BLUETOOTH_SOURCE bluetooth.c )
set(HUANYANG_SOURCE spindle/modbus spindle/select.c spindle/vfd/spindle.c spindle/vfd/huanyang.c)
set(EEPROM_SOURCE eeprom/eeprom_24LC16B.c eeprom/eeprom_24AAxxx.c)
set(NETWORKING_FTP_SOURCE networking/ftpd.c networking/sfifo.c networking/vfs.c)
set(NETWORKING_SOURCE
wifi.c
dns_server.c
web/backend.c
networking/http_upload.c
networking/telnetd.c
networking/websocketd.c
networking/base64.c
networking/sha1.c
networking/urldecode.c
networking/utils.c
networking/multipartparser.c
networking/networking.c
)
set(TRINAMIC_SOURCE
spi.c
trinamic_if.c
motors/trinamic.c
trinamic/common.c
trinamic/tmc_interface.c
trinamic/tmc2130.c
trinamic/tmc2130hal.c
trinamic/tmc2209.c
trinamic/tmc2209hal.c
trinamic/tmc5160.c
trinamic/tmc5160hal.c
)

set(SRCS
main.c
driver.c
nvs.c
esp32-hal-uart.c
ioports.c
i2c.c
ioexpand.c
i2s_out.c
networking/strutils.c
grbl/grbllib.c
grbl/coolant_control.c
grbl/nvs_buffer.c
grbl/gcode.c
grbl/limits.c
grbl/motion_control.c
grbl/my_plugin.c
grbl/nuts_bolts.c
grbl/override.c
grbl/planner.c
grbl/protocol.c
grbl/report.c
grbl/settings.c
grbl/sleep.c
grbl/spindle_control.c
grbl/state_machine.c
grbl/stream.c
grbl/stepper.c
grbl/system.c
grbl/tool_change.c
grbl/alarms.c
grbl/errors.c
grbl/ngc_expr.c
grbl/ngc_params.c
grbl/regex.c
grbl/ioports.c
grbl/corexy.c
)

if(Networking)
list (APPEND SRCS ${NETWORKING_SOURCE})
if(SDcard AND FtpDaemon)
list (APPEND SRCS ${NETWORKING_FTP_SOURCE})
endif()
endif()

if(SDcard)
list (APPEND SRCS ${SDCARD_SOURCE})
endif()

if(Keypad)
list (APPEND SRCS ${KEYPAD_SOURCE})
endif()

if(Trinamic OR TMC2130 OR TMC5160)
list (APPEND SRCS ${TRINAMIC_SOURCE})
endif()

if(WebUI)
list (APPEND SRCS ${WEBUI_SOURCE})
endif()

if(Bluetooth)
list (APPEND SRCS ${BLUETOOTH_SOURCE})
endif()

if(HUANYANG)
list (APPEND SRCS ${HUANYANG_SOURCE})
endif()

if(EEPROM OR FRAM OR BOARD_CNC_BOOSTERPACK)
list (APPEND SRCS ${EEPROM_SOURCE})
endif()

idf_component_register(SRCS "${SRCS}" INCLUDE_DIRS ".")

target_compile_definitions("${COMPONENT_LIB}" PUBLIC GRBL_ESP32)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC OVERRIDE_MY_MACHINE)

if(BOARD_BDRING_V3P5)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_BDRING_V3P5)
elseif(BOARD_BDRING_V4)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_BDRING_V4)
elseif(BOARD_BDRING_I2S6A)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_BDRING_I2S6A)
elseif(BOARD_ESPDUINO32)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_ESPDUINO32)
elseif(BOARD_CNC_BOOSTERPACK)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_CNC_BOOSTERPACK)
elseif(BOARD_SOURCERABBIT_4AXIS)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_SOURCERABBIT_4AXIS)
elseif(BOARD_PROTONEER_3XX)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_PROTONEER_3XX)
elseif(BOARD_FYSETC_E4)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_FYSETC_E4)
elseif(BOARD_XPRO_V5)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_XPRO_V5)
elseif(BOARD_MKS_DLC32_V2P0)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_MKS_DLC32_V2P0)
elseif(BOARD_MY_MACHINE)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BOARD_MY_MACHINE)
endif()

if(X_AXIS_GANGED)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC X_GANGED)
endif()
if(X_AXIS_SQUARED)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC X_AUTO_SQUARE)
endif()
if(Y_AXIS_GANGED)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC Y_GANGED)
endif()
if(Y_AXIS_SQUARED)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC Y_AUTO_SQUARE)
endif()
if(Z_AXIS_GANGED)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC Z_GANGED)
endif()
if(Z_AXIS_SQUARED)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC Z_AUTO_SQUARE)
endif()

if(TMC2130)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC TRINAMIC_ENABLE=2130)
endif()

if(TMC5160)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC TRINAMIC_ENABLE=5160)
endif()

if(SafetyDoor)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC SAFETY_DOOR_ENABLE=1)
endif()

if(Networking)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC NETWORKING_ENABLE)
if(SDcard AND FtpDaemon)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC FTP_ENABLE)
endif()
endif()

if(SoftAP)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC WIFI_SOFTAP)
endif()

if(Bluetooth)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC BLUETOOTH_ENABLE)
endif()

if(SDcard)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC SDCARD_ENABLE)
endif()

if(WebUI)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC WEBUI_ENABLE)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC STDIO_FS)
target_add_binary_data("${COMPONENT_LIB}" "index.html.gz" BINARY)
if(WebAuth)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC WEBUI_AUTH_ENABLE)
endif()
endif()

if(Trinamic)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC TRINAMIC_ENABLE)
endif()

if(Keypad)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC KEYPAD_ENABLE)
endif()

if(MPGMode)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC MPG_MODE_ENABLE)
endif()

if(HUANYANG)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC VFD_ENABLE=1)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC SPINDLE_RPM_CONTROLLED)
endif()

if(RS485_DIR_OUT)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC RS485_DIR_ENABLE)
endif()

if(EEPROM OR BOARD_CNC_BOOSTERPACK)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC EEPROM_ENABLE)
endif()

if(FRAM)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC EEPROM_IS_FRAM)
endif()

if(NOPROBE)
target_compile_definitions("${COMPONENT_LIB}" PUBLIC NOPROBE)
endif()

target_add_binary_data("${COMPONENT_LIB}" "favicon.ico" BINARY)
target_add_binary_data("${COMPONENT_LIB}" "index.html" BINARY)
target_add_binary_data("${COMPONENT_LIB}" "ap_login.html" BINARY)

unset(BOARD_BDRING_V3P5 CACHE)
unset(BOARD_BDRING_V4 CACHE)
unset(BOARD_BDRING_I2S6A CACHE)
unset(BOARD_CNC_BOOSTERPACK CACHE)
unset(BOARD_ESPDUINO32 CACHE)
unset(BOARD_SOURCERABBIT_4AXIS CACHE)
unset(BOARD_PROTONEER_3XX CACHE)
unset(BOARD_FYSETC_E4 CACHE)
unset(BOARD_XPRO_V5 CACHE)
unset(BOARD_MKS_DLC32_V2P0 CACHE)
unset(BOARD_MY_MACHINE CACHE)

unset(X_AXIS_GANGED CACHE)
unset(X_AXIS_SQUARED CACHE)
unset(Y_AXIS_GANGED CACHE)
unset(Y_AXIS_SQUARED CACHE)
unset(Z_AXIS_GANGED CACHE)
unset(Z_AXIS_SQUARED CACHE)

unset(SafetyDoor CACHE)
unset(Networking CACHE)
unset(FtpDaemon CACHE)
unset(SoftAP CACHE)
unset(Bluetooth CACHE)
unset(Keypad CACHE)
unset(SDcard CACHE)
unset(Trinamic CACHE)
unset(TMC2130 CACHE)
unset(TMC5160 CACHE)
unset(WebUI CACHE)
unset(WebAuth CACHE)
unset(MPGMode CACHE)
unset(HUANYANG CACHE)
unset(RS485_DIR_OUT CACHE)
unset(EEPROM CACHE)
unset(FRAM CACHE)
unset(NOPROBE CACHE)

#target_compile_options("${COMPONENT_LIB}" PRIVATE -Werror -Wall -Wextra -Wmissing-field-initializers)
target_compile_options("${COMPONENT_LIB}" PRIVATE -Wimplicit-fallthrough=1 -Wno-missing-field-initializers -Wno-maybe-uninitialized)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

Dear terjeio,

Is there someone, who has the espduino working with a ProtoneerV3 Board?
I read at the end of this page; "https://github.com/bdring/FluidNC/wiki/Hardware-that-Runs-FluidNC#do-not-use", that it is very difficult to make it working.
Do not use, Why: The shield is not 100% compatible with the ESP32. We are tired of answering endless questions on this controller.

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

If the monitor gives the row 0x40080400: _init at ??:?, then the uart0 is not working.

jan@jan-LubuntuESP32:~/esp/esp-idf/ESP32$ idf.py -p /dev/ttyUSB0 monitor
Executing action: monitor
Running idf_monitor in directory /home/jan/esp/esp-idf/ESP32
Executing "/home/jan/.espressif/python_env/idf4.3_py3.10_env/bin/python /home/jan/esp/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- /home/jan/esp/esp-idf/ESP32/build/grbl.elf -m '/home/jan/.espressif/python_env/idf4.3_py3.10_env/bin/python' '/home/jan/esp/esp-idf/tools/idf.py' '-p' '/dev/ttyUSB0'"...
/home/jan/esp/esp-idf/tools/idf_monitor.py:518: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if StrictVersion(serial.VERSION) < StrictVersion('3.3.0'):
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1460
load:0x40078000,len:12856
load:0x40080400,len:3020
0x40080400: _init at ??:?

entry 0x400805e4

GrblHAL 1.1f ['$' or '$HELP' for help]
ok

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

When the power is off the espduino works also not longer.

from esp32.

duinzicht8 avatar duinzicht8 commented on September 14, 2024

The ESPduino is now for the 4the times flashed and is working now with this
git clone -b release/v4.3 --recursive --shallow-submodules https://github.com/espressif/esp-idf.git.
$10=1
bCNC works now also with the ESPduino.

from esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.