Blinky sample in custom board and nrf52840DK

I have a custom board that works perfectly because I can flash every precompiled example from sdk 17.0 with 10059 label. My custom board has a BMD-345-A-R module.

Now Im working with nrf connect sdk 2.2.0.

My problem appears when I try to build a sample (in this case the most basic "blinky" sample). When I build this sample I select in build configuration nrf52840dk board and I can FLASH it to my nrf52840DK board and it works nicely but it doesnt work if I select board nrf52840dongle in build configuration and flash it to my custom board.

I have cheked my layout:

And my .dts file:

So everything is apparently correct. I think it might be something related to MBR, flash positions or something similar because I was trying again with sdk 17, and the precompiled hex of blinky example "blinky_pca10056e.hex" doesnt work with my nrf52840DK board but "blinky_pca10056e_mbr.hex" does. I noticed that for pca10059 there isnt a mbr version. Why?

Parents
  • Hello,

    When you flash your board, how do you connect your board to your computer, and how do you program it? Do you use the flash button in Visual Studio Code?

    I noticed that for pca10059 there isnt a mbr version. Why?

    Probably just because nobody made it, and we don't have a tested version to include in the SDK. 

    Best regards,

    Edvin

  • I've tried to flash from Visual Studio too, and the result is the same. My question is:

    If I have 2 boards, 1 nrf52840DK and 1 nrf52840dongle (is a custom board, but is has the same configuration than a dongle), Why the blinky sample work on my nrf52840DK (if I select that board in build configuration) but it doesnt work in my "dongle" board (if I select nrf52840dongle in build configuration)

  • Hello,

    The dongle is a special case, because it comes pre-programmed with a bootloader from the nRF5 SDK. Are you sure you have programmed this exact bootloader to your custom dongle? 

    If you have a custom board, and a programmer to program it, I suggest that you treat it like a DK, except you configure the board file to match your board layout, but keep the nRF52 dongle out of the equation, because the assumed pre-programmed bootloader may not work in your favour. 

    For details on the nRF52 Dongle, please see this guide:

     nRF52840 Dongle Programming Tutorial 

    Best regards,

    Edvin

Reply
  • Hello,

    The dongle is a special case, because it comes pre-programmed with a bootloader from the nRF5 SDK. Are you sure you have programmed this exact bootloader to your custom dongle? 

    If you have a custom board, and a programmer to program it, I suggest that you treat it like a DK, except you configure the board file to match your board layout, but keep the nRF52 dongle out of the equation, because the assumed pre-programmed bootloader may not work in your favour. 

    For details on the nRF52 Dongle, please see this guide:

     nRF52840 Dongle Programming Tutorial 

    Best regards,

    Edvin

Children
No Data
Related