lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It is very unlikely that the windows version of luac from something like LuaBinaries will produce bytecode that works on an STM32. As I said, Lua bytecode is not some sort of standard format that is compatible across different environments (except by happy coincidence or careful planning). You will have to use the Lua compiler from the STM32 SDK that produced the firmware that is running on your STM32, whatever that is.

This is starting to sound like a "how do I do STM32 development with SDK xyz on a Windows PC" question, which is not something I know anything about, and will also vary wildly depending on exactly what 'xyz' is :-)

Regards,

Tom

> On 29 Sep 2023, at 15:49, bil til <biltil52@gmail.com> wrote:
> 
> Thank you Tom
> 
> Just loading Lua 5.4 for Win32 really sounds like a good idea, then I
> hope luac54.exe there also the 32bit version.
> 
> My problem is, that I use Lua on my Windows 10 development PC for
> different applications:
> - for Windows c++ software as an "inlet script parser". This works
> fine - for this I do NOT need luac54.exe / no Lua bytecode needed.
> - for STM32 32bit microcontroller development. There I want to check
> bytecode load to controller, and to create this bytecode I need 32bit
> version of luac54. I will download the Win32 version of Lua and then
> check this luac54.exe from this download... .
> 
> ... it will need some time... I will report later