Open StephenWillis2 opened 2 months ago
See also #1322. In both cases, the crash is occurring during an interrupt handler. In this case, it is happening in Machine::Motor::step() at the line _driver->step()
. In 1322 it is Machine::Axes::unstep() at the line m->_driver->unstep();
. In both cases it is a Cache disabled error, with the target address of a call instruction in A8 whose value is 0xbad00bad. We expect the cache to be disabled during interrupt handlers, but we do not expect an attempt to access FLASH then. The question is "how did the value 0xbad00bad get in register A8? That address is supposed to be fetched from the _driver structure. Perhaps memory was overwritten somehow.
Wiki Search Terms
FluidNC lock up. FluidNC crash. FluidNC panic. controller lock up.
Controller Board
MKS Tinybee
Machine Description
A DIY basic 3axis router. Nothing special.
Input Circuits
No response
Configuration file
Startup Messages
User Interface Software
WebUI and Serial/BT Versions
What happened?
When I run a job that is especially long like parallel passes, FluidNC crashes randomly and then reboots into a safe mode. I have had this happen about 7 times all in different places in the g-code while running parallel-pass tests.
GCode File
No response
Other Information
FluidTerms crash dump:
<Run|MPos:-183.342,-253.610,-24.922|FS:136,9000|SD:38.61,/sd/parallel.nc> <Run|MPos:-183.822,-253.610,-24.691|FS:533,9000|Ov:100,100,100|A:S|SD:38.61,/sd/parallel.nc> <Run|MPos:-185.268,-253.610,-24.513|FS:154,9000|WCO:0.000,0.000,-20.000|SD:38.61,/sd/parallel.nc> Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed).
Core 1 register dump: PC : 0x4008abe2 PS : 0x00060035 A0 : 0x80081bad A1 : 0x3ffbf83c A2 : 0x3ffb58e8 A3 : 0x00000001 A4 : 0x00060023 A5 : 0x80000000 A6 : 0x00000000 A7 : 0x003fffff A8 : 0xbad00bad A9 : 0x3ffb1f30 A10 : 0x3ffb5958 A11 : 0x3ffb7720 A12 : 0x00000020 A13 : 0x80000000 A14 : 0x00000000 A15 : 0x3ffb1ff8 SAR : 0x00000002 EXCCAUSE: 0x00000007 EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace: 0x4008abdf:0x3ffbf83c |<-CORRUPTED
ELF file SHA256: e6173bfb5d10076b
Rebooting... ets Jun 8 2016 00:22:57
rst:0x3 (SW_RESET),boot:0x1b (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:13260 load:0x40080400,len:3028 entry 0x400805e4 [MSG:INFO: uart_channel0 created] [MSG:RST] [MSG:INFO: FluidNC v3.8.0 https://github.com/bdring/FluidNC] [MSG:INFO: Compiled with ESP32 SDK:v4.4.7-dirty] [MSG:INFO: Local filesystem type is littlefs] [MSG:ERR: Skipping configuration file due to panic] [MSG:INFO: Using default configuration] [MSG:INFO: Axes: using defaults] [MSG:INFO: Machine Default (Test Drive)] [MSG:INFO: Board None] [MSG:INFO: Stepping:RMT Pulse:4us Dsbl Delay:0us Dir Delay:0us Idle Delay:255ms] [MSG:INFO: Axis count 3] [MSG:INFO: Axis X (-1000.000,0.000)] [MSG:INFO: Motor0] [MSG:INFO: Axis Y (-1000.000,0.000)] [MSG:INFO: Motor0] [MSG:INFO: Axis Z (-1000.000,0.000)] [MSG:INFO: Motor0] [MSG:INFO: Kinematic system: Cartesian] [MSG:INFO: Connecting to STA SSID:HomeWIFI] [MSG:INFO: Connecting.] [MSG:INFO: Connecting..] [MSG:INFO: Connected - IP is 192.168.1.113] [MSG:INFO: WiFi on] [MSG:INFO: Start mDNS with hostname:http://fluidnc.local/] [MSG:INFO: SSDP Started] [MSG:INFO: HTTP started on port 80] [MSG:INFO: Telnet started on port 23]
Grbl 3.8 [FluidNC v3.8.0 (wifi) '$' for help] [MSG:ERR: Configuration is invalid. Check boot messages for ERR's.]