Uart not working in Vscode while working with MBN52832DK

I have been working with MBN52832DK in Vscode . The sample examples i have tested is "Hello world", "bluetooth/peripheral_uart" ,"peripheral lbs".I have been able to connect Bluetooth to my iPhone , i was also able to make the led on and off , blinky code was also working fine . My issue is I cant see printk or printf anywhere not in any terminal. I used Hercules(external serial port terminal) I have connected a TTL to my board  still i am not able to see the output . What am i doing wrong ? i havnt changed a single line of code in the sample example code so u can refer any of the latest sample example codes i have mentioned earlier . I will attach some screenshots below for your reference 

This is the 1 warning message i got while i was running the "peripheral lbs" sample example 

[{
"resource": "/d:/v3.1.0/zephyr/CMakeLists.txt",
"owner": "nrf-connect",
"severity": 4,
"message": "CMake Warning at D:/v3.1.0/zephyr/CMakeLists.txt:2232 (message):",
"source": "cmake",
"startLineNumber": 2232,
"startColumn": 1,
"endLineNumber": 2232,
"endColumn": 2147483647
}]

And also in  "bluetooth/peripheral_uart" i tried sending and receiving data using the nrf Toolbox app in my iPhone nothing is happening . 

Parents Reply
  • 1. I didnt get you  , the voltage i am suppling form the mbn board to ttl is around 5v it is taken from a pin VCC_EXT pin of MBN board i have checked the voltage that it recive .

    2. Okay let me look into that , but other than Uart , ble, led blinky code is all working so still i should create a new board target?

    3.What should i actually check for this 

Children
  • Regarding 1

    I think we are talking past each other. I was wondering which voltage level does the TTL expect. Often in my experience they are based upon 5V logic while our boards are 3v3 logic. So they normally do not work without level shifters

    2. If BLE is working I suspect it has a external crystal and you dont need to worry about it. In general it is good practice to create a custom board as mentioned. 

    3. Check the datasheet for the TTL device and check what level it expect. You can also use a scope if you have or a multimeter to see if there is any change in the voltage level on the uart pins

    Regards

    Runar

Related