Other Parts Discussed in Thread: TMS570LC4357, HALCOGEN
Hello Expert,
I am working on RM48L952ZWT board. This board has 2 SCI one as normal SCI1 and other as SCI2 which can be used as LIN. I am sending my data from the SCI2 (using it as SCI) and receiving it on SCI1. The configuration on halogen is shown below:
On the hardware I have connected the both SCI using wires and my code is below:
/* USER CODE BEGIN (0) */
/* USER CODE END */
/* Include Files */
#include "sys_common.h"
#include "system.h"
/* USER CODE BEGIN (1) */
#include "sci.h"
#include "sys_vim.h"
uint8 *Transmit= "$GPGGA,025526.000,0653.409140,N,07954.150015,E,1,7,1.08,22.013,M,-96.608,M,,*4D,CR,LF,$GPGLL,0653.409140,N,07954.150015,E,025526";
uint8 * Receive;
/* USER CODE END */
/* USER CODE BEGIN (2) */
/* USER CODE END */
void main(void)
{
/* USER CODE BEGIN (3) */
_enable_IRQ();
sciInit(); /* initialize sci/sci-lin */
/* even parity , 2 stop bits */
sciSend(scilinREG,128,Transmit);
sciReceive(sciREG,128,(unsigned char *)&Receive);
while(1);
/* USER CODE END */
}
void sciNotification(sciBASE_t *sci, uint32 flags)
{
sciSend(scilinREG,128,Transmit);
sciReceive(sciREG,128, (unsigned char *)&Receive);
}
I have tried to receive the data on the inbuilt terminal on CCS. I can see the data which is being transmitted but the data received is not coming not even on the registers.
Thanks