Jump to content
abyl

Garbage values at UART

Recommended Posts

I am using TM4C123GXL and for some reason I am getting garbage values when I try to read the values from PB1 pin. I flashed this simple code to test the UART:

void setup() {
  // initialize ports:
  Serial.begin(115200); //connected with USB
}

void loop() {
  Serial.print("E");
  delay(200);
}

But instead of 'E' I see these garbage values:

;�����������

I am reading using the same 115200 baud rate.

 

What am I doing wrong? May be I do not flash the code correctly? I simply put the device into DEBUG mode and connect to my Ubuntu PC using the top micro USB port (red LED turns on). Then I simply Upload the code to the correct Serial port and then unplug the device.

 

EDIT:

I can confirm that I flash the code correctly. I tried to flash an empty code after which nothing was sent from the UART port

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...