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

Program the pca10059 with pca10056

So, currently I utilize DK's to program and debug both pca10040 and pca10056 utilizing a custom shield that plugs into any of the nRF52 DKs. The programming and the debugging utilize the SWDIO, the SWCLK, and the segger firmware. I am having a little difficulty with the pca10059, which is the nRF52840 USB Dongle. I want to use the hardware as is with the pca10056 projects. I have cut the D- and D+ traces from the dongle and can get the DK, the shield and the nRF52840 to communicate and erases the the chip but can not flash. I utilize the armgcc tool chain to develop and random text editors to edit or create .c files as well as the makefile. The tool chain gives the error 33 when attempting to flash. It suggests I send along the log.log file for the error that may have occurred when flashing.

Question: In my process is there anything glaringly wrong trying to utilize the USB dogle nRF52840 hardware with the pca10056 examples in the SDKs?

Question: where would I find the log.log file?   

  • I have also shorted the SWDIO and the SWDCLK pins to the appropriate USB pad.

  • Hi.

    For your first question I will refer to an answear which was given to a similar question previously asked this month.

    The following application examples are available for the pca10059 (nRF52840 USB Dongle):

    examples/peripheral/cli, examples/peripheral/blinky, examples/dfu/open_bootloader, examples/connectivity/ble_connectivity, examples/ble_peripheral/ble_app_hrs, examples/ble_peripheral/ble_app_blinky.

    That question can be found here.

    For your second question, if you want a log file you can look at a guide found on Seggers website here.

    Hope this helps.

    - Andreas

     

  • Thank you, but your first example is not possible with the hardware as I have described. I have taken over the USB port as the programming port SWDIO is D- and the SWDCLK is D+, though the D- and D+ have been cut from the nRF52840. The USB port is no longer available. Therefore, I want to program it as if it were custom hardware with the DK's and utilize the example project that utilize the pca10056. The board file needs some editing as it is not a pca10056 board, but both boards utilize the nRF52840.

  • I have tried another dongle with only the SWDCLK and SWDIO hardware edits, the original board also has a piggyback of a voltage regulator and an inertial sensor. I attempted to program the ble_app_blinky example from the SDK15 onto the second dongle with success. I suspect the piggyback is affecting the programming of the original dongle.

Related