Bluetooth Project: How to program your firmware to module

After setup been done, here comes the next question: How to program the firmware in to the module. We are using some simple instruction in below for reader’s quick reference.

Hardware

You will need a Nordic nRF5X DK or a Segger J-link as programmer to load the firmware. To use Nordic nRF5X DK to debug the SoC as well, you will need to order corresponding nRF5X DK to match the SoC number. For example, order nRF52840 DK to debug nRF52840 SoC or order nRF52 DK to debug nRF52832/52810 SoC. But if you are only using it as programmer, any version of nRF5X DK will work as we only use the J-link on this board.

Software

Please download Nordic nRFGo Studio for programming. Remember to install nRF5X Command Line Tools if the board was not detected by nRFGo Studio. Once they are all connected, you can then start programming. Please make sure to “erase all” every time before programming.

For more tutorials and demo of sample code, please visit Nordic’s DevZone and Infocenter where have ample resources to utilize.

Programing 

SoftDevice + Application

  1. Erase all first. Then program Softdevice and follow by Application code.
  2. Or you may combine code as stated in above. Erase all and follow by programing the combined code.

SoftDevice + Bootloader+ Application

  1. Either Erase all first.  Program the Softdevice and follow by Bootloader. and then use DFU to update the application code.
  2. Or suggested having a combined code (SofDevice+Application+Bootloader) for program. Simply erase all and follow by programming the combined code.
*Remark
Bootloader is needed for DFU (OTA) Function.
SDK 11 (included) and before – a legacy DFU method, which is simple but less security
SDK 12 (Included) and after – a latest DFU method, which has higher security.

 

To easy customer’s IoT device mass production, Raytac provide code pre-program service into module before shipment.  There are requirements listed in below for customers who need the service!

  1. A single, combined hex file is required. Please combine softdevice and application or/and bootloader (depending on your firmware design) together before programming. This will shorten programming time and help to manage your code easier. If you are not familiar with merging firmware, please download the instruction from the link:     https://mega.nz/#!Qg5UBJTQ!POWmmNNdapGqefHpB10YjpcuExLWwXnxDfBzcVrsTOw
  2.  Need a simple method to check programming status. The easiest way is to check the device name if device will broadcast device name after programming is done; or use I/O to trigger LED and its behavior. This does not aim to test any or full function of your device, only a simple method for the operator to know programming status.
nRF52840 MDBT50Q Module
nRF52840 MDBT50Q Module

 

Raytac Corporation
A BT4.1 & BT4.2 & BT5 module maker based on Nordic nRF51 & nRF52 solution 
(nRF51822 & nRF51422 & nRF52832 & nR52810 & nRF52840)
www.raytac.com          email: cs@raytac.com          Tel: +886.2.3234.0208

Bluetooth Project: How to get your firmware development started!

Setting up Nordic’s IDE (Integrated Development Environment) is the first step into Bluetooth product development, and it’s also where most developers need support.

In order for developers to be able to smoothly set up their IDE, Raytac hereby provide you with a few easy steps.

First and foremost – In terms of IDEs, there are currently four different ones that are all viable; Segger Embedded Studio (SES), Keil C, IAR and GCC. Among these, SES and GCC are IDEs free of charge while Keil C and IAR both require the developer to pay a license fee to their respective company.

We at Raytac generally recommend SES, as it is an IDE brought forth by both Nordic and Segger together and it uses Segger J-Link. Although GCC is a free IDE, it only builds code and is impractical editting make file or debugging firmware. Thus, it’s not our primary choice.

Therefore, we will hereby provide you a step-by-step guide on how to set up your IDE when using SES.

  1. Where to download SES?

https://www.segger.com/downloads/embedded-studio/

圖片 1.png

  1. Where to Nordic SDK ( Use SDK v15.0.0 as an example)

https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/

  1. Install SES V3.34 and unzip SDK v15.0.0

After SES installed, you may find “Non-Commercial License” 

圖片 4.png

  1. SES License Key? http://license.segger.com/Nordic.cgi
  2. How to get free License Key?

Key in Name, Company name, Address and PC’s MAC address. Then press “Request License”, the “License key” will send to your mail box automatically.

Tips: How look up PC’s Mac address: Pls enter DOS mode, 

Key in ipconfig/all,

The Mac address will be found in Ethernet card.

圖片 7.png

  1. Copy the license key from mail

圖片 8

  1. Execute SES and find out the “License Manager” in “Tools” option

圖片 9

  1. Select “Activate Embedded Studio”, Paste the “License Key”, Click “Install License”

圖片 10.png

  1. When completed, click”Manage Activation”,shown “License key” well installed.

圖片 11

圖片 12.png

CMSIS Configuration Wizard,

  1. Select “Open Solution” in SES’s File option to open SDK v15.0.0 project

..\examples\ble_peripheral\ble_app_uart\pca10040\s132\ses\ble_app_uart_pca10040_s132.emProject 

圖片 13圖片 14

  1. Select “Open Studio Folder” in SES’s File option, then select “External Tools Configuration”. You may find the display as below screen shot. Pls paste the below command. (The command can also be found in below link)

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fsdk_config.html&cp=4_0_0_1_6

圖片 15.png

圖片 16

  1. Please save the “tools.xml”. Afterward, developers may able start over build code and debug works.

Build Code & Debug

Raytac Corporation 勁達國際電子有限公司
A BT5.2 & BT5.1 & BT5 module maker based on Nordic nRF53 & nRF52 solution
(nRF5340 & nRF52840 & nRF52833 & nRF52832 & nRF52820 & nRF52811 & nRF52810 & nRF52805)
www.raytac.com email: service@raytac.com Tel: +886.2.3234.0208

Nordic Licensed A Free Development IDE-Embedded Studio

Nordic announced it recently has signed with SEGGER to license all developers allowed to use Embedded Studio to develop Nordic nRF51 & nRF52 application freely without any limitations.

Getting started with SEGGER Embedded Studio and the nRF5 SDK Tutorial Video:

Nordic nRF52810 Module MDBT42Q-P192K by Raytac in Mass Production

With Nordic nRF52810 SoC volume production, Raytac announced nRF52810 module MDBT42Q-P192K and MDBT42Q-192K will be available by 2017/11

New NFC feature on nRF52 Series: Read/write capable Type 4 Tag NFC library in nRF5 SDK

beacon_config-01.png
NFC feature is an interesting function in nRF52 series which can help developers and consumers to extent the device flexibility and accessibility.
Mostly, people knows that the NFC for nRF52 can work for paring work only.
Here Nordic Developer Zone introduced the new features of nRF52 for Type 4 Tag in nRF5 SDK.
Thus, not only used as a standard tag type for storing a web link or a text to launch apps and secure BLE pairing as known as Type 2 Tag. (The library already in nRF5 SDK), but also supports more features which enhance a faster communication and exposing data (known as NFC Type 4 Tag). Thus, nRF52 now can even write data to a tag with an NFC Reader/Writer such as smartphone and used in many secure transactions systems.
For more detail information, you can continue the reading in below which quoted from original post, or simply visit Nordic Developer Zone

Bluetooth 5-ready Nordic nRF52840 multi-protocol SoC released!

 

Raytac Corporation

Bluetooth module maker based on Nordic nRF51 & nRF52 solution 
(Nordic nRF51822 & nRF5142 & nRF52832 & nRF52840)
Bluetooth Specification Version: BT4.0 & BT4.1 & BT4.2
Tel: +886.2.3234.0208
email: service@raytac.com
http://raytaccorp.blogspot.tw/2016/12/bluetooth-5-ready-nordic-nrf52840-multi.html

Quoted from Nordic Press released!
https://www.nordicsemi.com/eng/News/News-releases/Product-Related-News/Bluetooth-5-ready-SoC-from-Nordic-redefines-scope-for-smart-home-IoT-and-wearables-by-delivering-4x-range-2x-bandwidth-and-best-in-class-security

Nordic Semiconductor has today released the new nRF52840 multi-protocol SoC with on-chip support for the upcoming Bluetooth 5 specification. In addition to Bluetooth 5 the nRF52840 also introduces on-chip support for the 802.15.4 standard. With Bluetooth 5’s new high throughput and long range modes and 802.15.4, it offers unparalleled development opportunities for connected devices for IoT. These opportunities include advanced single-chip wearables, wearables with payment options and connected home devices.
 
Bluetooth 5 will undergo ratification by the Bluetooth SIG beginning December 6th2016. Upon completion, we will provide Bluetooth 5-ready SoftDevices to support nRF52840 and the nRF52832 (high-throughput mode only).

nRF51 Raytac Module Reflow Profile Reference (MDBT40 / MDBT40-P)

To help customers to proceed the SMT process, Raytac provides the Reflow Profile reference.

Nordic nRF5 SDK v.12.1.0 Released

Raytac Corporation
A BT4.1 & BT4.2 module maker based on Nordic nRF51 & nRF52 solution 
(nRF51822 & nRF51422 & nRF52832 & nRF51802)
Tel: +886.2.3234.0208
Nordic relleased nRF5 SDK V12.1.0

Software Update

nRF5 SDK v.12.1.0
Software Development Kit for the nRF51 Series and nRF52 Series.
Highlights of this release:
  • Added serialization of the S132 SoftDevice v3.0.0. Serialization of S130 is now deprecated.
  • Included the latest MDK v8.9.0 with a crucial workaround for nRF52832 Errata 108.
More information in the release notes (inside the download).