Other Parts Discussed in Thread: HALCOGEN,
Hello everyone !
I developped a slave spi interface which is working and now I need another one. The fact is that with the same configuration, the same code structure it is not working. I checked the hardware and it is not comming from there.
The main difference is coming from the delay between bytes (sended by a MSP430). Another thing, I use SP1 and SP4 for the slaves interfaces and when I look at the file spi.c I see that HALCOGEN generated SPI1 interrupts as MIBSPI and SPI4 as SPI4 interrupt. Could the issue coming from there ?
In debug mode if I put breakpoints in MIBSPI1 and SP14 interrupts It stops in mibspi1HighLevelInterrupt (only that one at the call of spiSendAndGetData which seems ok because no data is sended on this slave for now) for Transmit Buffer Empty and nowhere in spi4LowLevelInterrupt and spiHighLevelInterrupt.
Here is my Halcogen project and a picture of the spi signal sended by the MSP430 master.
Any idea would be helpful !
Best Regards,
Fabian