Skip to content

Update a02-my-esp-crashes.rst #3950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 28, 2017
Merged

Update a02-my-esp-crashes.rst #3950

merged 6 commits into from
Dec 28, 2017

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.

2 participants