Summary of Contents for NXP Semiconductors FRDM-KW41Z
Page 1
UM10950 Start-up Guide for FRDM-KW41Z Evaluation Board Bluetooth Paring example with NTAG I²C plus Rev. 2.0 — 5 June 2018 User manual 422220 COMPANY PUBLIC Document information Info Content Keywords NTAG I²C plus, FRDM-KW41Z Abstract This document gives a start-up guide for Bluetooth BLE pairing demonstration between FRDM-KW41 and NFC mobile device with use of NTAG I²C plus and also explains how the pairing part is included in the...
Page 2
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z Revision history Date Description 20180605 The BT pairing was updated with a different demo application and migrated from Kinetis Design Studio to MCUXpresso IDE and SDK. 20180206 Change of the information on how to use the demo in...
C plus development kit, there are 2 kits that can be attached to the FRDM-KW41Z board. The first OM5569 [2] is the original and it represents the typical HW design, the second OM23221ARD [3] is adapted to Arduino pinout. Both kits are fully fledged and its on the user which is chosen.
PTC 3 C specific open drain SCL Ground output VCC_SW NTAG I C Antenna P3V3 output board power supply FRDM-KW41Z - LED – RED PTC 1 output Default SDK RGB LED driver configuration FRDM-KW41Z LED – GREEN PTA 19 output...
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 2. Quick start-up the demo application This chapter provides a procedure how to easily install the development environment with the necessary components. Next, how to compile and debug a demo application and finally how to verify it's functionality.
Page 6
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 3.) In the next step you will be redirected to the NXP web page 4.) Choose the “DOWNLOADS” tab and press the “Download” Fig 4. IDE – starting the download 5.) Within the next step is necessary to sign in.
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 7.) Select the correct type of the operating system that is used by user and download the installation file. Fig 6. IDE – select and download 2.1.2 Installation of the MCUXpresso IDE The installation file was obtained using the procedure in the previous chapter 2.1.1.
Page 8
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 1.) Open the welcome page of the MCUXpresso site [4]: https://mcuxpresso.nxp.com/en/welcome 2.) Select the configurator based the board selection. Fig 7. MCUXpresso SDK builder – board selection 3.) Sign in to the web page – it is necessary step Fig 8.
Page 9
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 4.) Enter the keyword “FRDM-KW41Z“ and configure the SDK Fig 9. KW41Z board selection 5.) Select the SDK components Fig 10. SDK components selection UM10950 All information provided in this document is subject to legal disclaimers.
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 6.) Verify and start SDK building Fig 11. SDK creating 7.) Download the SDK Fig 12. SDK downloading 2.1.4 Importing the SDK to the MCUXpresso IDE The final step that needs to be implemented to achieve a fully functional development environment is importing the SDK.
2.2.1.1 MCUXpresso and FRDM-KW41Z SDK It is necessary to install the MCUXpresso, generate the FRDM-KW41Z SDK and import the SDK to MCUXpresso in accordance the chapter 2.1. 2.2.1.2 Importing of Archived Project The archived project is packaged in the ZIP format.
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z Find the archived project and continue importing. Project is automatically copied to the workspace. Fig 15. Importing of archived project 2.2.2 Demo running/debugging Debug the application by clicking on the “Quickstart Panel” from the MCUXpresso on “Debug ’hid_device_frdmkw41z_freertos”.
The debugging starts via pressing the F8 on the keyboard (main menu tabs “Run- >Resume”), see the Fig 17. On the FRDM-KW41Z board, the white LED shall be blinking, notifying that the application is running and is in the standby mode.
C chip the ntag_i2c_plus middleware package should be added to the HID Bluetooth demo application. In the next chapters there is procedure how to add the ntag_i2c_plus middleware to the FRDM-KW41Z demo application. 3.1.1 HID_device – The demo application The demo application, which we took as a basis for adding NTAG I C is hid_device.
Page 15
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z Fig 19. Finding the required project 3.) Then search “hid_device” demo application and select the freeRTOS version only. 4.) Press the “Finish” button and the project should be imported.
3.1.3 “ntag_i2c_plus” middleware The procedure how to add the NTAG middleware package is universal for all demo applications which supports FRDM-KW41Z development board. The name of the middleware package for NTAG I C chip is ntag_i2c_plus and the actual version has the extension ntag_i2c_plus_1.0.0.
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z GPIO pins of the I C interface are generally defined in the pin_mux.c file in the function BOARD_InitI2C(void) and should not be redefined in another location. GPIO pins for...
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 3.1.4.3 Added #includes to the BLE demo application Using the “ntag_i2c_plus” middleware requires include of headers into BLE demo application source code. Here is the list of files which require to include new headers: ApplMain.c...
Page 19
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z ************************************************************************************/ #ifdef NTAG_I2C static tmrTimerID_t mNDEFTimerId; static bool boNDEFState = FALSE; #endif Add the declaration of the timer callback function NDEF timer callback function declaration is placed to the part “Private functions prototypes”.
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 3.1.6 Security change The sample project for adding NTAG I C middleware is hid_device and is described in chapter 3.1.1. This project requires to enter the password “999999” during the Bluetooth pairing.
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 3.2 HID_device project properties 3.2.1 Symbols Within the project setting is necessary to add following “symbols”: • FRDM_KW41Z • NTAG_I2C • I2C_FSL • HAVE_STDBOOL_H These symbols are conditional defines for compiler and allows using of the ntag_i2c_plus...
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 3.2.2 Include paths Within the project setting is necessary to add following “includes”: • "${workspace_loc:/${ProjName}/ntag_i2c_plus_1.0.0/inc}" • "${workspace_loc:/${ProjName}/ntag_i2c_plus_1.0.0/HAL_I2C/inc}" • "${workspace_loc:/${ProjName}/ntag_i2c_plus_1.0.0/HAL_NTAG}" • "${workspace_loc:/${ProjName}/ntag_i2c_plus_1.0.0/HAL_NTAG/inc}" • "${workspace_loc:/${ProjName}/ntag_i2c_plus_1.0.0/HAL_ISR}" • "${workspace_loc:/${ProjName}/ntag_i2c_plus_1.0.0/HAL_ISR/inc}" • "${workspace_loc:/${ProjName}/ntag_i2c_plus_1.0.0/HAL_TMR/inc}" These includes represent the paths which point to source files of the ntag_i2c_plus middleware.
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 3.3 NDEF library usage The NDEF library supports the use of NDEF messages and greatly facilitates it. This library is used to create NDEF records and to encode and decode NDEF messages. The NDEF library is not currently available in the generated SDK from the NXP website.
Page 24
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z NOTE 1: The BTSSP NDEF message is also described by the comments. The description consists only of the mandatory parameter and necessary optional data, which are required for BT pairing.
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 4. Abbreviations Table 2. Abbreviations Acronym Description Bluetooth Low Energy – standard 4.2. BTSSP Bluetooth Secure Simple Pairing (NDEF record or message) CMSIS Cortex Microcontroller Software Interface Standard...
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 5. References ® ® FRDM-KW41Z: NXP Freedom Development Kit for Kinetis KW41Z/31Z/21Z MCUs: http://www.nxp.com/products/software-and-tools/hardware-development- tools/freedom-development-boards/nxp-freedom-development-kit-for-kinetis-kw41z- 31z-21z-mcus:FRDM-KW41Z?fsrch=1&sr=1&pageNum=1 NTAG I C plus Explorer Kit (OM5569) general NXP web site: http://www.nxp.com/products/identification-and-security/nfc-and-reader-...
NXP Semiconductors and its suppliers accept no liability for inclusion and/or use of NXP Semiconductors products in such equipment or Purchase of an NXP Semiconductors IC that complies with one of the Near applications and therefore such inclusion and/or use is at the customer’s Field Communication (NFC) standards ISO/IEC 18092 and ISO/IEC 21481 own risk.
Page 28
UM10950 NXP Semiconductors Bluetooth pairing example for NTAG I²C plus and KW41Z 7. List of figures Fig 1. HW connection with the NTAG I2C plus board (OM5569) ............3 Fig 2. HW connection with the Arduino NTAG I2C plus board (OM23221ARD) ........4 Fig 3.
Importing the SDK to the MCUXpresso IDE ..10 How to show the demo ........11 2.2.1 HID Demo from website ........11 2.2.1.1 MCUXpresso and FRDM-KW41Z SDK .... 11 2.2.1.2 Importing of Archived Project ......11 2.2.2 Demo running/debugging ......... 12 2.2.3...
Need help?
Do you have a question about the FRDM-KW41Z and is the answer not in the manual?
Questions and answers