I'm programming with arduino but i need more stack space

The ESP32 Arduino framework allocates the “main” Arduino SETUP/LOOP task with a limited stack size. There are (at least) 2 work arounds.

  1. you can go update the framework. This works but you need to dig and the next time you update the framework your work will be undone.
  2. you can create your own work task in the SETUP function with the stack size you need. You can still do work in the loop() function running in the original task but you will use your new task for the work that needs the giant stack.