Trying to see DongleBLE in linux with NCS

Hello,

I want to see my dongle BLE with command lsusb with NCS. I succed to see it with a FTDI USB to UART but i want to succed with only USB.

I succed only USB just with the old SDK connectivity by using a patch whitch came from pc-ble-driver. I tried to developp a pc-ble-driver version NCS with shell command but for commercialisation i can't have a FTDI on my board. can you help me ?

I use for my tests a dongle BLE nrf52840.

Regards,

Pierre-Yves

Parents
  • i Said i will only use shell_module for now on ...i said it 2 times..

    And shell_module sample with overlay_usb.conf works fine with the dongle_ble but not with my device.

    With dongle _ble i could send command and he respond. I used minicom to connect to it on y linux and it works perfectly.

    I just take the sample and add overlay_usb.conf in Kconfig fragments in VS code with ncs 2.0 and with nrf528470_donglenrf52840

    I tried entering debug mode but i have this message :

    and with rtt viewer i have nothing also, i connect to my device.

    This hardware was used and works with connectivity fireware hci_usb pca10056 from sdk15.3 with the patch from pc_ble_driver. But others software didn't run succeffully on it...

    The reset pin isn't routed, i use GPIO to reboot. The device can be accessed only from a rasspberry.

    This card was addapted from the Dongle_ble nordic to be commanded by the rasberry.

    The purpose is to use the new sdk ncs with bluetooth shell commands instead of pc_ble_driver.

  • Piwy said:
    i Said i will only use shell_module for now on ...i said it 2 times..

    Yes, but you are inconsistent in your feedback, which does not allow me to check if you applied changes that I recommended, like the device tree overlay and board specific configurations:  RE: Trying to see DongleBLE in linux with NCS 

    Did you create the proper configuration and overlay and include those in your build as described there?

    Here's a project where I enabled the above quoted configurations and device tree overlays for nrf52840dk_nrf52840 and nrf52840dongle_nrf52840.

    shell_module_with_usb_for_dk_and_dongle.zip

     

    Please report back explicitly with details on if this project works for your custom board.

    Also note that the above project disabled any use of DCDC and also uses internal 32k RC oscillator, as the dongle from us (pca10059) and the nRF52840-DK has DCDC components and external 32k source.

    Piwy said:
    fireware hci_usb pca10056 from sdk15.3

    Were you successful with running hci_usb (which is from NCS), or did you run the connectivity firmware (ble_connectivity_s1xx_pca10056.hex) from nRF5 SDK?

    Please confirm what you were successful with here.

     

    If you were successful running a nRF5 SDK firmware, and not any NCS example, it indicates that you have a hardware difference.

    For instance the DCDC components not in-place, but this should be confirmed if the attached .zip project works for you.

    Piwy said:
    and with rtt viewer i have nothing also, i connect to my device.

    Which project did you run with RTT? Did you run the hello_world that I previously recommended you to do?

     

    Kind regards,

    Håkon

Reply
  • Piwy said:
    i Said i will only use shell_module for now on ...i said it 2 times..

    Yes, but you are inconsistent in your feedback, which does not allow me to check if you applied changes that I recommended, like the device tree overlay and board specific configurations:  RE: Trying to see DongleBLE in linux with NCS 

    Did you create the proper configuration and overlay and include those in your build as described there?

    Here's a project where I enabled the above quoted configurations and device tree overlays for nrf52840dk_nrf52840 and nrf52840dongle_nrf52840.

    shell_module_with_usb_for_dk_and_dongle.zip

     

    Please report back explicitly with details on if this project works for your custom board.

    Also note that the above project disabled any use of DCDC and also uses internal 32k RC oscillator, as the dongle from us (pca10059) and the nRF52840-DK has DCDC components and external 32k source.

    Piwy said:
    fireware hci_usb pca10056 from sdk15.3

    Were you successful with running hci_usb (which is from NCS), or did you run the connectivity firmware (ble_connectivity_s1xx_pca10056.hex) from nRF5 SDK?

    Please confirm what you were successful with here.

     

    If you were successful running a nRF5 SDK firmware, and not any NCS example, it indicates that you have a hardware difference.

    For instance the DCDC components not in-place, but this should be confirmed if the attached .zip project works for you.

    Piwy said:
    and with rtt viewer i have nothing also, i connect to my device.

    Which project did you run with RTT? Did you run the hello_world that I previously recommended you to do?

     

    Kind regards,

    Håkon

Children
  • Did you create the proper configuration and overlay and include those in your build as described there?

    => Yes i did

    Your  project work with my custom board,, all shell commands worked it must be the DCDC. really thanks you.

    What is the config that you use for disabled any use of DCDC and also uses internal 32k RC oscillator ?

    Were you successful with running hci_usb (which is from NCS), or did you run the connectivity firmware (ble_connectivity_s1xx_pca10056.hex) from nRF5 SDK?

    Please confirm what you were successful with here.

    => Yes from NRF5 SDK with a patch

    Which project did you run with RTT? Did you run the hello_world that I previously recommended you to do?

    Yes i run the one that you recommanded me

  • Piwy said:

    Your  project work with my custom board,, all shell commands worked it must be the DCDC. really thanks you.

    What is the config that you use for disabled any use of DCDC and also uses internal 32k RC oscillator ?

    This is great news!

    The configurations to disable DCDC and DCDC_HV are the following:

    CONFIG_BOARD_ENABLE_DCDC=n
    CONFIG_BOARD_ENABLE_DCDC_HV=n
    
    

    And enabling 32k internal RC oscillator is this one:

    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y

     

    Those are set in the boards/nrf52840dongle_nrf52840.conf (and the same in the nRF52840-DK .conf file)

     

    You can try to set the above configurations, in addition to the RTT specific configurations, in hello_world to see if you can get RTT to work now as well.

     

    Kind regards,

    Håkon

  • Indeed with this configuration RTT works fine, really thanks you.

    I have a question about bootloader, is it possible to use my software with a nrf5 bootloader dfu to update my software ? If it's possible how can i do it ?

    I ask this to know if it's possible tio upgrade device with software NRF5 with a  RTOS

  • Piwy said:
    I have a question about bootloader, is it possible to use my software with a nrf5 bootloader dfu to update my software ? If it's possible how can i do it ?

    You must have a to both reset, and atleast one GPIO routed together, as explained here:

    https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Flib_dfu_trigger_usb.html

     

    If you do not have this, then it is not possible to use the nrf5 usb bootloader.

     

    Kind regards,

    Håkon

  • it will work for my custom device usb if reset is routed with a GPIO.

    And is it possible to use a nrf5 bootloader to update over BLE a device with nrf5 software to an RTOS ? It's my last question, after i will close the ticket.

    Thanks you for everything.

    Regards,

    Pierre-Yves

Related