system
(system)
October 1, 2014, 8:54am
1
zealhero wrote on Wednesday, October 01, 2014 :
Hello.
I’m using ARM cortex-R5(TI) CCS 6.0, FreeRTOS 8.1.2.
xSemaphoreTake(*pxSemaphore, 0) goes exception error in my project.
I tried configure options in FreeRTOSConfig.h for using sempahore… but it still has an error.
Could you give me some tips to use semaphoretake func?
system
(system)
October 1, 2014, 9:03am
2
davedoors wrote on Wednesday, October 01, 2014 :
Did you create the semaphore first? Please post the code that creates then takes the semaphore.
richard_damon wrote on Wednesday, October 01, 2014 :
I am curious why you have the * in front of pxSemaphore? The FreeRTOS functions take handles (which are internally pointers), but you shouldn’t be referencing them yourself.
system
(system)
October 2, 2014, 2:49am
4
zealhero wrote on Thursday, October 02, 2014 :
Sorry, it was not error in xSemaphoreTake(). it works well now.
Can I delete this post?