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 need to have an access to file descriptor to send command

  • Hi thanks you, it works with Dongle BLE, but i have always one issue.

    Like i saied i try my code with dongle BLE and it's work. But i have a custom dongle that don't include reset button and then don't include also the open bootloarder. I can't see my cuistom device.

    The only difference beetween them is the open bootloader that is in the Dongle BLE, do you know how to include it in my code to have the programme ? i need tio include in it because i don't know why i can't access with programmer to my custom board....

  • No i don't see it with lsusb or his fiel descriptor like for the Dongle BLE but i can flash it. I can programme it with jlink. But the same soft in the dongle BLE don't work with my custom dongle, the only difference as i say is the nrf5 open bootloader, the HW is pretty the same... I don't understand why i can't see it.

    I tried to use MCUBOOTLOADER. but it was really complicated to use it with my config...and it helps to see the device with lsusb and have a file descriptor but it locked command... I really don't understand how it works

    Regards,

    Pierre-Yves

  • Hi,

     

    As you do not share any log output or debug information, it is very hard for me to state what is wrong.

    Which board are you configuring for? If if is the nrf52840dongle_nrf52840, it has default flash offset to accommodate the bootloader, as shown here:

    https://github.com/nrfconnect/sdk-zephyr/blob/v3.1.99-ncs1/boards/arm/nrf52840dongle_nrf52840/Kconfig.defconfig#L24

     

    If you do not have the bootloader present, you can set "CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n"

     

    Kind regards,

    Håkon

  • I don't have log to shwo unfortunatly...

    I just can say that my soft zephyr work with the dongle BLE because of his open bootloader (i think so), but we can't access to it unfortunatly...

    With Donle BLE Nordic, i can acess to the dongle and send shell command

    For a custom dongle with the same HW as the dongle BLE nordic, i firt try to put my soft into it with programmer(nrf descktop) but i can't acess or just see my device in linux contrary to the Dongle BLE nordic

    The only difference beetween them is this open bootloader DFU.


    Then i tried to use an open bootloader from old sdk (bootloaderNRF5 : nRF52840 Dongle Programming Tutorial ) , with this open bootloader i can see my device in linux but i can't send shell comand anymore, tthe device show nothing (no log...)

    Do you know how the soft from reset button from the dongle BLE nordic works ?

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

  • I understand that it's the boot loader from sdk that permit the device to be view by linux and not my software

  • 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

Reply
  • 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

Children
No Data
Related