Hi S32K3 team,
I tried both polling & interrupt mode.
UART of S32K3 is not detected by fremaster.
In atteched code CAN, PORT, ADC is working but UART is not detected on freemaster .
Issue is with UART-6.
I set UART base address to UART-6 :--
#define FMSTR_LPUART_BASE 0x40340000
I used :---
Freemaster project location :--
Regards,
Dinesh
已解决! 转到解答。
I checked on Putty UART-6 working :--
I checked on Putty UART-6 working :--
/* initialize the UART as the console serial communication port */
Lpuart_Uart_Ip_Init(UART_LPUART_INTERNAL_CHANNEL, &Lpuart_Uart_Ip_xHwConfigPB_6_BOARD_INITPERIPHERALS);
IntCtrl_Ip_InstallHandler(LPUART6_IRQn, LPUART_UART_IP_6_IRQHandler, NULL_PTR);
IntCtrl_Ip_EnableIrq(LPUART6_IRQn);
/* Uart_AsyncSend transmit data */
lpuartStatus = Lpuart_Uart_Ip_AsyncSend(UART_LPUART_INTERNAL_CHANNEL, (const uint8 *)WELCOME_MSG_2, strlen(WELCOME_MSG_2));
if (LPUART_UART_IP_STATUS_SUCCESS != lpuartStatus)
{
///return FALSE;
while(1)
{
__asm volatile ("nop");
}
}
So issue seems to be with freeMASTER.
I set the PORT address of UART correctly in file --> freemaster_cfg.h.
Please suggest what could be the issue ?
Regards,
Dinesh