Lua has been ported to NuttX several times. If you Google for
"lua+NuttX" you find lots of hits, many from
https://nuttx.yahoogroups.narkive.com.
This is from 2018: https://github.com/tokoro10g/lua-nuttx
We really ought to talk to the Lua team and see if we can upstream the
changes. Unsupported ports in NuttX don't have good shelf life.
On 6/9/2021 1:08 PM, David S. Alessio wrote:
Also, if you need/want help with getting Lua to run on NuttX, let me know. I
had Lua 5.1.4 on NuttX (5 maybe it was) a long time ago. I believe I submitted
a patch to add it, but I can’t find it now. The addition of Lua to NuttX was
in the form of a subdirectory in apps containing only a Makefile and a few
patches. The Makefile would fetched the Lua tarball, applied the patches, and
built it. We can recreate this if interested…
Cheers,
-david
On Jun 9, 2021, at 11:51 AM, David S. Alessio <david.s.ales...@gmail.com> wrote:
Hello, Foti,
I wrote setjmp/longjmp for armv7-m some time ago. The code should be in file:
arch/arm/src/armv7-m/gnu/up_setjmp.S
If not, it’s attached here.
Cheers,
-david
<up_setjmp.S.gz>
On Jun 9, 2021, at 11:10 AM, Fotis Panagiotopoulos <f.j.pa...@gmail.com
<mailto:f.j.pa...@gmail.com>> wrote:
Hi everyone!
I just started adding Lua to my NuttX-based project, but I have some
problems with it.
I am getting undefined references to longjmp/setjmp.
I am using an STM32F4 and GCC:
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major)
9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
As I see, this combination of arch and compiler should work for
setjmp/longjmp, so I believe that something is misconfigured on my side.
Is there any special Kconfig option that I am not aware of? Do I need any
special compiler flags?