SD Card 'Cnnot Initialise SD' / Error M21
-
We are a charity providing support for the community and were gifted a Core XY printer but WITHOUT any SD card.
We have tried a number of different cards all with the same result, even tried to Format with an old Lap-top to get 512 rather than 4096 etc
We get exactly the same message regardless of which card slot we use (ie the one on the DUET or the PanelDue)
Example of full diagnostics from the YAT sessions etc if it helps? (we get slightly different messages on repeated)
AFTER SD card installed
**m122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 2.04 running on Duet WiFi 1.02 or later
Board ID: 08DGM-95BNL-MGPSN-6J9F6-3S46R-TJWZW
Used output buffers: 1 of 24 (2 max)
=== RTOS ===
Static ram: 25680
Dynamic ram: 92312 of which 0 recycled
Exception stack ram used: 256
Never used ram: 12824
Tasks: NETWORK(ready,1876) HEAT(blocked,1324) MAIN(running,4268) IDLE(ready,200)
Owned mutexes:
=== Platform ===
Last reset 00:00:15 ago, cause: power up
Last software reset at 2021-01-05 22:16, reason: User, spinning module GCodes, available RAM 11736 bytes (slot 2)
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 93ms; fastest: 0.05ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Move ===
Hiccups: 0, FreeDm: 160, MinFreeDm: 160, MaxWait: 0ms
Bed compensation in use: none, comp offset 0.000
=== DDARing ===
Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
0.14ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
HTTP sessions: 0 of 8- WiFi -
Network state is disabled
WiFi module is disabled
Failed messages: pending 2779096485, notready 2779096485, noresp 2779096485
Socket states: 0 0 0 0 0 0 0 0
ok**
Just for information I tried BOTH slots (PanelDue & the main PCB)
M39
M39: No SD card mounted in slot 0
ok
M39
M39: No SD card mounted in slot 0
ok
Any hints are greatfully accepted - WiFi -
-
Only the slot on the Duet itself is used for printer configuration, etc. The slot on the PanelDue is for loading gcode files for printing if you don't want to use the web interface.
For the SD card, how large of a card are you trying to use? The Duet can only address cards of 32gb or less. If your card is larger, try a smaller one, or create a 32gb partition on it.
For formatting it's recommended to use the official SD card formatter. https://www.sdcard.org/downloads/formatter/index.html
You can see more details here.
https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_cardIf you have what should be a working SD card, but still not showing up, there may be an issue with the slot itself. Can you get some photos of the slot with particular attention to the soldering points along the reader itself?
-
@Bridge-Of-Don
Thanks for your reply
Until we get the SD card 'visible' then we can't get to use the web-interface so trying various options.We have tried 1Gb, 8Gb & 32Gb, formatted using both the 'official' formatting website, a couple of lap-tops and a Chrome book,
it is possible that we have not correctly set out the file structure.
we have three main folders and the sub folders all seem present, note we do not have 'filaments' nor 'menu' the names are as this photo, should the structure be named " /sys " & " /www " rather than simply "sys" & " www" (we simply 'unzipped' from the RepRap website)The card are all readable on lap-tops, PC & Chromebook so we don't think there is an issue with the actual SD card(s)
We did consider getting a ten-way ribbon cable to see if that would then allow us to use the SD card slot on the PanelDue, just to get 'underway' then revert (or start) to use the web interface.
The PCB is a version 1.02 , so quite early and the soldering around the SD card 'looks' good.
hopefully this image is clear enough? -
The folder structure looks correct.
Can you send M22 and M21? What does it report?
Can you get a clearer photo with more of an angle of the backside where the pins are soldered?
-
@Bridge-Of-Don
See also https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_card#troubleshooting-sd-card-issues and run the tests there, when connected to the Duet via YAT over USB.
If possible, check there is nothing physically in the SD card slot, eg dust, that might be preventing contact.We did consider getting a ten-way ribbon cable to see if that would then allow us to use the SD card slot on the PanelDue, just to get 'underway' then revert (or start) to use the web interface.
As @Phaedrux said, the configuration and web interface files need to be on an SD card that is in SD card slot on the Duet. The SD card slot on the PanelDue is only used for loading gcode files for printing.
Ian
-
Thanks to both for support.
Today I had a small win, at least the SD card is being 'seen'.Not sure if it makes any difference but I copied the WHOLE zipped file onto the SD card and 'unzipped' on the card rather than copying the 'individual' files across. (Formated on a Chromebook, using FAT 32, default)
BTW I should have remembered that /www is the same as www cos the / is old skool DOS
results today
################
m21
SDHC card mounted in slot 0, capacity 8.23Gb
ok
m22
SD card 0 may now be removed
ok
m21
SDHC card mounted in slot 0, capacity 8.23Gb
ok
################I managed to get the DWC operational but need to update the firmware, I'll try that later / next week as away from printer until then.
-
@Bridge-Of-Don said in SD Card 'Cnnot Initialise SD' / Error M21:
need to update the firmware
Yes, your firmware version is quite old on that board. I think your best bet will be to use the USB firmware flashing method to jump straight to modern firmware. Details on how to do that can be found here: https://docs.duet3d.com/en/User_manual/RepRapFirmware/Updating_firmware#fallback-procedure-2
You'll use a software called Bossa to write the new firmware directly to the board over USB.
The firmware file you'll need is here: https://github.com/Duet3D/RepRapFirmware/releases/download/3.5.1/Duet2CombinedFirmware.bin
Once that is done you will need to manually update the web control files in the WWW folder with the matching version for the new firmware. That file can be found here: https://github.com/Duet3D/RepRapFirmware/releases/download/3.5.1/DuetWebControl-SD.zip
Since you didn't receive an SD card with any configuration files you'll need to go through the process of creating a set anyway. Might as well start with something modern which makes it easier to support.
You can use the online config tool to create a new config set.
https://configtool.reprapfirmware.org/You'll need to know some details about the printer itself, which may take some investigation to suss out.
@Bridge-Of-Don said in SD Card 'Cnnot Initialise SD' / Error M21:
capacity 8.23Gb
I would suggest using a 32GB card. 8gb will be a bit tight once you start uploading print jobs.
-
Well today a little progress, as the SD card is now visible , might have been an issue with 'debris' within the slot?
I managed to get all the zip files, but we need this 'bin' file??
Make sure you have an 'iap4e.bin' (for Duet 2 WiFi/Ethernet)
I had a look in the .zip file and the iap4e is not present within the zip and it is NOT listed within the assets of the version 3.5
although according to below as we are running version 2.04 (dated 2019-11-01) then the iap4e is maybe 'not suitable'?########
The version 3.01 and later binaries are too large to be installed by the IAP program supported by version 1.x and 2.x firmware. Therefore you cannot upgrade directly from version 1.x or 2.x firmware to 3.01 or later firmware.
#########i do get an error message from the Duet saying that "iap4e.bin" not found which suggest that it is attempting to re-programme
In a fit of desperation did a 'Google search' and then Downloaded from an 'old location'
this might be useful for others?https://reprap.org/forum/read.php?416,741892
results from latest effort, so it would appear to NOT have updated?
#############
M21
SDHC card mounted in slot 0, capacity 31.30Gb
ok
M997 S0
WiFi module is connected to access point TNCAPA10132, IP address 192.168.1
M115
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.04 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2019-11-01b1
okWe have successfully upgraded the WiFi as below
Warning:WiFi module is connected to access point TNCAPA10132, IP address 192.168.1
M997 S1
Trying to connect at 230400 baud: success
Erasing 4096 bytes...
Erasing 626688 bytes...
Uploading file...
5% complete
.
.
.
.
Upload successful
ok
WiFi module started
####################It would appear that we have WiFi working but still not connecting using the DWC, although it 'suggests' that the firmware has been updated?
##############
M997 S0
WiFi module started
WiFi module is connected to access point TNCAPA10132, IP address 192.168.1.
m115
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.04 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2019-11-01b1
ok
m997 S0
Shutting down USB interface to update main firmware. Try reconnecting after 30 seconds.
WiFi module started
WiFi module is connected to access point TNCAPA10132, IP address 192.168.1.173 -
@Bridge-Of-Don The IAP file is the In-App Programmer; basically a program that does the flashing of the firmware. "iap4e.bin" wasn't included in the 2.04 release for some reason lost to the mists of time, so you need to use the one from 2.03. Get it from https://github.com/Duet3D/RepRapFirmware/releases/tag/2.03 and copy it into your system folder. Then you should be able to update to RRF 3.0 using
M997 S0
(I think the RRF 3.0 binary is already in your sys folder).I think DWC has already been updated to the 3.0 version, which is probably why RRF 2.04 can't connect to it.
Ian
-
@Phaedrux said in SD Card 'Cnnot Initialise SD' / Error M21:
@Bridge-Of-Don said in SD Card 'Cnnot Initialise SD' / Error M21:
need to update the firmware
Yes, your firmware version is quite old on that board. I think your best bet will be to use the USB firmware flashing method to jump straight to modern firmware. Details on how to do that can be found here: https://docs.duet3d.com/en/User_manual/RepRapFirmware/Updating_firmware#fallback-procedure-2
You'll use a software called Bossa to write the new firmware directly to the board over USB.
The firmware file you'll need is here: https://github.com/Duet3D/RepRapFirmware/releases/download/3.5.1/Duet2CombinedFirmware.bin
Once that is done you will need to manually update the web control files in the WWW folder with the matching version for the new firmware. That file can be found here: https://github.com/Duet3D/RepRapFirmware/releases/download/3.5.1/DuetWebControl-SD.zip
Since you didn't receive an SD card with any configuration files you'll need to go through the process of creating a set anyway. Might as well start with something modern which makes it easier to support.
You can use the online config tool to create a new config set.
https://configtool.reprapfirmware.org/You'll need to know some details about the printer itself, which may take some investigation to suss out.
@Bridge-Of-Don said in SD Card 'Cnnot Initialise SD' / Error M21:
capacity 8.23Gb
I would suggest using a 32GB card. 8gb will be a bit tight once you start uploading print jobs.
This is why I suggested flashing the firmware directly with the Bossa software oer USB and gave directions on how to get DWC going.
-
@Phaedrux said in SD Card 'Cnnot Initialise SD' / Error M21:
This is why I suggested flashing the firmware directly with the Bossa software over USB and gave directions on how to get DWC going.
Aye, but I'm trying 'not' to get too bogged down with multiple programmes and downloads and we did have YAT working so I thought worth a try?
@droftarts
Thanks I'll have a wee bash at this then if it doesn't work then I'll revert to the BOSSA, although i did find iap4e.bin , but maybe still a conflict with various versions knocking around.The 'web server' update took a few minutes although the 'shutting down USB' message came back without a progress report ie 5, 10, 15% etc so I really wasn't convinced it had worked
and we might even get the printer to move under it's own power (before Summer Holidays)
Alan