You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've install this lib on Arduino 1.8 and choose Arduino Uno , but I've notice when I've tried to create task inside another task , it will halt the program, also I've tried to change stack size but it didn't help
any clue really appreciated
So for everyone that comes after me, the problem was that i was using the wrong heap memory allocation implementations. I was using the malloc one - "heap_3.c" and for me it is not working on ATMega328p running on a internal 8MHz clock, no bootloader writing programs directly with usbasp programmer and avrdude. It worked with implementations "heap_1.c" and "heap_4.c" but i could imagine that the rest should work too because they all rely on custom implementations of heap. So i think everything different than "heap_3.c" should work, just delete it and put other implementation of the two functions that are inside.
And by the way @SaheblalBagwan thanks for the quick reply man, this link worked and it helped my a lot when i had to realise what exactly is causing the issue :)
Activity
stoqn4opm commentedon Jun 17, 2018
i have noticed the same issue in the original repo https://github.com/feilipu/Arduino_FreeRTOS_Library
and i was just about to test this out, but i guess its the same...
SaheblalBagwan commentedon Jun 18, 2018
Please try this example, it had worked for me.
https://exploreembedded.com/wiki/index.php?title=Creating%20a%20Task%20from%20other%20Tasks
stoqn4opm commentedon Jun 21, 2018
So for everyone that comes after me, the problem was that i was using the wrong heap memory allocation implementations. I was using the malloc one - "heap_3.c" and for me it is not working on ATMega328p running on a internal 8MHz clock, no bootloader writing programs directly with usbasp programmer and avrdude. It worked with implementations "heap_1.c" and "heap_4.c" but i could imagine that the rest should work too because they all rely on custom implementations of heap. So i think everything different than "heap_3.c" should work, just delete it and put other implementation of the two functions that are inside.
And by the way @SaheblalBagwan thanks for the quick reply man, this link worked and it helped my a lot when i had to realise what exactly is causing the issue :)