Str8prog win32 binary anyone?

hello
the following project GitHub - IOsetting/stc8prog: Open Source STC8G/STC8H ISP flash tool
said it is compiled for win32 but cannot find its binary !?
does anyone have a copy?

thanx

When you downloaded MSys2 you can compile it normally using make and the x86_64-pc-msys-gcc compiler. This will use a kind of emulated Linux environment. (Also has a dependency on msys-2.0.dll)

$ CC=x86_64-pc-msys-gcc  make
CC       build/./src/main.c.o
CC       build/./src/stc8db.c.o
CC       build/./src/stc8prog.c.o
CC       build/./src/serial/win32/com.c.o
MKPE     stc8prog

For me, it failed to compile using the native Windows environment because it wants err.h.

$ CC=x86_64-w64-mingw32-gcc make
CC       build/./src/main.c.o
src/main.c:22:10: fatal error: err.h: No such file or directory
   22 | #include <err.h>
      |          ^~~~~~~
compilation terminated.
make: *** [Makefile:46: build/./src/main.c.o] Error 1

Here is the compiled version: File-Upload.net - stc8prog.zip. It seems to be able to open COM ports just fine.

>stc8prog.exe --port COM1
Opening port COM1: done
Waiting for MCU, please cycle power:

thanx !

program has issues but definitelly not because of compilation
a) do not connect to usb>serial adaptors, only pci ones
b) fails to communicate with my mcu brings an error
but it not about compilation, i think MCU has newer firmware not supported by this pprog because i had same problem with original programmer , until a newer version arrived…

thanx though again :slight_smile:

Please log that issue at https://github.com/IOsetting/stc8prog/issues with your exact STC microcontroller and program output, possibly the verbose output too (UART data).

ok,k report all, but i doupt is active anymore:) project seems dead since 2022
thanx