Tasking Library: stopping and starting tasks

Comments

6 comments

  • Avatar
    Michael Johnson

    The documentation states that ctl_task_restore should be used if ctl_task_remove has been used.

    ctl_task_remove(ctl_task_executing) ==  ctl_task_die()

    1
    Comment actions Permalink
  • Avatar
    Johannes Schlichting

    @Michael Johnson

    unfortunately this doesn't do what I want. removing and restoring is more like "pausing". After restore the task starts from where it had been before. Instead I want to abort the task and start again from the beginning.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    That should be okay, are finding problems with this?

    0
    Comment actions Permalink
  • Avatar
    Johannes Schlichting

    No, not directly. But I have rare hardfaults who seem to be caused by overwritten memory. So I'm doublechecking everything.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Have you double/triple checked stack sizes.

    0
    Comment actions Permalink
  • Avatar
    Johannes Schlichting

    yes, I did. crossworks has a nice feature that I just now discovered: "Stack Usage" monitor :). 

    0
    Comment actions Permalink

Please sign in to leave a comment.