主板重启 #206

推推 grbl 3年前 (2023-02-05) 336次浏览
关闭
prak1111 打开了这个问题 2021 年 12 月 26 日 · 11 条评论
关闭

主板重启#206

prak1111 打开了这个问题 2021 年 12 月 26 日 · 11 条评论

评论

主板重启 #206

你好,

我已经上传了配置文件,但是开发板不断重启。不知道它有什么问题。
日志是-
rst:0x3 (SW_RESET),boot:0x12 (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,时钟 div:1
负载:0x3fff0018,len:4
负载:0x3fff001c,len:1044
负载:0x40078000,len:10124
负载:0x40080400,len:5856
条目 0x400806a8

[MSG:INFO: FluidNC v3.2.7]
[MSG:INFO: Compiled with ESP32 SDK:v3.3.5-1-g85c43024c]
[MSG:INFO: Configuration file:config.yaml]
[MSG:WARN: Ignored key pulloff_mm]
[ MSG:INFO: Machine PINCWL]
[MSG:INFO: Board ESP32 Controller V4]
[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:250ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable gpio.13: low]
[MSG:INFO: X 轴 (0.000,1840.000)]
[MSG:INFO: Motor0]
[MSG:INFO: Standard Stepper Step:gpio.0 Dir:gpio.2 Disable:NO_PIN]
[MSG:INFO: Neg Limit GPIO.34]
[MSG:INFO: Y 轴 (0.000,910.000)]
[MSG:INFO: Motor0]
[MSG:INFO: Standard Stepper Step:gpio.26 Dir:gpio.15 Disable:NO_PIN]
[MSG:INFO: Neg Limit gpio. 35:low]
[MSG:INFO: Z 轴 (-80.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: Standard Stepper Step:gpio.27 Dir:gpio.33 Disable:NO_PIN]
[MSG:INFO : Pos Limit gpio.36]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: 10V Spindle Ena:NO_PIN Out:gpio.25 Dir:NO_PIN Fwd:NO_PIN Rev:NO_PIN Freq:5000Hz Res:13bits]
[MSG :INFO: Using spindle 10V]
Guru Meditation Error: Core 1 panic’ed (Cache disabled but cached memory region accessed)
核心 1 寄存器转储:
PC : 0x400db2bc PS : 0x00060034 A0 : 0x400887f8 A1 : 0x3ffc0070
A2 : 0x00000002 A3 : 0x3ffca000 A4 : 0x00000004 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x13000454 A8 : 0x800824b4 A9 : 0x00000001
A10 : 0x3ffb46c0 A11 : 0x00000000 A12 : 0x3ffcf428 A13 : 0x00000008
A14 : 0x3ffcf424 A15 : 0xfffffff7 SAR : 0x00000018 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Core 1 was running in ISR context:
EPC1 : 0x40088f7d EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x400db2bc

ELF 文件 SHA256:0000000000000000

回溯:0x400db2bc:0x3ffc0070 0x400887f5:0x3ffc0090 0x40088f7a:0x3ffba190 0x4008621b:0x3ffba1b0 0x4008c0e6:0x3ffba1d0

正在重启…

主板重启 #206
所有者

你能上传你的配置文件吗?

主板重启 #206
作者
普拉克1111 评论了 2021 年 12 月 27 日  

这是代码
-`名称:“PINCWL”
板:“ESP32 Controller V4”

步进:
引擎:RMT
idle_ms:250
dir_delay_us:1
pulse_us:2
disable_delay_us:0

轴:
shared_stepper_disable_pin:gpio.13:低

x:
steps_per_mm: 80
max_rate_mm_per_min: 2500
acceleration_mm_per_sec2: 100
max_travel_mm: 1840
homing:
cycle: 2
mpos_mm: 0
positive_direction: false
pulloff_mm: 3.0

motor0:
  limit_neg_pin: gpio.17:low:pu
  standard_stepper:
    step_pin: gpio.0
    direction_pin: gpio.2

y:
steps_per_mm: 200
max_rate_mm_per_min: 2500
acceleration_mm_per_sec2: 100
max_travel_mm: 910

homing:
  cycle: 2
  mpos_mm: 0
  positive_direction: false

motor0:
  limit_neg_pin: gpio.16:low:pu
  pulloff_mm: 3.00
  standard_stepper:
    step_pin: gpio.26
    direction_pin: gpio.15

z:
steps_per_mm: 50
max_rate_mm_per_min: 2500
acceleration_mm_per_sec2: 80
max_travel_mm: 80

homing:
  cycle: 1
  mpos_mm: 0
  positive_direction: true

motor0:
  limit_neg_pin: NO_PIN
  limit_pos_pin: gpio.4:low:pu
  limit_all_pin: NO_PIN
  hard_limits: false
  pulloff_mm: 1.00
  standard_stepper:
    step_pin: gpio.27
    direction_pin: gpio.33

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

sdcard:
cs_pin: gpio.5
card_detect_pin: NO_PIN

探针:
引脚:NO_PIN

10V:
output_pin: gpio.25
forward_pin: NO_PIN
reverse_pin: NO_PIN
spinup_ms: 5000
spindown_ms: 5000
tool_num: 0
speed_map: 0=0% 8000=40% 18000=75%

开始:
must_home:false`

上面的配置已针对 endstops 进行了更新。正如我发现 GPIO16 和 17 提供大约 5V,因此无需外部电压转换器即可使用。我所有的步进器也没有动。我正在使用 tb6600 驱动程序。

主板重启 #206
所有者

那对我来说不可用。所有缩进都丢失了。

请使用如下的 yaml代码块

```yaml
name: "PINCWL"
board: "ESP32 Controller V4"

stepping:
  engine: RMT
  idle_ms: 250
  dir_delay_us: 1
  pulse_us: 2
  disable_delay_us: 0
  ..more
```
主板重启 #206
所有者

让我为这个工作:-)

主板重启 #206
所有者

像这样

name: "PINCWL"
board: "ESP32 Controller V4"

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

axes:
  shared_stepper_disable_pin: gpio.13:high
  
  x:
    steps_per_mm: 80
    max_rate_mm_per_min: 2500
    acceleration_mm_per_sec2: 100
    max_travel_mm: 1840
    homing:
      cycle: 2
      mpos_mm: 0
      positive_direction: false
      pulloff_mm: 3.0
    
    motor0:
      limit_neg_pin: gpio.17:low:pu
      standard_stepper:
        step_pin: gpio.0
        direction_pin: gpio.2

  y:
    steps_per_mm: 200
    max_rate_mm_per_min: 2500
    acceleration_mm_per_sec2: 100
    max_travel_mm: 910

    homing:
      cycle: 2
      mpos_mm: 0
      positive_direction: false
    
    motor0:
      limit_neg_pin: gpio.16:low:pu
      pulloff_mm: 3.00
      standard_stepper:
        step_pin: gpio.26
        direction_pin: gpio.15

  z:
    steps_per_mm: 50
    max_rate_mm_per_min: 2500
    acceleration_mm_per_sec2: 80
    max_travel_mm: 80

    homing:
      cycle: 1
      mpos_mm: 0
      positive_direction: true
    
    motor0:
      limit_neg_pin: NO_PIN
      limit_pos_pin: gpio.4:low:pu
      limit_all_pin: NO_PIN
      hard_limits: false
      pulloff_mm: 1.00
      standard_stepper:
        step_pin: gpio.27
        direction_pin: gpio.33
      
spi:
  miso_pin: gpio.19
  mosi_pin: gpio.23
  sck_pin: gpio.18

sdcard:
  cs_pin: gpio.5
  card_detect_pin: NO_PIN

probe:
  pin: NO_PIN

10V:
  output_pin: gpio.25
  forward_pin: NO_PIN
  reverse_pin: NO_PIN
  spinup_ms: 5000
  spindown_ms: 5000
  tool_num: 0
  speed_map: 0=0% 8000=40% 18000=75%

start:
  must_home: false
主板重启 #206
所有者

配置文件对我来说加载得很好。

[MSG:INFO: FluidNC v3.2.7 (PinAttributeWarning-7321308-dirty)]
[MSG:INFO: Compiled with ESP32 SDK:v3.3.4-432-g7a85334d8]
[MSG:INFO: Configuration file:PINCWL.yaml]
[MSG:WARN: Ignored key pulloff_mm]
[MSG:INFO: Machine PINCWL]
[MSG:INFO: Board ESP32 Controller V4]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 dectect:NO_PIN]
[MSG:INFO: Stepping:RMT Pulse:2us Dsbl Delay:0us Dir Delay:1us Idle Delay:250ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable gpio.13]
[MSG:INFO: Axis X (0.000,1840.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     Standard Stepper Step:gpio.0 Dir:gpio.2 Disable:NO_PIN]
[MSG:INFO:     Neg Limit gpio.17:low:pu]
[MSG:INFO: Axis Y (0.000,910.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     Standard Stepper Step:gpio.26 Dir:gpio.15 Disable:NO_PIN]
[MSG:INFO:     Neg Limit gpio.16:low:pu]
[MSG:INFO: Axis Z (-80.000,0.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     Standard Stepper Step:gpio.27 Dir:gpio.33 Disable:NO_PIN]
[MSG:INFO:     Pos Limit gpio.4:low:pu]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: 10V Spindle Ena:NO_PIN Out:gpio.25 Dir:NO_PIN Fwd:NO_PIN Rev:NO_PIN Freq:5000Hz Res:13bits]
[MSG:INFO: Using spindle 10V]
[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 3.2 [FluidNC v3.2.7 (PinAttributeWarning-7321308-dirty) (wifi) '$' for help]

尝试发送$Config/Filename=nothing.yaml。这将不会被发现并强制固件创建默认配置。如果在那之后它崩溃了,我会假设设置中有一些损坏导致设置 wifi 时崩溃。

主板重启 #206

是的,我也觉得这是 wifi 问题。它有时会崩溃,有时会运行良好。
有时,虽然 wifi 已打开,但它显示连接消息并导致无法创建自己的热点。
目前已连接并稳定。只有电机不运动,但在发出移动命令时锁定,并在执行命令后用手自由移动。
我试着设置acceleration_mm_per_sec2: 25
但还是不动。方向和步骤连接良好。

主板重启 #206

我已经看到 wifi 在 ESP32 模块上崩溃,该模块在 3.3V 电源上没有足够的电容。当 wifi 收音机打开时,3.3V 电压轨会下降,CPU 会崩溃。我通过在 3.3V 和 GND 之间添加一个大电容器来修复它。我使用的电容器在 25V 时为 470uF,但这可能比需要的要大,因为大多数商用 ESP32 模块在 3.3V 时只有 47uF,而且它们大多使用该值。

主板重启 #206

还有一件事要提到,我正在将 esp32 wifi 连接到我的智能手机中创建的热点。

主板重启 #206

如果它有时工作而其他时间失败,则可能是硬件问题。我关闭它是因为我们无能为力。