Skip to content

scribit-open/open-firmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HowTo

Compile the Firmware

  • Copy the file ExtraFile/SIConfig.hpp.example to Firmware/ScribitESP/SIConfig.hpp
  • Copy the file ExtraFile/Mk4duoVersion.h.example to Firmware/MK4Duo/Mk4duoVersion.h
  • Copy the file ExtraFile/ScribitVersion.hpp.example to Firmware/ScribitESP/ScribitVersion.hpp
  • Make the necessary configurations and compile

SDK Installation

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 and 8MB_spiffs.csv to Arduino/hardware/METECA/mbc-wb/tools/partitions
  • Copy the arduino-mqtt folder to Arduino/libraries
  • Copy the StepperDriver folder to Arduino/libraries
  • Copy the SERCOM.cpp file to Arduino/hardware/METECA/mbc-wb/cores/samd21

New Wi-Fi Configuration

  • 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"}.
  • 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.

Delete Saved Wi-Fi

To reset the Wi-Fi configuration, press the button for at least 2 seconds. The device will reboot.

OTA Firmware

  • Compile the firmware.
  • Connect to the AP and open the OTA tool.
  • Connect to 192.168.240.1 on port 3232 without a password.
  • Follow the document MBC-W

Known Bugs

  • If you perform an update from a link on SAMD with the serial monitor open, the port may become inaccessible until the first reboot.

Troubleshooting

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors