Replies: 1 comment
|
I tried your code above and have found that the output is as I would expect. But, the issue you may be facing is that Task stack storage is defined in the xTaskCreate() function, and is limited to the amount of space that you define in Task creation. See configMINIMAL_STACK_SIZE You can use the functions available in freeRTOS to check your stack usage, and ensure that the Task stacks are not overflowing. http://www.freertos.org/Stacks-and-stack-overflow-checking.html I note that the StackOverflow error flash (4 second cycle) occurs when I increase to 30 iterations... |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have a Arduino Mega 2560 and I wrote the small program that I include at the end.
The problem is that it works fine when I write "#define MAX_CYCLES_ 10" but if I write "#define MAX_CYCLES_ 20" it just doesn't give any output.
I can't understand why.
Maybe is a question of memory allocation but I can't see how and where it is done.
Can you give me please a clue why this happens and how can I solve it.
Many thanks in advance.
Cheers,
Luis
All reactions