platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
136 stars 104 forks source link

tool-simavr does not run on 32-bit Windows although advertised #258

Closed maxgerhardt closed 2 years ago

maxgerhardt commented 2 years ago

Per https://community.platformio.org/t/how-to-simulate-serial-port-on-debugger-simulator/14503/3?u=maxgerhardt.

When using tool-simavr on 32-bit Windows, the executable fails to run.

>file C:\Users\%USERNAME%\.platformio\packages\tool-simavr\bin\simavr.exe

C:\Users\Max\.platformio\packages\tool-simavr\bin\simavr.exe; PE32+ executable for MS Windows (console) Mono/.Net assembly

PE32+ is 64-bit, but the package.json declares windows_x86.

After jumping through considerable hoops in the compilation of simavr and the AVR toolchain (https://github.com/buserror/simavr/issues/459), I managed to produce a pure 32-bit version using MinGW of the bleeding-edge simavr, which is attached here.

>file simavr.exe
simavr.exe; PE32 executable for MS Windows (console) Intel 80386 32-bit

tool-simavr-win32.zip

Please update the packages accordingly.