hnhoan gravatar image

Posted 2017-09-18 03:53:40 +0100


Flashing nRF5x firmware using any dumb terminal program via standard serial COM port

    No tags

There are times that we needed to flash the nRF5x series on a PC where the development software were not installed. The problem could be worst when network access is limited. With a HEX file on hand, it is now possible to flash the nRF5x device using regular dumb terminal software such as CoolTerm, Putty,... through the COM port. This is the new feature of the IDAP-Link, a CMSIS-DAP compatible debug jtag. This feature is called 'Console Mode'. Please note that programming the nRF5x is actually done using SWD. The COM port is only for user interface.

image description

To active the Console Mode, use any dumb terminal program and connect to the IDAP-Link CDC COM port at 4MBaud. The best terminal software to use is CoolTerm. CoolTerm is available for Linux, OSX and Windows.

By default, CoolTerm supports upto 230400 Baud. To add new Buadrates to CoolTerm, create a file name 'baudrates.ini'. Add 1 baudrate value per line the file. Then copy the baudrate.ini file to the location based on platform used.

      Mac: /Users/UserName/Library/Application Support/CoolTerm/
      Win: \Users\UserName\AppData\Roaming\CoolTerm\
      Linux: /home/UserName/CoolTerm/.

At connection, a welcome screen is displayed in the terminal with a small menu.

image description

To upload new firmware (or Softdevice), select 'u' on the menu. Wait for the message 'Ready for HEX upload' to appears.

image description

Once the message is received. Use the terminal program, CoolTerm in this case to send a text file.

image description

The transfer immediately begins

image description

Once the file transfer is completed a new message 'Upload completed' will be displayed.

image description

That's how it is done.

IDAP-Link user guide and software are here.


endnode gravatar image

Posted Sept. 18, 2017, 11:03 p.m.

Great work! (finally all "I want to flash it over serial port like Arduino" requests have the answer;)

Sign in to comment.

Related posts by tag

No results