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

HCI_UART | three wire (TX, RX, GND) | Solution

Aim: interface nrf32852 with i.MX6UL based Linux board through UART and configure hci of bluez.

Board: nrf52_pca10040
SOM :  nRf32852
OS:    Zephyr

UART: we followed HCI_UART example.

1. We could interface with UART H4 five wire (TX, RX, RTS, CTS, GND). and we were able to scan BT devices.

2. we wish to do with three wire (TX, RX, GND). Please suggest process and example.

Reference Link: https://infocenter.nordicsemi.com/pdf/nwp_029.pdf

Thanks,

Ronak

Parents
  • Try this approach:

    • Open zephyr\samples\bluetooth\hci_uart\nrf5.conf
    • Set CONFIG_UART_0_NRF_FLOW_CONTROL=n

    Best regards,

    Simon

  • Hi Simon,

     Thanks for your reply.

     1. We tried to do same without UART flow control, we till hit the same road block. 

    Seek your help for the same.

    2. Power ON Issue:

    1. We are running zephyr application with our board and it runs okay while we have connected device with JLINK and we apply ninja flash command.
    2. Once we remove JLINK we observed on POWER ON device it is not running. It seems we must give some instruction for boot mode.
    3. Please guide me how our application can start running while we POWER ON the device.

    Thanks,

     

    Ronak

Reply
  • Hi Simon,

     Thanks for your reply.

     1. We tried to do same without UART flow control, we till hit the same road block. 

    Seek your help for the same.

    2. Power ON Issue:

    1. We are running zephyr application with our board and it runs okay while we have connected device with JLINK and we apply ninja flash command.
    2. Once we remove JLINK we observed on POWER ON device it is not running. It seems we must give some instruction for boot mode.
    3. Please guide me how our application can start running while we POWER ON the device.

    Thanks,

     

    Ronak

Children
  • You should contact the Zephyr developers about this issue, the ones that wrote and are responsible for this sample. Use the tools mentioned in the Reference Link, section 2.1 Maintenance and support:

    Best regards,

    Simon

  • Hi Simon,

    we could fix booting (application start) problem with below set of commands.

    Commands:

    make -GNinja -DBOARD=nrf52_pca10040 .. -B .
    ninja
    nrfjprog --eraseall nrf52
    nrfjprog --program zephyr/zephye.hex
    nrfjprog --reset nrf52 

    Please note 'ninja flash' didn't work for us.

    now we are starting our UART HCI task. shall update you if any.

    Thanks,

    Ronak