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

  • I think you're misunderstanding.

    The bootloader from nRF5 SDK requires that you have a pin to set it into bootloader mode, and therefore cannot be used if you do not have a button on your custom board.

     

    The nRF52840 comes blank from the factory, so it is your firmware that must enable USB communication.

     

    Piwy said:
    I use the nrf52840dongle_nrf52840 for both all theses set-up.

    Could you try programming your firmware with this configuration?

    Håkon Alseth said:
    "CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n"

     

    Kind regards,

    Håkon

  • Ok then my usb enable in my fireware must work then.

    I tried to put

    CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n

    But now i have difficulties to access to my device, in programmer i have Device is protected, press erase all button to recover the protected memory

  • I don't saw it with lsusb , i can't saw it anywhere

  • I am not able to help you with the limited information that you provide.

    You need to provide detailed information about what you're doing, in terms of which sample that you're using, the changes you're trying to apply, and what the log output of your device is.

    Kind regards,

    Håkon

  • I will try to describe the best that i can.

    As i say, there isn't log in my issue...

    Firt of all, I experimented a custom board nrf52840 with a FT232 Bridge USB to UART. My firware use Bluetooth Shell commands and others shell commands. This device will be used as a central. I succed to use this device with a raspberry pi and to command it with an external program in my rasspberry ( using sockets).

    I use a modified version of bluetooth shell. I comunicateed with this board with Uart.

    I succed to connect with putty in windows and with minicom in linux.

    But this was just an experimentation, now i need to custom board without the FT232 bridge, i need to use only USB. We create another custom card based on the Dongle BLE and i try to do the same as before with the USB.

    The custom board is powered by the usb , the old custom boad with FT232 was powered by a battery.

    I do all this thing to have a pc-ble-driver's like with NCS. It's even better because i can customise shell commands and use more functionnalities.

    I provided you also my prj.conf and my main.c.

    After i first try to add usb enable by using cdc_acm sample in my software. And I try to use it with dongle BLE from nordic. As i said before, it was a succes. But not with my custom board. The HW is really the same as the Dongle BLE. the only difference beetween them is the bootloader that's all and i don't understand why this isn't working

    is it clearer now ?
    Regards,
    Pierre-Yves
Related