m21

M21 performs no operation in Smoothieware: Smoothie initializes the SD card at boot and accepts M21 for compatibility.
M21 is kept for compatibility, Smoothie initializes the SD card at boot #

M21 replies SD card ok for hosts that expect an SD initialization command. On V1 it also asks the card mounter to remount the card. On V2 it only sends the reply.

Compatibility command: This command exists in Smoothieware for compatibility with other firmware (like Marlin/RepRap firmware), so that G-code files and control software written for them work without modification. Smoothieware automatically initializes the SD card on boot, so manual initialization is not required.

V2 reads the card through its SDIO interface, but like V1 it initializes the card at boot.

When received, Smoothieware acknowledges the command but does nothing beyond that. The SD card will remain in its current state.

Format

M21

Which means: the command will be received but Smoothieware will perform no operation.

Parameters

The command takes no parameters.

Example

If your host wants to initialize the card before listing its files, send M21 followed by M20.

Configuration

There are no settings for this command. Smoothie sets up the card at boot, so this command is not necessary for normal operation.

Further reading

These resources are used as references:

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.