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

bootloader for nrf51822 QFACA1part on a custom board

Hi All,

We are trying find a way to upgrade nrf51822 in the field post initial release. I read the following posts (devzone.nordicsemi.com/.../) (developer.nordicsemi.com/.../a00069.html)

If I to I am trying to understand the following please bare me for asking very basic questions

  1. Do we must need to have a bootloader?

  2. Is there any existing bootloader that I can use as it is on nrf51822 QFACA1 part? or I must customize something? if yes, what all needs to be done? I don't think we can accommodate dual bank architecture. If that is the case, what I need to worry about?

  3. How do I program bootloader for the first time ? (Most likely a programmer, but I would still like to have an answer to confirm)

  4. Do I need to flash bootloader at specific address?

  5. How do I park device to bootloader mode for future firmware upgrade? I don't have any button on my PCB (how does other people do it for their devices) .

  6. When upgrading softdevice does it also erase the bootloader? or it can be prevented? May be I was informed that to upgrade softdevice you must erase entire flash, which doesn't sound right to me.

  7. How do you upgrade softdevice only? or softdevice + application or application only?

I know I asked so many questions but I would like to understand all this in a same thread.

  • Hi Bui, Thank you very much. I just started working on this. Now, I am overwhelmed with the information in the bootloader project.

    I need to create a standalone project using keil tools for nrf51822. I believe that I will have to

    1. Download the following directories to my local machine. link text and link text

    2. Add all files from above directory to a blank project and compile and then download followed by send a file using a SPI master from LPC1124 (My architecture has 2 micros 1 is LPC1124 and the other is nRF51822)

    3. I don't have the buttons and LEDs as defined in the bootloader project above which I plan to comment out.

    Is it the right way to do it? I have never worked on this before please bear me if I asked for too much.

  • @harryB: If you use Keil, the project file (.uvoptx or .uvprojx) are already included in the pca10028 folder. It should work out of the box. You don't have to create a new project.

    You need to reconfigure the LEDs and buttons as they are different on your board.

    Secondly, you need to have a look at the bootloader_host_spi_master as reference to make your own code for the LCP1124

Related