Skip to content

xTaskCreate inside task won't work #1

Open

Description

@mkeyno

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

Activity

  1. stoqn4opm commented on Jun 17, 2018

    @stoqn4opm

    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...

  2. SaheblalBagwan commented on Jun 18, 2018

    @SaheblalBagwan
    Member
  3. stoqn4opm commented on Jun 21, 2018

    @stoqn4opm

    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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions