Skip to content

Conversation

@devyte
Copy link
Collaborator

@devyte devyte commented Dec 12, 2017

Added section Other causes for crashes with ISR, Async callbacks, memory guidelines, stack.
Fixes #1388 .

Added section Other causes for crashes with ISR, Async callbacks, memory guidelines, stack.
Fixes #1388 .
Minor typos and text fixes
@devyte
Copy link
Collaborator Author

devyte commented Dec 17, 2017

@igrr @d-a-v any feedback here?

@devyte
Copy link
Collaborator Author

devyte commented Dec 26, 2017

@igrr @d-a-v ping! BTW, the relevant issue is targeted for 2.4.0.

* If you use std libs like std::vector, make sure to call its ::reserve() method before filling it. This allows allocating only once, which reduces mem fragmentation, and makes sure that there are no empty unused slots left over in the container at the end.

Stack
The amount of stack in the ESP is tiny at only 5KB. For normal developement in large systems, it
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it 4kB? (#define CONT_STACKSIZE 4096)

@igrr
Copy link
Member

igrr commented Dec 26, 2017

Looks good otherwise!

@devyte devyte merged commit a7984b6 into master Dec 28, 2017
@igrr igrr deleted the devyte-docs-crashes branch January 2, 2018 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants