Deleting a task

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I'm having a bit of a problem getting rid unnecessary tasks. I suspect it's due to my not understanding things quite right. Hopefully someone here will be able to enlighten me :)

I'm using the AVR32-UC3-SoftwareFramework-1.6.0.

I create a task using this:

xTaskCreate( pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pxCreatedTask )

and that works fine but, when I subsequently try delete said task using the:

vTaskDelete( xTaskHandle pxTaskToDelete )

function, my system crashes.

Is there a different method which I should be using to start my tasks?

Thank you,

Phil

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Not to worry, I was dealing with the task handle incorrectly... All sorted now:)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That was fixed fast :)

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hehe, reading the API descriptions carefully helps a bit...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

[commercial for search site removed - hce]