makerbase-mks / MKS-DLC32-FIRMWARE

The source code of MKS DLC32
GNU General Public License v3.0
69 stars 50 forks source link

Uploading makes a mess #7

Open iherbak opened 1 year ago

iherbak commented 1 year ago

Hi,

If i upload the firmware via vscode, it makes something i unable to figure out. E.g i can not change $32 to 1. It says it did, but on next start it is back to 0. And issuing an M4 shows error 20 aka unknow gcode even if $$ shows $32=1.

Maybe something with the partitions is not right?

Also how can i make a firmware that contains also the spiffs bin as well?

Thanks

solawc commented 1 year ago

The contents of spiffs.bin are in the data folder and can be directly compiled into spiffs.bin through platformIO. Please refer to the platformIO documentation for details. As for the problem of saving $32 data, the data is saved in the NVS partition. You will not update the NVS partition content if you only update the firmware, unless you change the GRBL date. Otherwise, you should erase the whole piece before burning the firmware.

iherbak commented 1 year ago

OK i figured out that the official firmwares are complete flash dumps.