This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Moving from PCA10056 to PCA10059

Hi,

I've developed software using PCA10056 (using nRF5_SDK_15.0.0_a53641a) and I would like to test it on PCA10059.

Can you direct me to the new board files that need to be replaced?

Thanks,

Daniel

Parents
  • Hello,

    There is a folder in SDK15 called boards, located in:

    SDK15.0.0\components\boards

    In that folder you should find a file called pca10059.h, which is the dongle board header file.

     

    Note that there are also a couple of projects that are already made for the PCA10059. Not many, but using one of these may save you some time with setup. Although, since it is the same chip as the PCA10056, it might be easier just to change the board header file.

     

    Note that there is a define in the preprocessor defines, called BOARD_PCA10056 in all of the nRF52840 DK projects. If you change this define to BOARD_PCA10056, it should automatically change to use the correct file, pca10059.h.

     

    You will probably notice that if you want to program a project using the softdevice and an application to the nRF52840 dongle, you might run into some issues. Since the dongle doesn't have a programming chip, like the DK has, it is only programmable with the USB bootloader, or with an external programmer. nRF Connect, which uses the USB bootloader currently doesn't support writing to multiple regions. So there is no way of using this tool to program both the softdevice and the application. If your application doesn't use the softdevice, however, then you should be fine. 

     

    I have heard that it is possible to use the nrfutil tool to program the nRF52840 dongle. However be very careful not to overwrite the bootloader on the dongle, because if you do, it will not be possible to program it with nRF Programmer from the nRF Connect tool in the future.

     

    You can also program the dongle using an external programmer (such as the DK), but you would have to solder on some programming pins on P1 (on the bottom side of the dongle). Note that by programming it with these pins, if you do a nrfjprog --eraseall or nrfjprog -e, you will also remove the pre-programmed bootloader.

     

    Best regards,

    Edvin

Reply
  • Hello,

    There is a folder in SDK15 called boards, located in:

    SDK15.0.0\components\boards

    In that folder you should find a file called pca10059.h, which is the dongle board header file.

     

    Note that there are also a couple of projects that are already made for the PCA10059. Not many, but using one of these may save you some time with setup. Although, since it is the same chip as the PCA10056, it might be easier just to change the board header file.

     

    Note that there is a define in the preprocessor defines, called BOARD_PCA10056 in all of the nRF52840 DK projects. If you change this define to BOARD_PCA10056, it should automatically change to use the correct file, pca10059.h.

     

    You will probably notice that if you want to program a project using the softdevice and an application to the nRF52840 dongle, you might run into some issues. Since the dongle doesn't have a programming chip, like the DK has, it is only programmable with the USB bootloader, or with an external programmer. nRF Connect, which uses the USB bootloader currently doesn't support writing to multiple regions. So there is no way of using this tool to program both the softdevice and the application. If your application doesn't use the softdevice, however, then you should be fine. 

     

    I have heard that it is possible to use the nrfutil tool to program the nRF52840 dongle. However be very careful not to overwrite the bootloader on the dongle, because if you do, it will not be possible to program it with nRF Programmer from the nRF Connect tool in the future.

     

    You can also program the dongle using an external programmer (such as the DK), but you would have to solder on some programming pins on P1 (on the bottom side of the dongle). Note that by programming it with these pins, if you do a nrfjprog --eraseall or nrfjprog -e, you will also remove the pre-programmed bootloader.

     

    Best regards,

    Edvin

Children
Related