I spent some time on the weekend hunting down all the issues.
Now all tests succeed.

The only real "bugs" were issues #6941 & #6945, which I hope to fix soon.
The rest were mostly configuration problems.

One thing that I found odd is the excessive stack usage of the coroutines
library.
On the simulator I had to set the stack to 1M.

I am afraid that this specific library may not be usable on actual MCU
systems...

On Sat, Aug 27, 2022 at 8:40 PM Xiang Xiao <xiaoxiang781...@gmail.com>
wrote:

> On Sun, Aug 28, 2022 at 1:07 AM Fotis Panagiotopoulos <f.j.pa...@gmail.com
> >
> wrote:
>
> > Hello Mike!
> >
> > I have also been using Lua on microcontrollers for many years, with great
> > success.
> > For The last couple of years I have been running Lua on NuttX, these two
> > are great when combined!
> >
> > Quite recently I tried running the Lua tests suite (
> > http://www.lua.org/tests)
> > on NuttX, and to my surprise, I got multiple failures.
> >
> > Some of them are related to issue #6941, but I also got more.
> > I even get corruption of the heap in some cases.
> >
>
> For heap failure, I would suggest you:
>
>    1. Run the test on sim with CONFIG_SIM_ASAN and CONFIG_SIM_UBSAN
>    2. Run the test on real device with CONFIG_MM_KASAN, CONFIG_MM_UBSAN and
>    CONFIG_STACK_CANARIES
>
>   and fix the possible errors reported by these tools.
>
>
> > Have you tried to run these tests?
> > Do they succeed?
> >
> >
> > On Wed, Aug 24, 2022 at 4:23 AM Mike Mogenson <
> michael.mogen...@gmail.com>
> > wrote:
> >
> > > Hello,
> > >
> > > I’ve published two articles about using Lua on NuttX with libuv for
> > > asynchronous IO and networking:
> > >
> > > https://medium.com/@michael.mogenson/using-lua-on-nuttx-bcc9a39b2814
> > >
> > >
> > >
> >
> https://medium.com/@michael.mogenson/using-lua-and-libuv-for-async-networking-on-nuttx-6e4635eeaedc
> >
>

Reply via email to