There is no output to UART console when I set CONFIG_BT=y in prj.conf
peripheral_lbs sample project in ncs V2.0.2 can't printk anything.
There is no output to UART console when I set CONFIG_BT=y in prj.conf
peripheral_lbs sample project in ncs V2.0.2 can't printk anything.
It seems the bootloader read the nrf5340dk_nrf5340_cuppapp.overlay file with no problem, so the bootloader can print *** Booting Zephyr OS build v3.1.99-ncs1 *** message. However, zephyr may have problem using the nrf5340dk_nrf5340_cuppapp.overlay, so it is still using pin configured for nrf5340dk. The zephyr application is running with the debugger. Just with no output to uart console. Still debugging this problem. Any clue and suggestion will be appreciated.
There are some UART0 registers is the data sheet. Going thru functions call stack to find out which function call is making some changes ??
19 0x41013000 UARTE UARTE0 NS NA Universal asynchronous receiver/transmitter
0x50008000 0x40008000 UARTE UARTE0 : S UARTE0 : NS US SA Universal asynchronous receiver/tra
Hi JC,
I am not sure we are on the same page at the moment. Here is my current understanding about your current situation:
If there is anything wrong above, please correct me.
Assuming my understanding above is correct, below I will give some facts that might help
I hope the above information is sufficient for you to understand what is going on. If you are interested, be low I will also expand on some extra things you can do.
Notes (more advanced "ways to discover" the problem):
gpio_fwd: nrf-gpio-forwarder { compatible = "nordic,nrf-gpio-forwarder"; status = "okay"; uart { gpios = <&gpio1 1 0>, <&gpio1 0 0>, <&gpio0 11 0>, <&gpio0 10 0>; }; };
Best regards,
Hieu
Hello Hieu,
I am a bit confused too, so I step back to check on my build tool and test setup first.
There are three virtual com from nRF5340DK
When I run peripheral_lbs onnRF5340DK. One com port shows the the output from the AppCore
*** Booting Zephyr OS build v3.1.99-ncs1 ***
Starting Bluetooth Peripheral LBS example
I: 2 Sectors of 4096 bytes
I: alloc wra: 0, fc8
I: data wra: 0, 2c
I: No ID address. App must call settings_load()
Bluetooth initialized
Advertising successfully started
and another com port shows
*** Booting Zephyr OS build v3.1.99-ncs1 ***
and I think this may be from the NetCore
I am back to square 0 to restart the whole debugging process slowly now.
You read my mind and I was exactly in that situation. Thanks for your info which helps directing my thought on the debugging process. Let me regroup with your suggestions first before moving forward