When I configured a SpiExternalDevice in slave mode and selected the appropriate PCS, when generating the code, EB chose to ignore the PCS.
Solved! Go to Solution.
Hello @ou_gangxun ,
Yes, you are right. Thank you for raising this point. I will create a ticket for this case.
Best regards,
Hung.
Hello @ou_gangxun ,
I just check it and I see that it is not an issue.
In slave mode we do not need to choose CS for transmitted command in the TDR register. So we have no change in the configuration of register TDR when user change the PCS.
Because default value of SpiCsPolarity is low, so could you please try to change the SpiCsPolarity to high. Then you will see that the SpiCsIdentifier will effect the generated code.
Best regards,
Hung.
But I found that when using DMA transfer and SPI together, if the register bit corresponding to PCSx is not set, such as LPSPI_TCR_PCS3_EN_U32, then the transferred data will drift indefinitely, and the randomness of the first byte of the DMA buffer will be omitted
Hello @ou_gangxun ,
Yes, you are right. Thank you for raising this point. I will create a ticket for this case.
Best regards,
Hung.