Academy course: Bluetooth Low Energy Fundamentals, no UART log

Hello,

I am studying the materials in Bluetooth Low Energy Fundamentals.

I cloned the codes from GitHub
https://github.com/NordicDeveloperAcademy/bt-fund

I tried to build and run(debug) the code and it seems working as I can see the BT device from mobile App.

However, I cannot see any UART debug output from those "LOG_INF" lines.

I tried to add some UART/ console related setting in prj.conf from those settings that I can see in other example codes, but still cannot see the output.

I tried to change "LOG_INF" to prink as well but still cannot see UART output.

I am working with a nrf52dk, PCA10040.

Do you have any idea?

Thank you!

Parents
  • Hi Keith,

    Thanks for reaching out!

    Which operating system are you using? Does this issue occur with one specific exercise or across all of them? And have you tried building and flashing the exercise solution? In the BLE Fundamentals course, you shouldn't need to modify the prj.conf file to enable logging, as it's already set up for you.

    UART logs are sent to the serial terminal. By default, UART0 appears as a COM port on Windows or a ttyACM device on Linux or macOS. Make sure you're connected to the correct serial terminal (usually VCOM0). This is done by selecting the plug icon on VCOM0 in the Connected Devices menu. You should see the output logs directly in VS Code.

    You can also use another terminal program if you prefer, as long as it's pointed to the correct port or device.

    Be sure the baud rate is set to 115200. Also, there could be issues if you have multiple instances opened of a port/device. If you read from the port/device in you normal terminal you will not see output in the VSCode terminal.

    If not done already, also check out Lesson 4 of the NCS Fundamentals course as this explain logging and printing over UART step by step.

    Best Regards,
    Benjamin

  • Hi Benjamin,

    Thanks for your reply.

    I can get UART output normally with other sample codes from NCS v3.0.1. So, the problem should not be caused by Windows setup.

    For those BLE Fundamentals examples, the settings that I am using is "Board target" -> "nrf52dk/nrf52832" and "Base configuration files" -> prj.conf. Would there anything that I have missed?

    Thank you!


    Regards,

    Keith

Reply
  • Hi Benjamin,

    Thanks for your reply.

    I can get UART output normally with other sample codes from NCS v3.0.1. So, the problem should not be caused by Windows setup.

    For those BLE Fundamentals examples, the settings that I am using is "Board target" -> "nrf52dk/nrf52832" and "Base configuration files" -> prj.conf. Would there anything that I have missed?

    Thank you!


    Regards,

    Keith

Children
No Data
Related