Compilation ends with SUCCESS status. Then using Windows Explorer's "Sent to" function I send firmware.bin file to SD card. After clicking Eject SD and removing SD card from PC I insert it into SKR2 and power it on via USB cable from PC.
One red and one green LEDs light up and another red LED flushes several times and then comes up in half brightness. PC does not detect new serial port and Pronterface has nothing to connect to.
Then if I disconnect SKR2 from USB and put SD card into PC's card reader I can see that firmware.bin file was renamed into FIRMWARE.CUR.
I am comparably new to VSC and following Youtube instructions describing how to compile Marlin firmware and upload it to SD card. When repeating the exact same steps with Marlin code - it works. PC adds COM3 port and Pronterface can communicate with it. The file, btw, gets renamed into FIRMWARE.CUR as well.
I think if missing driver would be an issue, it won't work with Marlin as well.
Apart from this, when I set Z_PROBE_TYPE to 1 (1 = default z probe) I got the following compilation errors:
Compiling .pio\build\SKR2\src\io\io_temperature.cpp.o
src\drivers\zprobe.cpp: In static member function 'static float ZProbeHandler::runProbe(uint8_t, bool)':
src\drivers\zprobe.cpp:278:27: error: redeclaration of 'RememberedEndstopMode oldMode'
278 | RememberedEndstopMode oldMode; // RAII does restore on return
|
~
~~src\drivers\zprobe.cpp:132:27: note: 'RememberedEndstopMode oldMode' previously declared here
132 | RememberedEndstopMode oldMode; // RAII does restore on return
|
~
~~*** [.pio\build\SKR2\src\drivers\zprobe.cpp.o] Error 1
Thanks