Welcome! Log In Create A New Profile

Advanced

Marlin watchdog resets on boot sequence

Posted by NovaHuta 
Marlin watchdog resets on boot sequence
January 26, 2021 08:44AM
Hi Y'all. I'm trying to get my first machine working here, all built up but there are issues with custom marlin firmware.

It is SMART RAMPS board with DUE and configured for 24V using a buck converter to bring 24V to 7V for the VIN on the DUE board. Also has four TMC2209 drivers where I'm attempting to configure UART mode on the Z-MAX and Z-MIN pins (these are hardware serial 1 pins, D18 and D19).

On boot I get the following and it repeats never getting to online mode.

The esp_wifi_init() mesage is offputting as there is no wifi configured but in inspecting the code, I understand that this call does nothing anyhow.

Any ideas? My only next thought is to put logic analyzer on the UART pins to inspect the traffic there. I've already compiled with MARLIN_DEV_MODE.

========

echo: Last Updated: 2020-10-15 | Author: (kpishere, SMARTRAMPS)
echo:Compiled: Jan 26 2021
echo: Free Memory: 82700 PlannerBufferBytes: 1600
echo:[963] buzzer.init()
echo:[965] ui.init()
echo:[1902] ui.show_bootscreen()
echo:[5927] ui.reset_status()
echo:[5929] settings.first_load()
echo:EEPROM version mismatch (EEPROM=? Marlin=V82)
echo:[5940] thermalManager.init()
echo:[6192] print_job_timer.init()
echo:[6204] endstops.init()
echo:[6206] stepper.init()
echo:[6208] watchdog_init()
echo:[6211] test_tmc_connection(0x1, 0x1, 0x1, 0x1)
Testing X connection... echo:start
echo:[937] HAL_init()
echo:[939] setup_killpin()
echo:[941] tmc_serial_begin()
echo:[944] setup_powerhold()
echo:[946] esp_wifi_init()
Watchdog Reset
Marlin 2.0.7.2
Re: Marlin watchdog resets on boot sequence
January 26, 2021 08:01PM
you seem to have MARLIN_DEV_MODE enabled, and all the printing to serial is exceeding the watchdog timeout (default is 4 seconds)

add #define WATCHDOG_DURATION_8S to your config
Re: Marlin watchdog resets on boot sequence
January 27, 2021 06:52AM
Thanks @Dust. Ok, I got around it by disabling watchdog but I will re-enable with that setting.

What made progress was switching from using D18/D19 (Z max/min stops) and also Serial1 to using Serial2 which is pins D16/D17.

I've also disabled EEPROM for now .. one problem at a time.

Perhaps I didn't disable Z stops properly but anyhow .. progress to this ...

I've already switched the Y driver and no change, I'll have to double check the board and wiring. ... Oh yeah, checked the voltages on MS1,MS2 pins and one of them has an indeterminate voltage of .25V or so. That will do it. (should be 0 or 3.2V on a DUE board)

echo:start
echo:[938] HAL_init()
echo:[940] setup_killpin()
echo:[942] tmc_serial_begin()
echo:[945] setup_powerhold()
echo:[947] esp_wifi_init()
PowerUp
Marlin 2.0.7.2

echo: Last Updated: 2020-10-15 | Author: (kpishere, SMARTRAMPS)
echo:Compiled: Jan 27 2021
echo: Free Memory: 84832 PlannerBufferBytes: 1600
echo:[964] buzzer.init()
echo:[966] ui.init()
echo:[1903] ui.show_bootscreen()
echo:[5927] ui.reset_status()
echo:[5929] settings.first_load()
echo: G21 ; Units in mm (mm)
echo: M149 C ; Units in Celsius

echo:; Filament settings: Disabled
echo: M200 S0 D1.75
echo:; Steps per unit:
echo: M92 X80.00 Y80.00 Z800.00 E93.00
echo:; Maximum feedrates (units/s):
echo: M203 X500.00 Y500.00 Z5.00 E25.00
echo:; Maximum Acceleration (units/s2):
echo: M201 X500.00 Y500.00 Z100.00 E5000.00
echo:; Acceleration (units/s2): P R T
echo: M204 P500.00 R500.00 T500.00
echo:; Advanced: B S T J
echo: M205 B20000.00 S0.00 T0.00 J0.08
echo:; Home offset:
echo: M206 X0.00 Y0.00 Z0.00
echo:; Material heatup parameters:
echo: M145 S0 H200 F0
echo: M145 S1 H220 F0
echo:; PID settings:
echo: M301 P28.81 I2.25 D92.34
echo:; LCD Contrast:
echo: M250 C190
echo:; Stepper driver current:
echo: M906 X650 Y650 Z580
echo: M906 T0 E650

echo:; Hybrid Threshold:
echo: M913 X100 Y100 Z3
echo: M913 T0 E30

echo:; StallGuard threshold:
echo: M914 X45 Y70
echo:; Driver stepping mode:
echo: M569 S1 X Y Z
echo: M569 S1 T0 E
echo:; Filament load/unload lengths:
echo: M603 L0.00 U100.00
echo:[6980] thermalManager.init()
echo:[7233] print_job_timer.init()
echo:[7236] endstops.init()
echo:[7239] stepper.init()
echo:[7241] test_tmc_connection(0x1, 0x1, 0x1, 0x1)
Testing X connection... OK
Testing Y connection... Error: All LOW
Testing Z connection... OK
Testing E connection... OK
echo:[7284] setup() completed.

Edited 1 time(s). Last edit at 01/27/2021 07:01AM by NovaHuta.
Sorry, only registered users may post in this forum.

Click here to login