UART Configuration - undefined reference if Processor expert is executed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART Configuration - undefined reference if Processor expert is executed

1,056 Views
frankmuenzner7421
Contributor II

I, I try to add uart funktionality to my code.

For this i looked what is be done in uart_pal_EchoS32k144

 

Then i used processorexpert to add the same uart (lpuart 1)

but i get the errormessagefrom Processor Expert

./Sources/main.o: In function `main':
C:\Users\FablabRonny\Documents\S32K1444Projects\iseled_freemaster_s32k144\iseled_freemaster_s32k144\Debug_FLASH/../Sources/main.c:274: undefined reference to `UART_Init'
C:\Users\FablabRonny\Documents\S32K1444Projects\iseled_freemaster_s32k144\iseled_freemaster_s32k144\Debug_FLASH/../Sources/main.c:278: undefined reference to `UART_SendData'

 

Anybody has some recommendation how to solve it, i did'nt find a solution....

I try it really hard, but find no solution

 

0 Kudos
Reply
1 Reply

979 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @frankmuenzner7421,

You wrote that you were referring to the uart_pal_echo_S32k144 example.

But you don't use the PAL drivers in your project.

Your project:

danielmartynek_0-1691746497810.png

Example:

danielmartynek_1-1691746525902.png

 

Please refer to the lpuart_echo_s32k144 example instead and use these functions:

LPUART_DRV_Init(INST_LPUART1, &lpuart1_State, &lpuart1_InitConfig0);

LPUART_DRV_SendDataBlocking(INST_LPUART1, (uint8_t *)welcomeMsg, strlen(welcomeMsg), TIMEOUT);

 

You can access the documentation of the driver by right-clicking on the LPUART component.

danielmartynek_2-1691746749527.png

 

 

Regards,

Daniel

0 Kudos
Reply