Semiphore failure in v2.6.8

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 630
Joined: Mon May 12, 2008 10:55 am

Semiphore failure in v2.6.8

Post 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
SeeCwriter
Posts: 630
Joined: Mon May 12, 2008 10:55 am

Re: Semiphore failure in v2.6.8

Post 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
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: Semiphore failure in v2.6.8

Post 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
Attachments
dspi.h
(12.01 KiB) Downloaded 216 times
dspi.cpp
(60.95 KiB) Downloaded 198 times
Dan Ciliske
Project Engineer
Netburner, Inc
SeeCwriter
Posts: 630
Joined: Mon May 12, 2008 10:55 am

Re: Semiphore failure in v2.6.8

Post by SeeCwriter »

That fixed it.

Thanks much.
Steve
Post Reply