SBUS2-Telemetry icon indicating copy to clipboard operation
SBUS2-Telemetry copied to clipboard

[ESP32] ISR IRAM_ATTR Flash Issue

Open BrushlessPower opened this issue 3 years ago • 2 comments

There is a Bug for using ESP32 with this SBUS2 Library and write/read internal Flash

If ESP32 does a Flash read/write and a Interrupt occure (For Example receiving SBUS(2) or transmit Telemetry) the ESP32 crashes. This is a known Bug, but i never thought about.

All SBUS(2) ISR (and it's called functions) have to run in IRAM

i will do some test and upload the fixed Bug. Maybe it related to Issue #21 there where also mysterious Crash while using I2C

BrushlessPower avatar Dec 07 '20 07:12 BrushlessPower

i have to test every piece of the Library to make it run in IRAM

So i will do a complete new code.

  1. UART Interrupt -> Running in IRAM
  2. Timer Interrupt -> Running in IRAM

ericlangel avatar Nov 22 '21 08:11 ericlangel

i did some work on this Topic

i could get the Interrupts running in IRAM but #33 needs some changes which would not work with IRAM

So i'am not sure which issue has more priority I have to do some more work on that Topic

ericlangel avatar Mar 10 '22 08:03 ericlangel