PC tool for uplading hexfiles to the STM8 microcontroller via UART or SPI , using the built-in ROM bootloader. Works under Windows and Posix operating systems
If -Wmaybe-uninitialized is enabled, gcc complains that len might be used uninitialised in some places, e.g.
bootloader.c: In function ‘bsl_sync’:
bootloader.c:91:7: warning: ‘len’ may be used uninitialized [-Wmaybe-uninitialized]
91 | Error("in 'bsl_sync()': sending command failed (expect %d, sent %d)", lenTx, len);
| ^~~~~~~~~~~~~~~~~
These warnings are false positives. Still, we can simply initialise len = 0 to silence the compiler.
If -Wmaybe-uninitialized is enabled, gcc complains that len might be used uninitialised in some places, e.g.
bootloader.c: In function ‘bsl_sync’: bootloader.c:91:7: warning: ‘len’ may be used uninitialized [-Wmaybe-uninitialized] 91 | Error("in 'bsl_sync()': sending command failed (expect %d, sent %d)", lenTx, len); | ^
~~~~~~~~~~~~~~~~These warnings are false positives. Still, we can simply initialise len = 0 to silence the compiler.