<div dir="ltr">On Fri, Oct 30, 2015 at 3:25 PM, Steve B <span dir="ltr"><<a href="mailto:sbattazzo@gmail.com" target="_blank">sbattazzo@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div dir="ltr"><div><div><div><div><div><div><div>Hi guys,<br><br></div>I've gotten around to updating my rtems src from the git repo, to a new version that includes the GPIO API commit and the Beaglebone Black BSP work contributed by Ketul Shah. <br><br></div>I'm trying to simply do<br><br>sc = rtems_gpio_request_pin(LED1, DIGITAL_OUTPUT, false, false, NULL);<br>assert(sc == RTEMS_SUCCESSFUL);<br></div><br>And at runtime I see:<br><br>assertion "rtems_semaphore_obtain(gpio_bank_state[bank].lock, RTEMS_WAIT, RTEMS_NO_TIMEOUT ) == RTEMS_SUCCESSFUL" failed: file "../../../../../../../../rtems-src/c/src/lib/libbsp/arm/beagle/../../shared/gpio.c", line 1319, function: rtems_gpio_request_pin<br><br></div>I have called rtems_gpio_initialize() which I see is the function that creates gpio_bank_state[bank].lock and this has returned RTEMS_SUCCESSFUL before the above error happens.<br></div>I have also tried this on both Rev B and Rev C Beaglebone Black hardware, with the same result.<br><br></div>Any thoughts on what might cause this?<span class=""><font color="#888888"><br><br></font></span></div><span class=""><font color="#888888">Steve<br></font></span></div>
</blockquote></div><br>Disregard that, it's now solved!<br></div><div class="gmail_extra">I just needed to define a value for CONFIGURE_MAXIMUM_SEMAPHORES at the bottom of my init.c and my program now runs.<br><br></div><div class="gmail_extra">Steve<br><br></div></div>