Issue in working with arduino uno for S32k116 EVB.

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

Issue in working with arduino uno for S32k116 EVB.

Jump to solution
452 Views
santhosh23
Contributor III

Hello all,

Background: S32 DS 3.4 Software and for the example S32K1xx SDK RTM v4.0.3 Example Projects --> lpuart_echo_s32k116. 

I'm working on lpUART with S32K116 EVB, everything is working as expected with the open a terminal emulator(tera term in my case). But my question was how to do the same from arduino uno intead of open terminal? I've tried to connect the pins tx, rx and gnd pins of arduino uno to s32k116 EVB pins PTA 2 and 3 which is said to be arduino compatible pins. but didn't get succeed in getting output as Hello World for the input Hello Board. 

santhosh23_0-1724328342917.png

As we can see from the above figure, the first graph is the signal sent from arduino to S32k board and the second one is recieved from s32k board. The expected output from second figure was Hello World, but in my case i am getting back the same signal that has been sent.

Am I missing something to include in order to work with arduino uno?
Any suggestions or help would be highly appreciated!

I've also attached necessary source file with this message for our reference. 

Thanks & regards,
Santhosh

0 Kudos
Reply
1 Solution
429 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @santhosh23,

I believe this is because the board is expecting a "\n" when comparing the buffers at the EOL. It seems you are transmitting both CR and LF ("\r\n") in each message. This can be seen configuring Tera Term from CR+LF (which only echoes the characters) to LF (which does return the "Hello World"):

Julin_AragnM_1-1724360795492.png

2.png

Could you try sending "Hello Board\n" only? 

Best regards,
Julián

View solution in original post

0 Kudos
Reply
2 Replies
430 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @santhosh23,

I believe this is because the board is expecting a "\n" when comparing the buffers at the EOL. It seems you are transmitting both CR and LF ("\r\n") in each message. This can be seen configuring Tera Term from CR+LF (which only echoes the characters) to LF (which does return the "Hello World"):

Julin_AragnM_1-1724360795492.png

2.png

Could you try sending "Hello Board\n" only? 

Best regards,
Julián

0 Kudos
Reply
410 Views
santhosh23
Contributor III

Hello @Julián_AragónM ,
Thank you so much for your resonse!
It is working as expected with arduino uno as well. and the code I used in adruino IDE as follows:

void setup() {
  // Initialize serial communication at 9600 baud
  Serial.begin(9600);
 
  // Wait for a moment to ensure serial connection is established
  delay(1000);
}

void loop() {
  // Send "Hello Board" message followed by a newline (LF only)
  Serial.print("Hello Board\n");
 
  // Wait for 3 second before sending the next message
  delay(3000);
}
Thanks & regards,
Santhosh