Hello Joan,
Are you using the TWR-K64F120M?
Could you please check in the init_gpio.c file the below code:
case 3:
pctl = (PORT_MemMapPtr)PORTC_BASE_PTR;
if (flags & IO_PERIPHERAL_PIN_MUX_ENABLE)
{
/* PTC16 as RX function (Alt.3) + drive strength */
pctl->PCR[16] = 0 | PORT_PCR_MUX(3) | PORT_PCR_DSE_MASK;
/* PTC17 as TX function (Alt.3) + drive strength */
pctl->PCR[17] = 0 | PORT_PCR_MUX(3) | PORT_PCR_DSE_MASK;
}
if (flags & IO_PERIPHERAL_CLOCK_ENABLE)
{
/* start SGI clock */
sim->SCGC4 |= SIM_SCGC4_UART3_MASK;
}
if (flags & IO_PERIPHERAL_CLOCK_DISABLE)
{
/* stop SGI clock */
sim->SCGC4 &= (~ SIM_SCGC4_UART3_MASK);
}
break;
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------