RN4870 Firmware Upgrade

 Objective

This lab takes you step-by-step through the process of updating the firmware on the RN4870 module. New firmware can add Bluetooth® Low Energy (BLE) specific functionality for new revisions of the Bluetooth specification as well as provide a way to fix bugs discovered in the current device Bluetooth operation.

The latest firmware is available on the RN4870 product page.

 Materials

Hardware Tools

Software Tools

 Connection Diagram

MinimumConnection.png

The Universal asynchronous receiver/transmitter (UART) RX and TX lines are used to communicate between the Host and the RN4870.

 Procedure

Be sure to install the MCP2200 USB drivers before starting. Also, extract the RN4870 Firmware Package files to your computer. You can find them on the RN4870 Landing Page under the Documentation section.

1

Connect to RN4870

Connect the RN4870 PICtail board to your PC. Ensure the jumpers are set as shown.

  • J3 connects the RX, TX, RTS, CTS from the module to the USB. As we can see in the picture below, the jumpers were connected on the bottom two (TX and RX). The top two can be added based on your flow control preferences.
  • JP8 is connected by default; this allows you to see the LED indication from the module.
  • J1 is the Power Source Connector
      • For "isupdate.exe" or CoolTerm: Connect the middle jumper labeled ‘USB’
      • For Explorer16: Connect the right side jumper labeled ‘PIC’
Connected.png

a

COM Port

Open the Device Manager window by going to the Start Menu > Control Panel > Hardware and Sound and then selecting Device Manager. Once open, check which COM Port has been assigned to the RN4870 PICtail board.

DeviceManager.png

b

Place the module in Test Mode by setting SW7 in the ON position, then press SW5 (Reset) to reset the module.

BM70Update.png

The module's basic operating mode (Test/Application) is sampled and established on a module reset condition. We recommend pressing the Reset (SW5) push-button whenever SW7 is first changed, or when you want to be sure that SW7 is sampled and applied by the module.

With Jumper JP8 shorted, LED1 will be lit (BLUE) indicating the module is in Test Mode, as shown above.

c

Launch the ISupdate Programming Utility and select the correct COM port (from substep a). Set the baudrate to 115200 and the memory type to Flash/Embedded. Then click Connect.

UpdateToolSettings.png

If the connection was successful you will see the following message:

ToolConnected.png

2

Update firmware

Click on the Browse button and navigate to the folder where you extracted the RN4870 Firmware Package earlier. Select all the needed Hex files in the dialog box and click Open.

Browse.png

Click on Update. After a few seconds the update will be complete and you will see a screen like the one below.

UpdateSuccessful.png

3

Disconnect

Click on Disconnect and close the ISupdate tool.

Disconnect.png

4

APP Mode

Move dip-switch SW7 to the OFF position (1) and reset the module by pressing SW5 (button immediately above dip-switch).

Switch.png

 Results

1

Start a CoolTerm Connection

You can verify that you have the new firmware version by opening a CoolTerm connection. Below you will find the settings used (115200 baud, 8 bits, No Parity, 1 stop bit, no flow control). The Local Echo in the Terminal tab was also turned on.

CoolTermSettings.png

2

Enter Command Mode and Verify Version

a

Press $ to enter command mode.

b

Press V to display firmware version.

VCommand.png

Our module has been updated to version 1.18.3 of the firmware.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.