This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Are nRF52 Examples compatible with µVision 5.17?

When i load a nRF52 example in Keil µVision 5.17 (for example ble_app_proximity_s132_pca10040) The i get a indication that the Configuration files are not compatible I am also not able to load the S132 soft device hex file into my PCA10040 development board

Parents
  • Hi. I might still be a bit confused about what the actual problem is here, but:

    Choosing target and 'LOAD' here:

    image description

    to download the Softdevice is only working on a blank chip. This has to do with the flash algorithms used by Keil to program the nRF51. The algorithms are made by Nordic and we have intentionally made them this way. So if you already have a Softdevice on your chip you will get an "Erase failed!" message. Do you need to re-program the Softdevice often?

    There are a couple of workarounds though. One way to program both Softdevice and application from Keil using the "Select Target" dropdown list is to use nrfjprog. Enter Target Options in Keil and chose to use an external tool for flash programming. Configure it like this for Softdevice:

    image description

    and like this for application:

    image description

    !WARNING!: if you use nrfjprog to program your application like this you will not be able to debug with Keil like normal!. I migth be smarter to use the methods described in the following blog: nrfjprog blog.

    Finally you can of course use nRFGo Studio.

Reply
  • Hi. I might still be a bit confused about what the actual problem is here, but:

    Choosing target and 'LOAD' here:

    image description

    to download the Softdevice is only working on a blank chip. This has to do with the flash algorithms used by Keil to program the nRF51. The algorithms are made by Nordic and we have intentionally made them this way. So if you already have a Softdevice on your chip you will get an "Erase failed!" message. Do you need to re-program the Softdevice often?

    There are a couple of workarounds though. One way to program both Softdevice and application from Keil using the "Select Target" dropdown list is to use nrfjprog. Enter Target Options in Keil and chose to use an external tool for flash programming. Configure it like this for Softdevice:

    image description

    and like this for application:

    image description

    !WARNING!: if you use nrfjprog to program your application like this you will not be able to debug with Keil like normal!. I migth be smarter to use the methods described in the following blog: nrfjprog blog.

    Finally you can of course use nRFGo Studio.

Children
No Data
Related