SteveDSPIStart(DEFAULT_DSPI_MODULE, TXBuffer,
RXBuffer, num, &DSPI_SEM); // Send data via DSPI
OSSemPend( &DSPI_SEM, 0 ); // Wait for DSPI to complete
Semiphore failure in v2.6.8
-
- Posts: 630
- Joined: Mon May 12, 2008 10:55 am
Semiphore failure in v2.6.8
In v2.6.7 the code below works. In v2.6.8 the OSSemPend() never returns. This is in example program DSPISerial.
-
- Posts: 630
- Joined: Mon May 12, 2008 10:55 am
Re: Semiphore failure in v2.6.8
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
Steve
Re: Semiphore failure in v2.6.8
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
-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
-
- Posts: 630
- Joined: Mon May 12, 2008 10:55 am
Re: Semiphore failure in v2.6.8
That fixed it.
Thanks much.
Steve
Thanks much.
Steve