I reproduced the problem in a simple test. And I run it in the zedboard and in the zcu102 obtaining the same results.

Where/how can I deliver it??

Thanks

El 2018-11-28 19:13, Sebastian Huber escribió:
----- Am 28. Nov 2018 um 17:00 schrieb Arturo Perez Garcia arturo.pe...@upm.es:

I didn't call rtems_semaphore_release in the Init task, because the
initial count of the semaphore is 1. So that was not the case.

Oh, yes, sorry for the confusion. Using a count of 0 makes the creator
the owner.


I followed the guidelines described in RTEMS C User Documentation
Release 4.11.3. Section 12.2 paragraph 2:

"A binary semaphore can be used to control access
to a single resource. In particular, it can
be used to enforce mutual exclusion for a critical
section in user code. In this instance, the
semaphore would be created with an initial
count of one to indicate that no task is executing
the critical section of code..."

Yes, I would debug the rtems_semaphore_obtain() call to figure out
what is wrong. You can also try to create a self contained test case.

--
Arturo Perez Garcia - arturo.pe...@upm.es

Researcher
Center of Industrial Electronics
Universidad Politecnica de Madrid

_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to