This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: HERCULES_SAFETY_MCU_DEMOS
Tool/software: TI C/C++ Compiler
Hi,
I'm configured SPI1, SPI2, SPI3 and SPI4 use Halcogen. SPI1, SPI3 and SPI4 work very good, but i have some problems with SPI2.
When i use spiTransmitAndReceiveData(spiBASE_t *spi, spiDAT1_t *dataconfig_t, uint32 blocksize, uint16 * srcbuff, uint16 * destbuff), the transmission fail at first byte:
Spi->IntFlg = 0x01000210 = BITERRFLG is 1. I try one SPI for time, i try to send same message.
Can you help me please?
p.s: I use SPI2 without any slave in this moment, i view signals with oscilloscope.
Hello,
Which package of TMS570LS3137 is used in your test? The 144 PGE package doesn't have SPI2.
BITERRFLG: 4th bit of SPIFLG
This bit error can be an excessively high bit rate, capacitive load, or another master/slave trying to transmit at the same time.
BUFINITACTIVE: Multi-buffer RAM is still being initialized. This bit should be set for SPI2 since it doesn't support Multi-buffered mode.
Hi wang,
thank you for answer, my uC is TMS570LS3137ZWT. It have SPI2, no multi-buffer is setting. Freq is 800kHz, i try with 300kHz, but it the same error.
Could it be because it is connected to the module for MICROSD without MICROSD?
Thank you,
Daniela
Hello Daniela,
Transmitting data to an unconnected SPI slave will not cause any problem.
Nothing wrong with your configuration.
I used the same settings, and did not see biterr. As datasheet says that the BITERR might be caused by high bit rate, capacitive load, or another master/slave trying to transmit at the same time.