This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF connect vscode samples for 52840-dongle PCA10059

Goodday all 

Im experimenting with Vscode and Nrfconnect (zypher library). I want to see how easy it is to port my Segger nrf SDK code to vsCode.  Having trouble getting it to work (with my custom board based on modified dongle board files) I thought let me first just try the blinky example. which also did not work.

Is the blinky example suppose to work out the box? In my application build I select nrf52840dongle_nrf52840. I program the dongle via my 52840DK.

Currently if I flash the blinky example im just getting the pulsating red led. I can see its flashing the dongle as it resets after the programming is complete.

Thank you

  • Hello,

    If I use the programmer (nRFConnect) to burn the zypher.hex  ( dongle bootloader) it is working. But not through the DK. Let me try another DK and revert back.

  • Good Morning,

    I have tried another DK and results are the same. I can program the dongle with Blinky through Nrf Connect via the dongle bootloader or the DK and the Zypher.hex  Blinky code works. But if I do it through VS then the dongle resets after programming th  pulsating red LED stops flashing but that's it. Its as if the App is not running. if I press reset button it goes back to bootloader mode.

  • Hi,

    It does look strange. Are you facing the issue only with VS Code or with SEGGER and west too?

    -Priyanka

  • Only with Vs code.I have not tried Segger through nRF connect will try this afternoon. I normally use Segger SDK and that works 100%

  • Please do keep in mind that when using the nRF52840 Dongle you have to build different images if you use the Bootloader or if you use a programmer to get the program onto the device. This is caused by the MBR which will be present in the device when using Bootloader and not when not using bootloader resides in the first 4KB of the flash. This means target needs to either reside after this or at address 0x00000000.

    Depending on how you set up the project in DTS this will work for one of the platforms but not both. Have you changed the build for the different versions or do you add the MBR to the hex file when using the JLINK/DK to program the dongle?

Related