Part Number: SENSOR-CONTROLLER-STUDIO
Other Parts Discussed in Thread: CC2650
Hello,
I'm developing a software on a CC2650 mounted on a SmartRF06 board and I need to use SPI to communicate with an external FRAM. I was interested in using the Sensor Controller to unload the main cpu of much of the communication, but I hit a problem when trying to use it.
I tried to read a 8bit status register on the FRAM that has some fixed bits to 1 and some others to 0 (so I know that if I get something more than 0 and less than 255, it could be that my communication was done correctly).
I have to send an OPCode to the FRAM to indicate that I want to read the status register.
Here is the Execution Code I wrote:
spiBegin(SPI_POL0_PHA0, AUXIO_SPI_CSN_FRAM_CSN); spiTx8bit(SPI_POL0_PHA0, 0x05); spiRx8bit(SPI_POL0_PHA0; output.value); spiEnd(SPI_POL0_PHA0, AUXIO_SPI_CSN_FRAM_CSN);
When using the Task testing tab of Sensor Controller Studio, monitoring the output.value variable gives me only 0.
Because the chip is mounted on a custom board, I triple checked the connections and IOs and even wrote a small task that uses the SPI driver (not SensorController). This one worked and gave me a correct result.
I unfortunately do not have an oscilloscope with me right now but will add more infos when I can use one.
If you have any idea on why there are no results in the output.value, I would be truly grateful.
Cheers,
Kevin