Other Parts Discussed in Thread: HALCOGEN
Hi,
As part of our product development process, I am using spi communication to transfer data between sensor boards and the main board. In this context, I successfully used MibSPI 1 and 3, thanks to HALCogen's generated driver on MibSPI1 chip selects 0 & 1 , and Mibspi3 chip select 0 as well.
However, I could not have the 5th chip select of Mibspi 3 to behave as the other ones.
The only thing to be modified, between chip select 0 and chip select 5, to my understanding, is the CSNR field of TxRam buffer of one mibspi, using proper pinmuxing (MibSpi3NCS5 on pin 37, with mibspi3 driver enabled),
Configuration recap :
Mibspi3 driver enabled
pin 37 pinmuxed as MibSpi3 NCS5
Using SPI_CS_5 in code to target NCS5 ( 0xDFU according to Halcogen)
Note : I was able to correctly toggle this pin (37) using its pinmuxed het1_31 counterpart configured as a GPIO, and successfully transmit/data over SPI bus.
Note 2 : I am using a custom driver wrapper to reconfigure transfer groups on-the-fly, depending on the data length (> 128) . This driver has full control over TXRam buffer content, including CSNR and CSHOLD fields which are required to toggle the right CS line.
I looked several times into the chip's datasheet and the user guide and could not find any clue about what I am doing wrong.
Any idea ?
Many thanks,
Benoit