Search found 20 matches

by Miraculix
Thu Jul 28, 2022 9:26 pm
Forum: ESP32 Arduino
Topic: How to handle exceptions (e.g. LoadProhibited)?
Replies: 5
Views: 7484

Re: How to handle exceptions (e.g. LoadProhibited)?

Also, what means "<- CORRUPTED" in a backtrace? That the stack pointer may be messed up? The docs don't seem to explain it
by Miraculix
Thu Jul 28, 2022 1:46 pm
Forum: ESP32 Arduino
Topic: How to handle exceptions (e.g. LoadProhibited)?
Replies: 5
Views: 7484

Re: How to handle exceptions (e.g. LoadProhibited)?

Ah ok. So it doesn't work like that with Arduino-ESP32. Do try/catch statements work at all? Or just not with exceptions? Will post the error log when it happens again. For some weird reason it didn't happen in the past few hours however. It's one of those exceptions which don't always happen, likel...
by Miraculix
Wed Jul 27, 2022 7:46 pm
Forum: ESP32 Arduino
Topic: How to handle exceptions (e.g. LoadProhibited)?
Replies: 5
Views: 7484

How to handle exceptions (e.g. LoadProhibited)?

So I get reboots like these, and it takes quite some effort to pinpoint the cause: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. It specifically says "Exception was unhandled", so I assume there is a way to handle the exception. However when I put a try-catch stat...
by Miraculix
Sat Jun 11, 2022 9:20 am
Forum: ESP32 Arduino
Topic: I'm programming with arduino but i need more stack space
Replies: 9
Views: 7680

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

Not sure if this works for other MCUs, but it works for ESP32-S3. Put this at the beginning of your sketch (increase size if needed)

SET_LOOP_TASK_STACK_SIZE(16 * 1024); // 16KB
by Miraculix
Fri Dec 17, 2021 12:17 pm
Forum: General Discussion
Topic: OTA without a USB or FTDI interface
Replies: 2
Views: 5655

Re: OTA without a USB or FTDI interface

I've been playing around with the ESP32-S3-WROOM-1 in the past few days. You can use GPIO 19 and 20 as USB pins for flashing via USB connection, without any additional hardware needed (though you may want to add a ferrite bead for noise reduction and some 22pF capacitors on D+ and D-, because I don'...
by Miraculix
Thu Feb 11, 2021 8:03 pm
Forum: ESP32 Arduino
Topic: ESP32-S2 USB-CDC Flashing (Arduino)
Replies: 24
Views: 24810

Re: ESP32-S2 USB-CDC Flashing (Arduino)

I don't think that's natively possible with the S2. If I remember correctly it will be possible with the S3 (or was it C3?) Maybe it's possible to write something like the OTA update. Code which accepts uploading of the compiled binaryover USB serial and then flashes it. Won't be easy to make it wor...
by Miraculix
Tue Feb 09, 2021 6:03 pm
Forum: General Discussion
Topic: ESP32-S2 Arduino UART1 & USB problem
Replies: 2
Views: 3726

Re: ESP32-S2 Arduino UART1 & USB problem

I think you need to install this driver. And compile your code with CDC enabled.
https://github.com/hathach/tinyusb
by Miraculix
Tue Feb 02, 2021 11:35 am
Forum: General Discussion
Topic: Pre-Purchase Query
Replies: 4
Views: 4482

Re: Pre-Purchase Query

Maybe I should have been more clear. Your NodeMCU most likely comes with a voltage regulator, so you can feed it with 5V. But the ESP module on that board only runs on 3.3V. So the GPIO pins only output 3.3V. So usually you don't need a seperate 3.3V power supply.
by Miraculix
Mon Feb 01, 2021 10:12 pm
Forum: General Discussion
Topic: Pre-Purchase Query
Replies: 4
Views: 4482

Re: Pre-Purchase Query

If your code is written for the Arduino IDE, then it should work. Never found a library (except the LowPower library) which worked on ATmega328 but didn't work on ESP8266/ESP32. So porting your code shouldn't be a big deal. Note that you can't run ESPs on 5V. The GPIOs typically all run on 3.3V. So ...
by Miraculix
Fri Jan 22, 2021 6:28 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 443
Views: 930753

Re: What would you like to see in The Next Chip?

MVIO like in the AVR128DB32. E.g. to use it as a level shifter.