Hi
Im using TMS570LS1224 with an ADS1271 (no chip select and no SIMO)
I was trying to test the SPI by checking the SCLK but nothing... I don't know whats happening... I also checked for the examples on the Halcogen and didn't found any difference on the instructions... the only difference is that Im using SPI5 instead of 1. I already checked the congifuration and everything but still no clock....
any idea of why this could be happening?? shouldnt be there something like a "start clock" or something? what am I missing??
while(blocksize != 0U)
{
if((spi->FLG & 0x000000FFU) != 0U)
{
break;
}
if(blocksize == 1U)
{
Chip_Select_Hold = 0U;
}
/*SAFETYMCUSW 45 D MR:21.1 <APPROVED> "Valid non NULL input parameters are only allowed in this driver" */
Tx_Data = *srcbuff;
spi->DAT1 =((uint32)DataFormat << 24U) |
((uint32)ChipSelect << 16U) |
(WDelay) |
(Chip_Select_Hold) |
(uint32)Tx_Data;
/*SAFETYMCUSW 567 S MR:17.1,17.4 <APPROVED> "Pointer increment needed" */
srcbuff++;
/*SAFETYMCUSW 28 D MR:NA <APPROVED> "Hardware status bit read check" */
while((spi->FLG & 0x00000100U) != 0x00000100U)
{
} /* Wait */
//SAFETYMCUSW 45 D MR:21.1 <APPROVED> "Valid non NULL input parameters are only allowed in this driver" */
*destbuff = (uint16)spi->BUF;
/*SAFETYMCUSW 567 S MR:17.1,17.4 <APPROVED> "Pointer increment needed" */
destbuff++;
blocksize--;
}
also... putting a breakpoint under the red lines (on destbuff++), I never get out of there... this is supposed to be the Polling method (I can't use the interrupt method because on the application Im already on a higher level interrupt, so no scape from there until finish) but I have no idea of what is it waitting there.... on the example code there is no reference of this part...
thanks!