MDBT42Q NUS Example Does Not Run Correctly Using nrf Connect 2.3.0 and VS Studio Code

I have used the Raytac MDBT42Q running NUS in past Soft Device-based projects with no problems.  Now using the new nrf Connect 2.3.0 SDK and VS Studio Code and trying to get the NUS example to run properly.  Using nrf53832 DK hardware definitions as the "board".  No custom board definitions.  Using the factory nrf52832 board definitions. Raytac device has external  32KHz crystal and is connected to nothing but 4 DK LEDs wired like the nrf52832 DK Leds. DK Button pins on the MDBT42Q are pulled high via 100k resistors. MDBT42Q LEDs and Buttons are wired just like the nrf52832 DK hardware.  I finally got the MDBT42Q to advertise and connect via BLE but data from the iPad running nrf Tool Box does not transfer.  The same code runs fine on a PCA10040 board. In addition, code only runs under Debug on the Raytac module. I've been at this for days and have attempted to use the Forum to solve the problem. Raytac UART0 prints Zephyr banner message and "Starting Nordic UART service example" to external terminal and JLink programming/debugging stuff is working correctly. Also tried this whole thing under Ubuntu and the MDBT42Q does not advertise. Out of frustration, moved to Windows where the Raytac does at least advertise and connect. Any pointers in the right direction will be greatly appreciated. Thanks in advance.

Parents
  • Hi Fred, 
    It does sound a little bit strange. Could you try something without UART ? Maybe try the periphreral_lbs ? 
    And you are saying if you run in debug mode everything works fine ? You can send and receive UART data to and from the phone ? 

    Could you try to debug using log instead ? You can either use RTT log or UART via printk. 

    If you new to nRF Connect SDK I would suggest to take a look at the Nordic Academy: https://academy.nordicsemi.com/

    We have courses for getting started with nRF Connect SDK and also course for Bluetooth Low Energy. 

Reply
  • Hi Fred, 
    It does sound a little bit strange. Could you try something without UART ? Maybe try the periphreral_lbs ? 
    And you are saying if you run in debug mode everything works fine ? You can send and receive UART data to and from the phone ? 

    Could you try to debug using log instead ? You can either use RTT log or UART via printk. 

    If you new to nRF Connect SDK I would suggest to take a look at the Nordic Academy: https://academy.nordicsemi.com/

    We have courses for getting started with nRF Connect SDK and also course for Bluetooth Low Energy. 

Children
Related