bigtreetech / BIGTREETECH-SKR-V1.3

32bit board with LPC1768, support marlin2.0 and smoothieware, support lcd2004/12864, On-board TMC2130 SPI interface and TMC2208 UART interface no additional wiring is required
1.01k stars 1.15k forks source link

Outage Recovery: PRINTED HALTED Error #353

Closed xolutronic closed 4 years ago

xolutronic commented 4 years ago

I have a SKR v1.4 Turbo running Marlin V2.0.5.3 with the BTT UPS 24V module and the TFT35-E3 V3.0.

Out of curiosity I selected the "Power Outage" option through the LCD running in Marlin mode. Right after that I got the message on-screen:

Outage Recovery: PRINTER HALTED Please Reset

I have tried resetting the board, through the Reset in the TFT35 board and also the reset in the SKR board, but it always gets back to the same error after booting up. I have tried completely removing the power supply and restarting, but I keep getting the same issue. I tried updating the firmware, but I still get the same issue.

My guess is that something was stored in memory when I chose the "Power Outage" option and it is preventing the firmware from running as it should.

How can I fix this?

xolutronic commented 4 years ago

I was able to fix the issue as follows:

First, to be able to boot without the PRINTER HALTED issue, I switch from FLASH_EEPROM_EMULTATION to SDCARD_EEPROM_EMULATION. This is achieved by modifying the corresponding pins_BTT_SKR_V1_4.h or pins_BTT_SKR_V1_4_TURBO.h file found under the /pins/lpc1768 or /pins/lpc1769 directories respectively.

So the issue was that I activated the Power Loss Recovery but I had misconfigured the POWER_LOSS_PIN. I was following the instructions in the BTT UPS 24V manual which indicated to use P1_26, but I had the cable physically connected to the E1DET connector (and the correct signal pin was P1_25). This resulted in the Power Loss State being triggered every time after booting up.