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

OTA update of a new nRF51822

Hello,

I am currently designing a PCB containing the nRF51822 chip and I am concerned about how I will be able to update the program. I have 2 main questions :

  1. I will have the PCB done and assembled by a PCB manufacturer. The nRF51822 chip will be ordered directly by the PCB manufacturer. There is no JLink connector on the PCB as there is no space for it (space is critical for my application). When I receive the PCB, will I be able to perform an Over the Air update directly? I need to load the S130 SoftDevice and of course my application program.
  2. In the spec I see that the "SWDIO/nRESET" pin is active low. Does that mean that if I leave the pin unconnected (I don't plan to use the pins SWDIO and SWDCLK as I want to perform OTA update only) the nRF51822 will always be in debug mode or reset constantly? In the schematics and PCB layout I see that these 2 pins are connected. Can I leave them unconnected?

Thanks a lot in advance for your support! <3

Parents
  • No - unless you have someone program the chip for you before assembly, or program the board with some kind of jig after assembly or you make some kind of small connector on the board which can be used for programming, you won't be able to program the chip. The chip comes entirely blank and SWD is the only way to get the initial code onto it.

    nRESET/SWDIO is pulled high by an internal resistor so no you won't constantly reset. I've had noise problems in one of my applications (it's subject to some interference and the board design is not yet that great) and that's been pulling the nRESET low and resetting the chip, so tying it high is a good idea, as long as you leave some way to program the board first.

    You should ask your board manufacturer if they can program the chip before assembly. There are programmers which will take unmounted chips (QFNs at least), put them in a socket and program them.

  • Thank you RK for your answer, although that is bad news for me. As space is critical I chose the BGA package, so have the chip programmed by the board manufacturer is probably not an option. I will ask though. To program it at least once with wire connection, I am thinking about the following solution : on my current design, the nRF51822 is quite close to the "bottom" edge of the PCB, especially the pins SWDIO and SWDCLK face the edge (about 1mm close to the edge); I could just add 2 copper traces from the pins to the edge; when I receive the PCB I temporarily hand-solder both traces to connect them to whatever is able to program the chip. What do you think?

Reply
  • Thank you RK for your answer, although that is bad news for me. As space is critical I chose the BGA package, so have the chip programmed by the board manufacturer is probably not an option. I will ask though. To program it at least once with wire connection, I am thinking about the following solution : on my current design, the nRF51822 is quite close to the "bottom" edge of the PCB, especially the pins SWDIO and SWDCLK face the edge (about 1mm close to the edge); I could just add 2 copper traces from the pins to the edge; when I receive the PCB I temporarily hand-solder both traces to connect them to whatever is able to program the chip. What do you think?

Children
No Data
Related