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

Probleme about programmation of Bluetooth SKB501

Good morning Mrs

I have a bluetooth module SKB501 which integrate a NRF52840 chip. In that NRF52840, i want to test a code (ble_app_uart) include in the "nRF5_SDK_15.3.0_59ac345.zip" pack dowloaded from your site. I use keil µvision for the code and a Nordic NRF53832 evaluation kit. I use the "debug_out" jtag to program external chip. 

I proced by taking the example code ( examples -> ble_peripheral -> ble_app_uart in the "nRF5_SDK_15.3.0_59ac345.zip" pack ) which refer to a NRF52832_xxAA chip, i changed the device reference to the NRF52840_xxAA chip and the compilation give an error refered to  "NRF_CCM->MAXPACKETSIZE = 0xFBul;"

Because i just wanted to test if the programmation of the NRF52840 integreted in bluetooth module SKB501 done, i commented that line to pass the error. So when i try to program the module (NRF52840_xxAA chip), i have the message " error : Flash Download failed - "Cortex-M4" ".

Please i would like to know what wrong . 

  • Hi,

    You can take any nRF5x-DK to program your own board with the nRF52840. In such case the nRF5x-DK will simply work as any segger j-link programmer/debugger, though make sure the target voltage is approx 3V, since there are no level shifters. You can follow the user guide for the specific nRF5x-DK on how to connect your own board.

    When you want to program and debug your own nRF52840 board, then open the projects that are labelled with board name 'pca10056', since those are by default prepared for the nRF52840 ic. This is the case independent of what nRF5x-DK you are programming from.

    The only thing you need to change is the board file you are using. By default the pca10056 project are setup to use pca10056.h, however you need to modify the pin out to fit your hardware. So you may create your own customer_board.h by looking at the pca10056.h, also look at boards.h where you can see the various board files that can be used.

    Kenneth

  • I a m using a nRF52-DK which integrate a PCA10040 V.1.2.4. and a NRF52832 chip. Can i use that nRF52-DK to program and external NRF52840 chip ? if yes, how can i proced please ? 

  • Yes you can, and there is nothing you need to do. If you open a pca10056 project, the project will assume the target is an nRF52840 chip, which is the case if it's connected to the debug out header.

Related