- Copy the file
ExtraFile/SIConfig.hpp.example
toFirmware/ScribitESP/SIConfig.hpp
- Copy the file
ExtraFile/Mk4duoVersion.h.example
toFirmware/MK4Duo/Mk4duoVersion.h
- Copy the file
ExtraFile/ScribitVersion.hpp.example
toFirmware/ScribitESP/ScribitVersion.hpp
- Make the necessary configurations and compile
Follow the instruction on the document MBC-W page 38 (Arduino platform manual installation)
To compile correctly, the following steps are required (All files are located in the Extrafile
folder):
- Copy the files
8MB_ffat.csv
and8MB_spiffs.csv
toArduino/hardware/METECA/mbc-wb/tools/partitions
- Copy the
arduino-mqtt
folder toArduino/libraries
- Copy the
StepperDriver
folder toArduino/libraries
- Copy the
SERCOM.cpp
file toArduino/hardware/METECA/mbc-wb/cores/samd21
- Connect to the
ScribIt-AP
AP. - Send a POST request to
http://192.168.240.1:8888
. The body must contain a JSON formatted as follows:{ "ssid": "networkSSID", "password": "networkPsk" }
. - The device blinks faster and responds:
- 200: The request is correct. The body contains a JSON formatted as follows:
{"ID":"id_device"}
. - 400: Error in the request. The body contains details about the error in the format:
{"error":"error", "ID":"id_device"}
.
- 200: The request is correct. The body contains a JSON formatted as follows:
- If the connection is successful, the device turns the LEDs green and reboots; otherwise, it turns them red for 2 seconds and waits for a new configuration packet.
To reset the Wi-Fi configuration, press the button for at least 2 seconds. The device will reboot.
- Compile the firmware.
- Connect to the AP and open the OTA tool.
- Connect to
192.168.240.1
on port3232
without a password. - Follow the document MBC-W
- If you perform an update from a link on SAMD with the serial monitor open, the port may become inaccessible until the first reboot.
- The device reports insufficient space even if the GCODE is much smaller than 5MB:
- Follow SDK Installation and try flashing again.
- Follow the procedure for flashing the partition table, ensuring that this firmware for the ESP does not coexist with the one for the SAMD partition table.
- After downloading, the robot does not move, and the debug shows many serial errors:
- Follow SDK Installation and verify that the
SERCOM.cpp
file has been correctly overwritten.
- Follow SDK Installation and verify that the