Debugging "Exception occurred 'StoreProhibited' " Where do I start? #3188
-
Hi, I am trying to read GPS data from i2c and share it on BLE. These are lengthy reads on i2c (order of 1kbyte per sec). When I enable BLE (nothing fancy just copy-paste of the example code) I start getting these errors.
How do I start debugging this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
First, please update to esp-hal 1.0.0-beta.0, esp-wifi 0.13 and see if this is still an issue. |
Beta Was this translation helpful? Give feedback.
-
I'm working on the migration to 1.0.0-beta.0 and esp-wifi 0.13 but having linker issues:
Is there also a beta channel for the toolchain that I need to switch to? |
Beta Was this translation helpful? Give feedback.
-
I'm actually currently debugging a similar issue. |
Beta Was this translation helpful? Give feedback.
-
The main stack is what is left free - i.e. RAM - rwtext - data - bss (including what is reserved for the heap) But you can place the heap into dram2 which is otherwise not useable (see esp-hal/examples/src/bin/wifi_coex.rs Lines 62 to 63 in c8822b4 Especially on ESP32 using Bluetooth reduces RAM by 64k (we might be able to reduce that in future but currently it's 64k) |
Beta Was this translation helpful? Give feedback.
The main stack is what is left free - i.e. RAM - rwtext - data - bss (including what is reserved for the heap)
But you can place the heap into dram2 which is otherwise not useable (see
esp-hal/examples/src/bin/wifi_coex.rs
Lines 62 to 63 in c8822b4
Especially on ESP32 using Bluetooth reduces RAM by 64k (we might be able to reduce that in future but currently it's 64k)