Skip to content
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

Add FreeRTOS exsample #2067

Merged
merged 4 commits into from
Dec 16, 2018
Merged

Add FreeRTOS exsample #2067

merged 4 commits into from
Dec 16, 2018

Conversation

lutfisan
Copy link
Contributor

No description provided.

@mouridis
Copy link
Contributor

Am I missing something here?

Comments in line 7 and lines 56 to 81 hint that the first task will be about blinking but the code for both tasks is an analog read.

@chegewara
Copy link
Contributor

Its just a bad copy/paste example.

@lutfisan
Copy link
Contributor Author

lutfisan commented Nov 18, 2018

Am I missing something here?

Comments in line 7 and lines 56 to 81 hint that the first task will be about blinking but the code for both tasks is an analog read.

sorry for my mistake, task 1 and task 2 just read ADC

Its just a bad copy/paste example.

sorry for my mistake

@chegewara
Copy link
Contributor

Again, 128 bytes its to few for task stack size. App will crash. You copied code from freeRTOS examples, but freeRTOS is using dwords for stack size and esp-idf is using bytes. Minimum stack size is about 750 byes so i suggest to set it to 1 or 2kB.

Also, like i wrote before, tasks with priority 1 and 2 and no delay in loop or any other function that will suspend task does not allow to switch to other tasks.

lutfisan and others added 2 commits November 19, 2018 00:08
@me-no-dev me-no-dev merged commit be081ac into espressif:master Dec 16, 2018
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.

4 participants