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,

    My fireware works perfectly with Dongle Ble From nordics.

    I tried adding : CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n

    This don't work on my custom device. I can't debug it because i can't see RTT unfortunatly after flashing the device.

    I can't share it because it's condifdential...

    The HW is pretty the same as the dongle  USB+ and USB- are linked to D+ and D- , USB part is the same.

    With the Dongle_ble nordic the usb port opened but not with my device, the usb not opened ...i tried debug to saw it but it's not working. I thought i needed to use an USB bootloader to open the usb port but maybe i misunderstanding it.

  • I am unable to help you if you do not provide detailed information.

    Please spend a bit of time and answer the below questions.

    "It works on hardware xyz" is not sufficient information - what works? As previously stated, please share logs, screenshots, any information on how you program, run, and logs.

    Which project(s) are you trying to flash?

    What specific "board" are you building for? By "board" here, I mean the listed board in ncs/zephyr/boards/arm/ directory.

    Have you tried entering debug mode, if yes; please share the detailed information on what is observed. Screenshots, logs, etc.

     

    You mention that logging does not work. How did you enable RTT logging? By default, UART logging is used.

    As a minimalistic test: Run "hello_world", configured as board "nrf52840dk_nrf52840" (ie. not configured as nrf52840dongle), with these in prj.conf:

    CONFIG_USE_SEGGER_RTT=y
    CONFIG_UART_CONSOLE=n
    CONFIG_RTT_CONSOLE=y
    CONFIG_LOG=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_LOG_BACKEND_RTT=y
    

    And open up the RTT viewer, and share the output.

    Piwy said:
    The HW is pretty the same as the dongle  USB+ and USB- are linked to D+ and D- , USB part is the same.

    Can you run anything successfully on your custom hardware? Hello world, blinky, etc?

    Do you have the nRESET pin (P0.18) routed to anything?

    Can you please share information related to the nRF only? For instance, what is the 32M xtal and its loading caps? Same for the 32k oscillator.

    Piwy said:
    I thought i needed to use an USB bootloader to open the usb port but maybe i misunderstanding it.

    No, you do not need a usb bootloader on your custom hardware. You have a debugger/programmer, meaning that you can access the device directly using SWD.

     

    Kind regards,

    Håkon

Reply
  • I am unable to help you if you do not provide detailed information.

    Please spend a bit of time and answer the below questions.

    "It works on hardware xyz" is not sufficient information - what works? As previously stated, please share logs, screenshots, any information on how you program, run, and logs.

    Which project(s) are you trying to flash?

    What specific "board" are you building for? By "board" here, I mean the listed board in ncs/zephyr/boards/arm/ directory.

    Have you tried entering debug mode, if yes; please share the detailed information on what is observed. Screenshots, logs, etc.

     

    You mention that logging does not work. How did you enable RTT logging? By default, UART logging is used.

    As a minimalistic test: Run "hello_world", configured as board "nrf52840dk_nrf52840" (ie. not configured as nrf52840dongle), with these in prj.conf:

    CONFIG_USE_SEGGER_RTT=y
    CONFIG_UART_CONSOLE=n
    CONFIG_RTT_CONSOLE=y
    CONFIG_LOG=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_LOG_BACKEND_RTT=y
    

    And open up the RTT viewer, and share the output.

    Piwy said:
    The HW is pretty the same as the dongle  USB+ and USB- are linked to D+ and D- , USB part is the same.

    Can you run anything successfully on your custom hardware? Hello world, blinky, etc?

    Do you have the nRESET pin (P0.18) routed to anything?

    Can you please share information related to the nRF only? For instance, what is the 32M xtal and its loading caps? Same for the 32k oscillator.

    Piwy said:
    I thought i needed to use an USB bootloader to open the usb port but maybe i misunderstanding it.

    No, you do not need a usb bootloader on your custom hardware. You have a debugger/programmer, meaning that you can access the device directly using SWD.

     

    Kind regards,

    Håkon

Children
No Data
Related