Page 1 of 1

Semiphore failure in v2.6.8

Posted: Mon Oct 20, 2014 11:02 am
by SeeCwriter
In v2.6.7 the code below works. In v2.6.8 the OSSemPend() never returns. This is in example program DSPISerial.
DSPIStart(DEFAULT_DSPI_MODULE, TXBuffer,
RXBuffer, num, &DSPI_SEM); // Send data via DSPI
OSSemPend( &DSPI_SEM, 0 ); // Wait for DSPI to complete
Steve

Re: Semiphore failure in v2.6.8

Posted: Mon Oct 20, 2014 11:11 am
by SeeCwriter
I neglected to say that the example program is running on a NANO54415 Dev Kit board. Plus I misspelled the example program name. It's DSPI2Serial.

Steve

Re: Semiphore failure in v2.6.8

Posted: Mon Oct 20, 2014 12:27 pm
by dciliske
This really needs to be made sticky, but... There was a behind the scenes architecture change with the DSPI driver. However, it got screwed up and all the calls got mapped to all point to DSPI_0. I've attached the corrected version of the driver. Basically the new version supports object based driver instances that allow for more easily switching between multiple devices on the same bus (different chip selects, baud rates, etc.). Expect an updated example for this feature in the next release.

-Dan

Re: Semiphore failure in v2.6.8

Posted: Mon Oct 20, 2014 12:55 pm
by SeeCwriter
That fixed it.

Thanks much.
Steve