Problems with reading from a UART

JakeSays 91 Reputation points
2020-07-14T04:42:25.86+00:00

I cannot get the UART_HighLevelApp sample to work. It transmits fine (logic analyzer shows valid traffic on both tx and rx) but the event handler is never invoked.

Any ideas?

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
167 questions
{count} votes

Accepted answer
  1. QuantumCache 20,271 Reputation points
    2020-07-28T06:33:55.833+00:00

    Hello @JakeSays , We have validated the document on Azure Sphere Sample Sample: UART (high-level app) and was able to debug the HL app successfully from VS code.

    We were able to accomplish all the below mentioned steps:

    • Opens a UART serial port with a baud rate of 115200.
    • Sends characters from the device over the UART when button A is pressed.
    • Displays the data received from the UART in the Visual Studio Output Window.
    • Causes an LED to blink when data is received from the UART. Opens a UART serial port with a baud rate of 115200.

    13966-image.png

    • Sends characters from the device over the UART when button A is pressed.

    13967-image.png

    - Displays the data received from the UART in the Visual Studio Output Window.
    -** Causes an LED to blink when data is received from the UART.**

    14052-image.png

    More Data being capture during the debug process:

    14043-image.png

    Troubleshooting Steps:

    We had few issues with Cmake initially on Windows 10 machine, we re-installed the latest version and we used the Cmake:Configure to select the VS2017 Kit.

    13869-image.png

    Please let us know if you need more help in this matter, would be happy yo help!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.