Wifi fails with "another SPI transfer pending"... 2 diff boards
-
So this is a strange one. I have a Duet2 wifi that has been working great for a couple months.
Go away for a couple weeks for work and when I get back, it isn't connected to my wifi network anymore. I go through the steps I followed to headlessly get it online and configured when I set it up about 6 months ago, only now I am getting a strange error about SPI that makes no sense to me and I can't seem to find any relevant info/solutions online.Please see below and (hopefully) tell me I'm an idiot and the culprit is something silly that I skimmed right over in all the different procedures (upgrade from web, sd card upgrades-a-plenty, firmware reflash with SAM-BA 2.17 which appears to succeed but apparently does not, access point mode... etc)
Any assistance would be greatly appreciated because, at this point, I think I have attempted every procedure / suggestion that exists on the world-wide-information-super-interwebs, and my google-fu isn't 'weak' by any stretch but I have come up empty at the end of my journey.
Thanks in advance
m122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 3.3 (2021-06-15 21:44:54) running on Duet WiFi 1.02 or later
Board ID: **********************
Used output buffers: 1 of 24 (12 max)
=== RTOS ===
Static ram: 23876
Dynamic ram: 73544 of which 12 recycled
Never used RAM 16984, free system stack 193 words
Tasks: NETWORK(ready,7.5%,517) HEAT(delaying,0.0%,386) Move(notifyWait,0.1%,364) MAIN(running,92.4%,439) IDLE(ready,0.0%,29), total 100.0%
Owned mutexes: USB(MAIN)
=== Platform ===
Last reset 00:12:38 ago, cause: power up
Last software reset at 2021-12-20 12:08, reason: User, GCodes spinning, available RAM 12208, slot 2
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
Step timer max interval 0
MCU temperature: min 18.8, current 19.2, max 19.7
Supply voltage: min 1.7, current 1.8, max 1.8, under voltage events: 0, over voltage events: 0, power good: no
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Driver 0: position 0, ok, SG min/max not available
Driver 1: position 0, ok, SG min/max not available
Driver 2: position 0, ok, SG min/max not available
Driver 3: position 0, ok, SG min/max not available
Driver 4: position 0, ok, SG min/max not available
Driver 5: position 0
Driver 6: position 0
Driver 7: position 0
Driver 8: position 0
Driver 9: position 0
Driver 10: position 0
Driver 11: position 0
Date/time: 1970-01-01 00:00:00
Cache data hit count 4294967295
Slowest loop: 0.38ms; fastest: 0.13ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Storage ===
Free file entries: 10
SD card 0 not detected, interface speed: 30.0MBytes/sec
SD card longest read time 0.0ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
=== GCodes ===
Segments left: 0
Movement lock 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
Code queue is empty.
=== Network ===
Slowest loop: 0.19ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 0 of 8- WiFi -
Network state is disabled
WiFi module is disabled
Failed messages: pending 0, notready 2, noresp 0
Socket states: 0 0 0 0 0 0 0 0
ok
m587
Failed to retrieve network list: WiFi module is disabled
okm552 s0
okm587
Failed to retrieve network list: another SPI transfer is pending
okm587 S"ssid" P"password"
Error: M587: Failed to add SSID to remembered list: another SPI transfer is pending
okm588 S"*"
Error: M588: Failed to reset the WiFi module to factory settings: another SPI transfer is pending
okm552 S1
Turn off the current WiFi mode before selecting a new one
okM552 S0
okM552 S1
Turn off the current WiFi mode before selecting a new one
okM552 S-1
WiFi module stopped
okM552 S1
okM588 S"*"
Error: M588: Failed to reset the WiFi module to factory settings: another SPI transfer is pending
okM589
Error: M589: Failed to retrieve own SSID data: another SPI transfer is pending
okM589 S"ssid" P"passworddd" I2.2.2.2
Error: M589: Failed to configure access point parameters: another SPI transfer is pending
ok - WiFi -
-
@abitsean try flashing the wifi firmware again with M997 S1
-
Ensure you have this wifi server bin file in the firmware folder before trying to reflash with M997 S1
https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/DuetWiFiServer.bin
-
I have tried 3 different cables (which I tested on a duet 3 and transferred a file to it just fine, so it's not a cable issue)
I have also tried every combination of baud rate and flow control imaginable, all with the same result...M115<CR>
Error: Bad command: [0x11]M115
ok
M115<CR>
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
ok
M115
Error: Bad command: [0x11]M115
ok
M115
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
ok
M115
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
ok
M115
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
ok
M997 S1
Trying to connect at 230400 baud: failed
Trying to connect at 115200 baud: failed
Trying to connect at 74880 baud: failed
Trying to connect at 9600 baud: failed
Error: Installation failed due to comm write error
ok -
@abitsean said in Wifi fails with "another SPI transfer pending"... 2 diff boards:
Supply voltage: min 1.7, current 1.8, max 1.8, under voltage events: 0, over voltage events: 0, power good: no
Is your board being powered by VIN or just via USB?
@abitsean said in Wifi fails with "another SPI transfer pending"... 2 diff boards:
SD card 0 not detected, interface speed: 30.0MBytes/sec
This speed seems oddly high for a Duet2. It should be 20MB/s
Can you go through this guide and tell us what you find?
https://duet3d.dozuki.com/Wiki/What_to_do_if_your_Duet_won't_respond
https://docs.duet3d.com/User_manual/Troubleshooting/Duet_wont_respondCan you take some photos of the board in case we can spot a failed component?
When and where did you purchase the Duet?
-
Hit me with the 3.3 update too...
same problem. just your linked website does not exist anymore.
What shall I do?
-
@MartinMV sorry, which?
-
a) probably best to keep to your own thread rather than re-opening three year old ones.
b) check the new docs site at https://docs.duet3d.com/en/User_manual/Troubleshooting/Duet_wont_respond(Bonus tip, dont hit enter on the search bar there if you type search terms)