Uart implemntation

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

Uart implemntation

799 Views
chetan98
Contributor II

Dear NXP team,

I am using eatt central for receiving data over uart and printing through shell in teraterm but  HAL_UartSendNonBlocking() but when I am using this function to print in teraterm it is not working how to implement uart in example code I have configure clock port and initialization

 

void UART1_Init(void)

{

hal_uart_config_t config;

 

 

config.baudRate_Bps = 921600;

config.enableTx = true;

config.enableRx = true;

 

CLOCK_GetIpFreq(kCLOCK_Lpuart1);

 

HAL_UartInit(LPUART1, &config);

 

can you please help me for the same.

 

Thanks and regards

Chetan

 

 

Labels (1)
0 Kudos
Reply
1 Reply

767 Views
luis_maravilla
NXP Employee
NXP Employee

Hello Chetan

What SDK version are you using?

 

The example EATT Central already implements a UART communication,

The application behaves as a GAP central node. It searches for an EATT peripheral to connect to. After

connecting, it performs service discovery, initiates an EATT connection and configures indications on the

peripheral for services A and B. The Central reports the received service data and the steps taken during the

setup on a terminal connected to an UART port

 

For usage and response of the example please refer to Bluetooth Low Energy Demo Applications User’s Guide Chapter 5.4 EATT Central and 5.5 EATT Peripheral.

 

Could you help us confirm what is your response in teraterm and can you share this please?

HAL_UartSendNonBlocking is returning any status or response?

 

Could you help us describe all the modifications implemented in your code? As I don’t see the configurations in "HAL_UartSendNonBlocking", also if there is modifications implemented in the EATT_peripheral example?

 

Best Regards

Luis

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2178592%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUart%20implemntation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2178592%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20NXP%20team%2C%3C%2FP%3E%3CP%3EI%20am%20using%20eatt%20central%20for%20receiving%20data%20over%20uart%20and%20printing%20through%20shell%20in%20teraterm%20but%26nbsp%3B%3CSPAN%3E%3CSTRONG%3E%20HAL_UartSendNonBlocking()%26nbsp%3B%3C%2FSTRONG%3Ebut%20when%20I%20am%20using%20this%20function%20to%20print%20in%20teraterm%20it%20is%20not%20working%20how%20to%20implement%20uart%20in%20example%20code%20I%20have%20configure%20clock%20port%20and%20initialization%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CDIV%3E%3CDIV%3E%3CP%3E%3CSTRONG%3Evoid%20UART1_Init(void)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%7B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Ehal_uart_config_t%20config%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3Econfig.baudRate_Bps%20%3D%20921600%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Econfig.enableTx%20%3D%20true%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Econfig.enableRx%20%3D%20true%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3ECLOCK_GetIpFreq(kCLOCK_Lpuart1)%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3EHAL_UartInit(LPUART1%2C%20%26amp%3Bconfig)%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3Ecan%20you%20please%20help%20me%20for%20the%20same.%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3EThanks%20and%20regards%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EChetan%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2178592%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EDevelopment%20Board%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2178946%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Uart%20implemntation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2178946%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Chetan%3C%2FP%3E%0A%3CP%3EWhat%20SDK%20version%20are%20you%20using%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThe%20example%20EATT%20Central%20already%20implements%20a%20UART%20communication%2C%3C%2FP%3E%0A%3CP%3EThe%20application%20behaves%20as%20a%20GAP%20central%20node.%20It%20searches%20for%20an%20EATT%20peripheral%20to%20connect%20to.%20After%3C%2FP%3E%0A%3CP%3Econnecting%2C%20it%20performs%20service%20discovery%2C%20initiates%20an%20EATT%20connection%20and%20configures%20indications%20on%20the%3C%2FP%3E%0A%3CP%3Eperipheral%20for%20services%20A%20and%20B.%20The%20Central%20reports%20the%20received%20service%20data%20and%20the%20steps%20taken%20during%20the%3C%2FP%3E%0A%3CP%3Esetup%20on%20a%20terminal%20connected%20to%20an%20UART%20port%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFor%20usage%20and%20response%20of%20the%20example%20please%20refer%20to%20%3CA%20href%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fmcuxsdk%2Flatest%2Fhtml%2F_static%2Fwireless%2FBluetooth%2FBluetooth_Low_Energy_Demo_Applications_User's_Guide.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EBluetooth%20Low%20Energy%20Demo%20Applications%20User%E2%80%99s%20Guide%3C%2FA%3E%20Chapter%205.4%20EATT%20Central%20and%205.5%20EATT%20Peripheral.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20help%20us%20confirm%20what%20is%20your%20response%20in%20teraterm%20and%20can%20you%20share%20this%20please%3F%3C%2FP%3E%0A%3CP%3EHAL_UartSendNonBlocking%20is%20returning%20any%20status%20or%20response%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20help%20us%20describe%20all%20the%20modifications%20implemented%20in%20your%20code%3F%20As%20I%20don%E2%80%99t%20see%20the%20configurations%20in%20%22HAL_UartSendNonBlocking%22%2C%20also%20if%20there%20is%20modifications%20implemented%20in%20the%20EATT_peripheral%20example%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3ELuis%3C%2FP%3E%3C%2FLINGO-BODY%3E