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

nRF5340-DK : trouble with hci_uart sample

Hi !

I want to send simple HCI commands, such as reset, to the nRF5340 via UART. Therefore, I'm using the sample "hci_uart" available with nRF Connect SDK v1.5.0. I am sniffing the UART lines on the dev. kit with a logic analyzer but I cannot manage to measure anything. To try to understand what is going on, I put some breakpoints in the code and I observed that SoC never reaches the code in the while(1) loop in the main and systematically gets stuck in the file "cpu_idle.S". Is it normal ?

I did not modify anything in the code but I can imagine I do something wrong... please, can anybody help me clarifying this issue ?

I am available to give you any other information.

Kind regards.

Parents
  • Hi Carl,

    I managed this morning to send successfully an HCI command to the nRF5340 via UART. For that, I had to build and load the hci_uart sample code on the application core and also build and load the hci_rpmsg sample code on the network core. By doing so, the nRF5340 does not get stuck in the initializations as it was doing before and works well.

    Nevertheless, it seems that the file "nrf5340dk_nrf5340_cpuapp.overlay" does not impact the UART (or at least not the right one) because I cannot manage to change the baudrate. Would have any idea about that ? Moreover, if you could provide me an example of how I can modify the pins to the UART, I would be truly grateful !

    Thank you very much for all your help !

    With my kindest regards,

    Loïc

Reply
  • Hi Carl,

    I managed this morning to send successfully an HCI command to the nRF5340 via UART. For that, I had to build and load the hci_uart sample code on the application core and also build and load the hci_rpmsg sample code on the network core. By doing so, the nRF5340 does not get stuck in the initializations as it was doing before and works well.

    Nevertheless, it seems that the file "nrf5340dk_nrf5340_cpuapp.overlay" does not impact the UART (or at least not the right one) because I cannot manage to change the baudrate. Would have any idea about that ? Moreover, if you could provide me an example of how I can modify the pins to the UART, I would be truly grateful !

    Thank you very much for all your help !

    With my kindest regards,

    Loïc

Children
No Data
Related