开源改变世界

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

推推 grbl 3年前 (2023-02-05) 259次浏览
关闭
3 个任务中的第 1 个
UmerSoftwares 打开了这个问题 2022 年 6 月 28 日 · 12条评论
关闭
3 个任务中的第 1 个

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃#513

UmerSoftwares 打开了这个问题 2022 年 6 月 28 日 · 12条评论

评论

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

控制板

我自己设计了电路板。我正在粘贴 config.yaml 文件,以便开发人员可以看到我使用了哪些引脚。

董事会供应商的帮助

  • 是的
  • 不适用

机器描述

它是一台 3 轴数控机床。它有

  • 3个步进器
  • 3 个限位开关
  • SD卡
  • 1个脉宽调制输出

配置文件

name: "ESP32 Dev Controller"
board: "ESP32 Dev Controller"

stepping:
  engine: RMT
  idle_ms: 255
  dir_delay_us: 1
  pulse_us: 2
  disable_delay_us: 0

axes:
  shared_stepper_disable_pin: gpio.32:high
  
  x:
    steps_per_mm: 1600
    max_rate_mm_per_min: 300
    acceleration_mm_per_sec2: 1000
    max_travel_mm: 300
    homing:
      cycle: 2
      mpos_mm: 0
      positive_direction: false
      seek_mm_per_min: 300
      feed_mm_per_min: 100
    
    motor0:
      pulloff_mm: 3
      limit_all_pin: gpio.13:low:pu
      stepstick:
        direction_pin: gpio.25:high
        step_pin: gpio.33
    motor1:
      null_motor:

  y:
    steps_per_mm: 1600
    max_rate_mm_per_min: 300
    acceleration_mm_per_sec2: 1000
    max_travel_mm: 300
    homing:
      cycle: 2
      mpos_mm: 0
      positive_direction: false
      seek_mm_per_min: 300
      feed_mm_per_min: 100

    motor0:
      pulloff_mm: 3
      limit_all_pin: gpio.14:low:pu
      stepstick:
        direction_pin: gpio.22:low
        step_pin: gpio.21
    motor1:
      null_motor:

  z:
    steps_per_mm: 1600
    max_rate_mm_per_min: 300
    acceleration_mm_per_sec2: 1000
    max_travel_mm: 67
    homing:
      cycle: 1
      mpos_mm: 67
      positive_direction: true
      seek_mm_per_min: 300
      feed_mm_per_min: 100

    motor0:
      pulloff_mm: 3
      limit_all_pin: gpio.27:low:pu
      stepstick:
        direction_pin: gpio.15:low
        step_pin: gpio.4
    motor1:
      null_motor:

spi:
  miso_pin: gpio.19
  mosi_pin: gpio.23
  sck_pin: gpio.18

sdcard:
  cs_pin: gpio.5
  card_detect_pin: NO_PIN



PWM:
  pwm_hz: 5000
  direction_pin: NO_PIN
  output_pin: gpio.26
  enable_pin: NO_PIN
  disable_with_s0: false
  s0_with_disable: true
  spinup_ms: 0
  spindown_ms: 0
  tool_num: 0
  speed_map: 0=0% 10000=100%

启动消息

[MSG:INFO: FluidNC v3.4.7]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e]
[MSG:INFO: Local filesystem type is SPIFFS]
[MSG:INFO: Configuration file:config.yaml]
[MSG:INFO: Machine ESP32 Dev Controller]
[MSG:INFO: Board ESP32 Dev Controller]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 detect:NO_PIN]
[MSG:INFO: Stepping:RMT Pulse:2us Dsbl Delay:0us Dir Delay:1us Idle Delay:255ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable gpio.32]
[MSG:INFO: Axis X (0.000,300.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.33 Dir:gpio.25 Disable:NO_PIN]
[MSG:INFO:     All Limit gpio.13:low:pu]
[MSG:INFO:   Motor1]
[MSG:INFO: Axis Y (0.000,300.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.21 Dir:gpio.22:low Disable:NO_PIN]
[MSG:INFO:     All Limit gpio.14:low:pu]
[MSG:INFO:   Motor1]
[MSG:INFO: Axis Z (0.000,67.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.4 Dir:gpio.15:low Disable:NO_PIN]
[MSG:INFO:     All Limit gpio.27:low:pu]
[MSG:INFO:   Motor1]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: PWM Spindle Ena:NO_PIN Out:gpio.26 Dir:NO_PIN Freq:5000Hz Res:13bits]
[MSG:INFO: Using spindle PWM]
[MSG:INFO: Connecting to STA SSID:Tplink 325a]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: No SSID]
[MSG:INFO: AP SSID FluidNC IP 192.168.0.1 mask 255.255.255.0 channel 1]
[MSG:INFO: AP started]
[MSG:INFO: WiFi on]
[MSG:INFO: Captive Portal Started]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]

Grbl 3.4 [FluidNC v3.4.7 (wifi) '$' for help]
[MSG:INFO: '$H'|'$X' to unlock]

用户界面软件

ESP3D 网页界面

发生了什么?

当 FLUID NC 处于 AP 模式时,我通过热点连接到它,然后归位一个轴。有时,它会正确回家,但在大多数尝试中,ESP32 崩溃并在串行上显示以下消息。

Guru Meditation Error: Core  1 panic'ed (Cache disabled but cached memory region accessed).

Core  1 register dump:
PC      : 0x400817f7  PS      : 0x00060035  A0      : 0x800823a2  A1      : 0x3ffbf1ec
A2      : 0x00000000  A3      : 0x3ffb41cc  A4      : 0x3ffc30e4  A5      : 0x00000003
A6      : 0x00000003  A7      : 0x00000000  A8      : 0xbad00bad  A9      : 0x3ffbf1cc
A10     : 0x3ffb42c8  A11     : 0x003fffff  A12     : 0x3ffb1bf0  A13     : 0x3ffb1bb0
A14     : 0x3ffc0414  A15     : 0x3ffb2e44  SAR     : 0x00000020  EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000  LBEG    : 0x4008aed4  LEND    : 0x4008aedf  LCOUNT  : 0x00000000


Backtrace:0x400817f4:0x3ffbf1ec |<-CORRUPTED




ELF file SHA256: 0000000000000000

Rebooting...
ets Jun  8 2016 00:22:57

rst:0x3 (SW_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:1
load:0x3fff0030,len:1184
load:0x40078000,len:12812
load:0x40080400,len:3032
entry 0x400805e4

只有在 AP 模式下才会出现此问题。它在 ST 模式下不会发生。
所有 x、y 和 z 轴都会出现此问题。
发送归位命令后,轴向归位方向移动,碰到限位开关,缩回,然后当它试图再次移动到限位开关时,ESP32 崩溃。

其他信息

没有反应

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

试用 v3.5.0-pre2

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513
作者

试用 v3.5.0-pre2

它仍然因 fluidterm 中的以下错误而崩溃

Guru Meditation Error: Core  1 panic'ed (Cache disabled but cached memory region accessed).

Core  1 register dump:
PC      : 0x400dd5b0  PS      : 0x00060035  A0      : 0x80082208  A1      : 0x3ffbf1ec
A2      : 0x3ffb44e0  A3      : 0x00000001  A4      : 0x00000000  A5      : 0x00000000
A6      : 0x00000003  A7      : 0x3ffb4540  A8      : 0x800817ee  A9      : 0x00000000
A10     : 0x3ffb45ac  A11     : 0x00000000  A12     : 0x3ffb1be0  A13     : 0x3ffb1ba0
A14     : 0x3ffc0424  A15     : 0x3ffb3370  SAR     : 0x00000000  EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000  LBEG    : 0x4008aef0  LEND    : 0x4008aefb  LCOUNT  : 0x00000000


Backtrace:0x400dd5ad:0x3ffbf1ec |<-CORRUPTED




ELF file SHA256: 0000000000000000

Rebooting...
ets Jun  8 2016 00:22:57

rst:0x3 (SW_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:1
load:0x3fff0030,len:1184
load:0x40078000,len:12812
load:0x40080400,len:3032
entry 0x400805e4
ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

事实证明,v3.5.0-pre2 与 v3.5.0-pre 相同,并且没有我认为会改变您的问题的修复。预发布构建过程中存在错误,导致它从错误的代码修订版构建。

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513
作者

事实证明,v3.5.0-pre2 与 v3.5.0-pre 相同,并且没有我认为会改变您的问题的修复。预发布构建过程中存在错误,导致它从错误的代码修订版构建。

你能指导我该怎么做吗?

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

等我修好。

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513 UmerSoftwares 更改了标题 在 AP 模式下从 ESP32 接口归位轴时 ESP32 崩溃 ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 2022 年 6 月 29 日
ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

肯定有导致此崩溃的错误 – 但即使在我修复错误后,我们也不建议将 AP 模式用于实际工作,仅用于设置。AP 模式使 ESP32 做很多可能导致问题的额外工作。如果您的店铺没有 wifi,最好买一个路由器并在那里设置 wifi 网络。它不必连接到互联网,路由器也不必是现代的快速路由器。任何因为对现代工作而言速度太慢而停止服务的旧 wifi 路由器都可以。

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513
作者

肯定有导致此崩溃的错误 – 但即使在我修复错误后,我们也不建议将 AP 模式用于实际工作,仅用于设置。AP 模式使 ESP32 做很多可能导致问题的额外工作。如果您的店铺没有 wifi,最好买一个路由器并在那里设置 wifi 网络。它不必连接到互联网,路由器也不必是现代的快速路由器。任何因为对现代工作而言速度太慢而停止服务的旧 wifi 路由器都可以。

可以,当然。
我使用的这组引脚是否正常,或者它是否是导致问题的一部分?

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

给我时间解决这个问题,好吗?

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

试用 v3.5.0-pre3

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513
作者

我现在已经尝试过 v3.5.0-pre3。

这是我在启动时得到的

[MSG:INFO: FluidNC test1]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e]
[MSG:INFO: Local filesystem type is SPIFFS]
[MSG:INFO: Configuration file:config.yaml]
[MSG:INFO: Machine ESP32 Dev Controller]
[MSG:INFO: Board ESP32 Dev Controller]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 detect:NO_PIN]
[MSG:INFO: Stepping:RMT Pulse:2us Dsbl Delay:0us Dir Delay:1us Idle Delay:255ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable gpio.32]
[MSG:INFO: Axis X (0.000,300.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.33 Dir:gpio.25 Disable:NO_PIN]
[MSG:INFO:     All Limit gpio.13:low:pu]
[MSG:INFO:   Motor1]
[MSG:INFO: Axis Y (0.000,300.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.21 Dir:gpio.22:low Disable:NO_PIN]
[MSG:INFO:     All Limit gpio.14:low:pu]
[MSG:INFO:   Motor1]
[MSG:INFO: Axis Z (0.000,68.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.4 Dir:gpio.15:low Disable:NO_PIN]
[MSG:INFO:     All Limit gpio.27:low:pu]
[MSG:INFO:   Motor1]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: PWM Spindle Ena:NO_PIN Out:gpio.26 Dir:NO_PIN Freq:5000Hz Res:13bits]
[MSG:INFO: Using spindle PWM]
[MSG:INFO: STA SSID is not set]
[MSG:INFO: AP SSID FluidNC IP 192.168.0.1 mask 255.255.255.0 channel 1]
[MSG:INFO: AP started]
[MSG:INFO: WiFi on]
[MSG:INFO: Captive Portal Started]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]

Grbl  [FluidNC test1 (wifi) '$' for help]
[MSG:INFO: '$H'|'$X' to unlock]

现在,轴没有归位。我已经尝试过 fluidterm 和 WebUI。轴碰到限位开关并停留在那里。它不会缩回到拉起距离。

这是fluidterm中的错误

$HX
[MSG:ERR: Homing fail]
ALARM:8
ok

这是 WebUI 中的错误

$HX
[MSG:ERR: Homing fail]
ALARM:8
Homing fail. Pull off travel failed to clear limit switch. Try increasing pull-off setting or check wiring.
ok
ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

很好,崩溃消失了。我们知道归位问题。它已在最近的补丁中得到修复,但我们尚未发布包含归位修复的版本。我正在清理代码并将很快发布。

ESP32 在 AP 模式下从 ESP3D 界面归位轴时崩溃 #513

v3.5.0-pre4 正在为我导航