5663 views|1 replies

85

Posts

0

Resources
The OP

Data configuration in TMS570LS3137 SPI transmission [Copy link]

The above picture is a SPI test program I wrote. The purpose is to use SPI to send ID read commands to 10 M25P64flash chips, and then receive these IDs back through the SPI bus. The chips selected gioA and gioB for a total of 10 interfaces. The spiTransmitAndReceiveData() function in spi.c was called for sending and receiving. The program ultimately failed to achieve the intended function. During the single-step debugging process, it was found that the program was stuck in the spiTransmitAndReceiveData() function while((spi->FLG & 0x00000100U) != 0x00000100U) { } /* Wait */ I think the possible reason is that there is an error in setting dataconfig_t, but I don't know the specific meaning of the four values of dataconfig1_t, so I don't know how to set it correctly. Please help me solve it.

This post is from Microcontroller MCU

Latest reply

This statement refers to the 9th bit of SPIFLG, TXNTFLG0, which is the buffer. If there is no number, wait.  Details Published on 2016-6-3 14:01

1

Posts

0

Resources
2
This statement refers to the 9th bit of SPIFLG, TXNTFLG0, which is the buffer. If there is no number, wait.
This post is from Microcontroller MCU

Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list