Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 example has a stack overflow #25

Open
txf- opened this issue Apr 6, 2024 · 4 comments
Open

ESP32 example has a stack overflow #25

txf- opened this issue Apr 6, 2024 · 4 comments

Comments

@txf-
Copy link

txf- commented Apr 6, 2024

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
Copy link
Member

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
Copy link

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
Copy link
Member

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-
Copy link
Author

txf- commented Jun 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants