Other Parts Discussed in Thread: HALCOGEN
Hi, Ti community I'm working on Hercules Hardware development kit(TMS570LC4357-EP)
I'm unable to read data from an external hardware (data key) using SPI protocol but I tried the mibSPI example code provided in HALCogen software and observed the data transfer between internal registers, it works fine I am able to see the data transmission between Tx and Rx internally.
I'm using the following SPI pin configurations for the connection of external hardware (data key):
SPI2 J-10 expansion connector-
CLK- pin 64
CS0- pin 63
SOMI- pin 59
SIMO - pin 61
I also tried an example code for SPI which is attached below where the data transmission works fine internally. But i need a code which reads data from external hardware (data key) using the above mentioned SPI2 pin configuration, where my HDK acts as master and the external hardware (data key) acts as slave device.
3326.SPI_MASTER_TEST_LC4357.zip
1) Check the above reference and please provide the code for data communication between HDK board and external hardware (data key) .
2) How and where to change clock frequency for SPI?
3)when probed the clock, I was able to obtain a 50 hz clock frequency when I probed SPI clock pin, but I also saw that CS0, SOMI, and SIMO pins had the same clock frequency.