Duet 2 Wifi - Cannot update my Wifi module firmware
-
I want to upgrade my firmware from 3.4.4 to 3.5.2. I managed to upgrade the main firmware using M997 S0, however I can't seem to update the Wifi module firmware using M997 S1.
This is the error message in YAT when I input M997 S1:
(11:55:15.370) m997 s1
(11:55:16.383) Trying to connect at 230400 baud: failed
(11:55:27.336) Trying to connect at 115200 baud: failed
(11:55:38.297) Trying to connect at 74880 baud: failed
(11:55:49.252) Trying to connect at 9600 baud: failed
(11:56:00.226) Error: Installation failed due to comm write error
(11:56:00.226) okFirmware and Diagnose Information (M115 and M122)
M115
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.5.2 E
LECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2024-06-11 17:13:43
okm122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 3.5.2 (2024-06-11:17:13:43) running on Duet WiFi 1.02 or later
Board ID: 0JD0M-9P6B2-NJ4S4-6JKFG-3SD6J-1V12L
Used output buffers: 1 of 26 (2 max)
Error in macro line 9 while starting up: in file macro line 9 column 16: M669: array too long for parameter 'X'
=== RTOS ===
Static ram: 23384
Dynamic ram: 72240 of which 12 recycled
Never used RAM 14652, free system stack 194 words
Tasks: NETWORK(1,ready,7.1%,519) HEAT(3,nWait 5,0.0%,328) Move(4,nWait 5,0.0%,359) MAIN(1,running,92.7%,759) IDLE(0,ready,0.2%,29), total 100.0%
Owned mutexes: USB(MAIN)
=== Platform ===
Last reset 00:10:17 ago, cause: power up
Last software reset at 2024-01-24 14:44, reason: User, Gcodes spinning, available RAM 12492, slot 1
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR
0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
Aux0 errors 0,0,0
MCU temperature: min 22.4, current 30.9, max 31.2
Supply voltage: min 0.2, current 1.7, max 1.7, under voltage events: 0, over voltage events: 0, power good: no
Heap OK, handles allocated/used 99/2, heap memory allocated/used/recyclable 2048/84/0, gc cycles 0
Events: 0 queued, 0 completed
Driver 0: ok, SG min n/a
Driver 1: ok, SG min n/a
Driver 2: ok, SG min n/a
Driver 3: ok, SG min n/a
Driver 4: ok, SG min n/a
Driver 5:
Driver 6:
Driver 7:
Driver 8:
Driver 9:
Driver 10:
Driver 11:
Date/time: 1970-01-01 00:00:00
Cache data hit count 4294967295
Slowest loop: 4.72ms; fastest: 0.15ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest read time 3.2ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00
no step interrupt scheduled
Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybe possible 0
=== DDARing 0 ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
=== GCodes ===
Movement locks held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is ready with "m122" in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
Daemon is idle in state(s) 0
Autopause is idle in state(s) 0
Q0 segments left 0
Code queue 0 is empty
=== Network ===
Slowest loop: 0.26ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
HTTP sessions: 0 of 8
=== WiFi ===
Interface state: starting2
Module is disabled
Failed messages: pending 0, notrdy 0, noresp 0
Socket states: 0 0 0 0 0 0 0 0
ok-Wei Jian
-
@Wei-Jian It looks like the WiFi module has failed. When and where did you purchase that board?
-
@Wei-Jian Please try connecting via USB, and updating the WiFi module firmware, by:
- Download a fresh version of the firmware. File "Duet2and3Firmware-3.5.2.zip" from https://github.com/Duet3D/RepRapFirmware/releases/tag/3.5.2. Extract the zip file once it has downloaded.
- Put the SD card from the Duet in your computer and copy file "DuetWiFiServer.bin" from the extracted folder to the /firmware folder of the SD card. Replace the SD card in the Duet.
- Connect to the Duet via USB(see https://docs.duet3d.com/en/How_to_guides/Getting_connected/Getting_connected_to_your_Duet#h-2-connect-your-duet-via-usb)
- In the serial terminal, send
M552 S-1
to turn off WiFi. - Wait a couple of seconds, then send
M552
to check the status. It should say "WiFi module is disabled". - Put WIFi into idle mode by sending command
M552 S0
. The response should be "WiFi module is started". - Send
M552
again, and the Duet should reply with "WiFi module is idle". - Send command
M997 S1
to update the WiFi firmware - Wait for a minute for the firmware to flash.
- Reset the board and check the WiFi is working
If it doesn't work, or the responses are not the same as above, please post the full log from the serial terminal, showing what commands you sent, and what responses the Duet is returning.
Ian
-
@droftarts I tried all the steps you advised but seems like my Wifi module is not able to start up. I have attached the log from the serial terminal below.
(09:57:42.815) m552 s-1
(09:57:42.847) WiFi module stopped
(09:57:42.847) ok
(09:58:07.434) m552
(09:58:07.492) WiFi module is disabled
(09:58:07.492) ok
(09:58:27.722) m552 s0
(09:58:27.817) ok
(09:59:04.270) m552
(09:59:04.318) WiFi module is being started
(09:59:04.318) ok
(09:59:57.767) m552
(09:59:57.830) WiFi module is being started
(09:59:57.830) ok
(10:00:14.061) m997 s1
(10:00:15.072) Trying to connect at 230400 baud: failed
(10:00:26.035) Trying to connect at 115200 baud: failed
(10:00:36.992) Trying to connect at 74880 baud: failed
(10:00:47.954) Trying to connect at 9600 baud: failed
(10:00:58.918) Error: Installation failed due to comm write error
(10:00:58.918) okThe LED for my Wifi module did not light up throughout the whole process. Does it mean that it is faulty?
-Wei Jian
-
@chrishamm I purchased it directly from Duet3D about a year ago. It was working perfectly fine before I tried upgrading the firmware.
-
When and where did you purchase your product?
Please send an email to warranty@duet3d.com and CC your reseller. Include a link to this forum thread and the details of your original purchase. You'll receive a reply with a form to fill out.
-
Thanks @droftarts and @Phaedrux for helping me resolve the issue with my board. I was able to get a warranty exchange for my faulty board. I reconnected to the new board and it is working fine now.
-
undefined dc42 marked this topic as a question
-
undefined dc42 has marked this topic as solved