Skip to content

Debugging "Exception occurred 'StoreProhibited' " Where do I start? #3188

Answered by bjoernQ
yalcinozhabes asked this question in Q&A
Discussion options

You must be logged in to vote

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

// COEX needs more RAM - add some more
esp_alloc::heap_allocator!(#[link_section = ".dram2_uninit"] size: 64 * 1024);
) - then you can reduce or maybe even remove the heap allocated in the other RAM area

Especially on ESP32 using Bluetooth reduces RAM by 64k (we might be able to reduce that in future but currently it's 64k)

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@bugadani
Comment options

@yalcinozhabes
Comment options

@yalcinozhabes
Comment options

@iButcat
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@raphaelhetzel
Comment options

@yanshay
Comment options

@raphaelhetzel
Comment options

@yanshay
Comment options

@raphaelhetzel
Comment options

Answer selected by yalcinozhabes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants