This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52832 uart logs not show with ble_app code examples.

Hello, 

I have a costum board with nrf52832 chip. when I upload example code  "/examples/peripheral/uart/" I can see logs coming and loopback test is working great, but when I upload "examples/ble_central/ble_app_multilink_central/pca10040/s132/armgcc/" GPIO on LED pins works, ble also works, but i can not see logs comming true uart. If I test same code example on  "/examples/ble_central/ble_app_multilink_central/pca10056/s140/armgcc" on nrf52 devkit with nfr52840 chip on it, all logs are coming great without of sdk_config.h file change. What I missed in sdk_config.h file or what disturbs uart comunication when ble_app code examples are used with nrf52832 chip?

Schematic of costum board:

and config file:

8132.sdk_config.h

modified pca10040.h file for custom board:

5078.pca10040.h

Makefile I did not change.

Thank You for Your support

Parents Reply
  • Hi,

    Pin 14 and Pin 15 are defined as Buttons in pca10040.h:

     

    The example set the buttons as input in leds_init() which will probably override any configuration that is set by log_init(). The solution is to move log_init() to right after the buttons_init() and configure the UART backend in log init to use Pin 14 or Pin 15 as tx in sdk_config.h. You should also eventually define other buttons for Button_2 and Button_3 for the example to work as intended.

     :

    best regards

    Jared

Children
No Data
Related