Luos-io / Get_started

Get started for Luos technology. This page allows you to build, flash, run, and control your very first Luos code.
https://www.luos.io/tutorials/get-started
MIT License
29 stars 1 forks source link

ESP32 example has a stack overflow #25

Open txf- opened 7 months ago

txf- commented 7 months ago

The ESP32 example of the getting started project has a stack overflow of the loop() task with the default stack size of 8192.

I changed it to in sdkconfig 12000 and it did not overflow. I don't know what the high water mark is for that task, but even so I'm surprised that the default stack size isn't sufficient.

I can't yet confirm that the example is working fully and running, as pyluos-shell --baudrate 115200 does not seem to detect the device

nicolas-rabault commented 7 months ago

Hi @txf- , Thank you for reaching out. ESP32 is the most unreliable configuration at the moment. Compiler and HAL updates frequently break the examples. I don't have any ESP32 to test at the moment, but as soon as I get one I will give it a try.

guillemonzo commented 5 months ago

Hi @txf- @nicolas-rabault,

I also have problems trying to run the example on the ESP32. I think it is in a boot loop, since on the serial monitor the following message is repeated:

rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6936
load:0x40078000,len:16588
ho 0 tail 12 room 4
load:0x40080400,len:4096
entry 0x40080698

When I run pyluos-shell --baudrate 115200 the output is:

Searching for available Gates:
        - Search a Gate on port COM4
... No gate detected

Any ideas to find the root cause of the error? Thanks!

nicolas-rabault commented 5 months ago

You are right, your esp doesn't seem to boot. Plus need a running esp to detect it. @txf- is the expert here, I'm a noob on esp...

txf- commented 5 months ago

if you're running the examples as-is I would assume you're getting the same problems as I am, a stack overflow in loop().

I still haven't determined how to resolve the issues after that