Microchip Technology MCHPRT2 User Manual
Microchip Technology MCHPRT2 User Manual

Microchip Technology MCHPRT2 User Manual

Atwinc/atwilc/atsamb/atbtlc

Advertisement

Introduction

This document provides detailed information about the MCHPRT2 tool, which allows the user to easily
configure, evaluate and test an RF system. This tool simplifies the effort during the early stage of
development, regulatory certification and production testing. The MCHPRT2 tool with v1.0 is used for this
demonstration. MCHPRT2 is a Windows
Note:  The ATWINC, ATWILC, ATBTLC, and ATSAMB denotes the following:
• ATWINC15x0
• ATWINC3400
• ATWILC1000
• ATWILC3000
• ATBTLC1000
• ATSAMB11

Features

The MCHPRT2 tool includes the following functions for the ATWINC/ATWILC and ATBTLC/ATSAMB
devices:
• Flexible Graphical User Interface (GUI) configuration Options
• Inbuilt Command Line Interpreter (CLI)
®
• Wi-Fi
RF Performance Evaluation
®
• Bluetooth
Low Energy (BLE) RF Performance Evaluation
• Continuous Wave (CW) Transmitter
• RF Frequency Offset Calibration
• e-Fuse Programming
• Register Read/Write
• Register Range Dump
• Received Signal Strength Indicator (RSSI) Reading
• Firmware (FW) Upgrade
• Gain Table Update
• Webpage Upgrade
©
2019 Microchip Technology Inc.
ATWINC/ATWILC/ATSAMB/
MCHPRT2 User Guide
®
-based software program.
User Guide
ATBTLC
DS50002893A-page 1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MCHPRT2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Microchip Technology MCHPRT2

  • Page 1: Introduction

    MCHPRT2 User Guide Introduction This document provides detailed information about the MCHPRT2 tool, which allows the user to easily configure, evaluate and test an RF system. This tool simplifies the effort during the early stage of development, regulatory certification and production testing. The MCHPRT2 tool with v1.0 is used for this ®...
  • Page 2: Table Of Contents

    5.4. Serial Port..........................103 6. Appendix C - Firmware Update................108 6.1. Firmware Update........................108 7. Appendix D - Erase and Program ATSAMB11............113 8. Appendix E - eFuse and MAC Address ..............114 User Guide DS50002893A-page 2 © 2019 Microchip Technology Inc.
  • Page 3 9. Revision History..................... 116 The Microchip Website....................117 Product Change Notification Service................117 Customer Support......................117 Microchip Devices Code Protection Feature............... 117 Legal Notice.........................118 Trademarks........................118 Quality Management System..................119 Worldwide Sales and Service..................120 User Guide DS50002893A-page 3 © 2019 Microchip Technology Inc.
  • Page 4: Prerequisite

    ATWINC/ATWILC/ATSAMB/ATBTLC Prerequisite Prerequisite This chapter provides the hardware and software prerequisites for using MCHPRT2 tool with the ATWINC/ATWILC series and ATBTLC/ATSAMB series. Hardware Prerequisites This section provides the hardware tools that are required to test the RF system. ATWINC/ATWILC is ™...
  • Page 5: Software Prerequisite

    1.2.2 MCHPRT2 GUI Tool The MCHPRT2 tool allows the user to easily configure, evaluate and test an RF system. It simplifies the effort during the early stage of development. The later sections have a detailed explanation on how the tool is used to test the RF system.
  • Page 6 – Processing: "MCHPRT" is running. 1.2.2.1 MCHPRT2 Software Architecture MCHPRT2 is a C# program using MCHPRT command line function for RF test or automation test example. The following link has an example of process function to open, send and receive the command. https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process? redirectedfrom=MSDN&view=netframework-4.7.2.
  • Page 7: Uart/I

    Pin 14 Pin 37 Pin 14 Pin 37 Note:  MCHPRT/MCHPRT2/HCI_Command tools have DTR enable or disable function on UART. For example: SAMB11 Xpro board serial port setting is different, which only supports the following conditions: serialport.DtrEnable = true; serialport.Handshake = Handshake.RequestToSend;...
  • Page 8 • VDDIO must not fall before CHIP_EN. CHIP_EN and RESETN B’ can fall simultaneously. • RESETN fall to VDDIO fall • VDDIO must not fall before RESETN. RESETN and CHIP_EN C’ can fall simultaneously. User Guide DS50002893A-page 8 © 2019 Microchip Technology Inc.
  • Page 9 For SAMB11, ensure that the steps referred in Appendix A5 Erase and Program SAMB11 are followed before establishing connection with MCHPRT2 GUI. Figure 1-7. Power-up/down Sequence (ATBTLC/ATSAMB) Note:  Pull the A0_GPIO_0 (Wake Up pin) High during the test.
  • Page 10: Hardware Setup

    • C_EN must fall before VDDIO. C_EN must be driven high or B’ low, not left floating. Hardware Setup The following figures illustrate the block diagram of the test setup using ATWINC. Figure 1-8. ATWINC1500 Hardware Setup User Guide DS50002893A-page 10 © 2019 Microchip Technology Inc.
  • Page 11 ATWINC/ATWILC/ATSAMB/ATBTLC Prerequisite Figure 1-9. ATWINC3400 Hardware Setup Figure 1-10. ATBTLC Hardware Setup Note:  AO_GPIO_0 and CHIP_EN pins to be pulled to logic HIGH as per the Power-up/down Sequence. User Guide DS50002893A-page 11 © 2019 Microchip Technology Inc.
  • Page 12 Note:  AO_GPIO_0 and CHIP_EN pins to be pulled to logic HIGH as per the Power-up/down Sequence. Prior to connecting to the GUI, follow the steps mentioned in 7. Appendix D - Erase and Program ATSAMB11. User Guide DS50002893A-page 12 © 2019 Microchip Technology Inc.
  • Page 13: Graphical User Interface

    Initialization Perform the following steps for Wi-Fi initialization. Double-click to open the MCHPRT2.exe executable file and, select the interface as “I2C” when using “I2C” connection. Select the interface as ‘UART’ when using serial bridge UART connection. Select the device from the Device series drop down box.
  • Page 14 Length (0~1024). Frames ( 0 for con’t TX mode). 10. For CW mode of transmission select the check box before Normal, to enter CW mode. 11. Click TX start to Start TX. User Guide DS50002893A-page 14 © 2019 Microchip Technology Inc.
  • Page 15 12. Click TX stop to Stop TX. Figure 2-4. Stop Tx Note:  The value that is written to amplitude and phase imbalance in the Wi-Fi tab is used for testing. It is not written into the eFuse. User Guide DS50002893A-page 15 © 2019 Microchip Technology Inc.
  • Page 16 Perform the following steps to Start RX: Navigate to the RX tab, under the Wi-Fi tab. Select the required channel from the Channel - Frequency (MHz) drop down box. Click RX start to start the receive test. User Guide DS50002893A-page 16 © 2019 Microchip Technology Inc.
  • Page 17 Click RX stop to stop receiving and the number of received packets is shown in RX packet text box. Figure 2-7. Stop RX 2.1.3.2 RX MAC Filter Control 2.1.3.2.1 Enable RX MAC Filter SA (Source) Perform the following steps to enable RX MAC filter for SA. User Guide DS50002893A-page 17 © 2019 Microchip Technology Inc.
  • Page 18 Perform the following steps to enable RX MAC filter for DA. Click the DA check box to enable RX MAC filter for DA. Click on RX start to start the RX test. User Guide DS50002893A-page 18 © 2019 Microchip Technology Inc.
  • Page 19 Perform the following steps to enable override self MAC address. Click on Self check box and input Self MAC address in the text box. Click RX start to start the RX test. Figure 2-10. Enable Override Self MAC Address User Guide DS50002893A-page 19 © 2019 Microchip Technology Inc.
  • Page 20 Click RSSI start to start receiving the signal strength displayed in the tab next to ccaRSSI. Note:  If a valid Wi-Fi packet is received, the indicator next to the ccaRSSI text box displays as selected. Figure 2-11. Start RSSI Click RSSI stop to stop measuring RSSI. User Guide DS50002893A-page 20 © 2019 Microchip Technology Inc.
  • Page 21 Navigate to Gain(winc) under Wi-Fi tab and, click Get to get the Wifi-PPA, Wifi-PA and Wifi-DG. Click Edit to change the values of PPA, PA and DG. Click Save to apply the changes. User Guide DS50002893A-page 21 © 2019 Microchip Technology Inc.
  • Page 22: Bluetooth Low Energy (Atwilc3000/Atwinc3400)

    Perform the following steps for Bluetooth initialization. Double-click on MCHPRT2.exe to open the GUI tool and select the device from the drop down box. Select the interface as “I2C” when using “I2C” connection, and as “UART” when using serial bridge UART connection.
  • Page 23 Select the COM port number and, select Baud rate as 115200. Click Open to connect to the selected COM port. Figure 2-15. Selecting COM Port To check if DTR is enabled, see 1.3 UART/I2C Pin Details User Guide DS50002893A-page 23 © 2019 Microchip Technology Inc.
  • Page 24 Select the check box next to payload drop down box, to enable CW mode. Click TX Start to start transmission. Figure 2-16. Start TX for Bluetooth 10. Click TX Stop to stop transmission. User Guide DS50002893A-page 24 © 2019 Microchip Technology Inc.
  • Page 25 Navigate to RX tab under BLE and choose the required channel from the Channel-Frequency drop down box. Click RX start to start the reception. Rx packet shows the number of successful packets received. User Guide DS50002893A-page 25 © 2019 Microchip Technology Inc.
  • Page 26 Figure 2-19. Stop Bluetooth RX Test 2.2.4 Direct Test Mode Stop all the Tx or Rx tests before starting DTM mode. After the BLE initialization, reconnect the COM port to the testing equipment. User Guide DS50002893A-page 26 © 2019 Microchip Technology Inc.
  • Page 27: Temperature Calibration Calculator

    Appendix A5 Erase and Program SAMB11 are followed before establishing connection with MCHPRT2 GUI. Double click on MCHPRT2.exe to open the GUI and select the device from the drop-down. Select the mode as BLE. Select interface as J-link. Click Connect to initialize. When the initialization is complete, the process bar status displays Ready.
  • Page 28 Type ‘115200’ as baud rate. Select DTR as disable for Microchip boards. Refer 1.3 UART/I2C Pin Details to check if DTR is enabled. Click Open to connect to COM port. Figure 2-22. Selecting COM Port User Guide DS50002893A-page 28 © 2019 Microchip Technology Inc.
  • Page 29 Select the frame length. Select the check box before payload for CW mode. Click TX Start to start the transmission. Figure 2-23. Start TX for BLE Click TX Stop to stop the transmission. User Guide DS50002893A-page 29 © 2019 Microchip Technology Inc.
  • Page 30 Navigate to RX tab under BLE and choose the desired channel from the Channel-Frequency drop- down box. Click RX Start to start the reception. RX packet shows the number of successful packets received. User Guide DS50002893A-page 30 © 2019 Microchip Technology Inc.
  • Page 31 Graphical User Interface Figure 2-25. Start Bluetooth RX Test Click RX Stop to stop the reception. Figure 2-26. Stop Bluetooth RX Test 2.4.4 Direct Test Mode After initialization, connect the COM port to testing equipment. User Guide DS50002893A-page 31 © 2019 Microchip Technology Inc.
  • Page 32: Register

    Perform the following steps to write the register values. Type the register location. Type the register value in the Register value text box. Click Write to write into the specified location. User Guide DS50002893A-page 32 © 2019 Microchip Technology Inc.
  • Page 33 Enter the start and stop registers where the register values has to be dumped under Dump- start register and Dump-stop register. Click Browse to add the sample dump file (.txt). After selecting the dump file click Dump. User Guide DS50002893A-page 33 © 2019 Microchip Technology Inc.
  • Page 34: Efuse

    After dumping the registers, the process bar indicates blue color. eFuse 2.6.1 Read Perform the following steps to read eFuse. Open MCHPRT2 GUI tool. After initialization, navigate to eFuse tab. Click Read to see the written parameters. User Guide DS50002893A-page 34 ©...
  • Page 35 The eFuse bank number automatically updates by +1. If the module is new, the bank will be Null. On first write, the bank number gets incremented by +1 until it reaches 5. (0-5 banks). User Guide DS50002893A-page 35 © 2019 Microchip Technology Inc.
  • Page 36: Firmware Upgrade

    Figure 2-31. Enable eFuse Write Figure 2-32. Enter Y Firmware Upgrade Perform the following steps to upgrade the firmware using the MCHPRT2 Tool. It is the same firmware upgrade example that is available in Atmel Studio. See 6. Appendix C - Firmware Update for details.
  • Page 37 Select the chip from the drop down menu. Select the upgrade items from the list. Click to start the firmware upgrade. Figure 2-33. FW Upgrade After the upgrade is successful, the log displays as “PASS”, see the following figure. User Guide DS50002893A-page 37 © 2019 Microchip Technology Inc.
  • Page 38 ATWINC/ATWILC/ATSAMB/ATBTLC Graphical User Interface Figure 2-34. Successful Upgrade Note:  ASF has the latest firmware. For information on how to add the upgrade file into MCHPRT2 tool folder, see the Firmware upgrade folder in MCHPRT2 package. User Guide DS50002893A-page 38 © 2019 Microchip Technology Inc.
  • Page 39: Command Line

    • 3400 – ATWINC3400 series with I2C • 3400_UART – ATWINC3400 series with UART Example MCHPRT 0 Autodetect Chip with I2C connector MCHPRT 0_UART Autodetect Chip with UART connector The following figure illustrates the Wi-Fi initialization. User Guide DS50002893A-page 39 © 2019 Microchip Technology Inc.
  • Page 40 MCHPRT 6 X Y Z A B C D L F X refers to TX channel: 1 to 14 • 1 – Channel 1 (2412 MHz) • 6 – Channel 6 (2437 MHz) • 14 – Channel 14 (2484 MHz) User Guide DS50002893A-page 40 © 2019 Microchip Technology Inc.
  • Page 41 Range: -20 to 0 DG: Dynamic Gain C refers to PA gain (Bypass mode): • ATWILC1000/ATWINC15X0 – 9, 6, 3, 0 • ATWILC3000/ATWINC3400 – 18, 15, 12, 9, 6, 3 DG: Dynamic Gain User Guide DS50002893A-page 41 © 2019 Microchip Technology Inc.
  • Page 42 Channel 1. MCS 7 – 20 MHz, length 1500, 0 ppm, offset DG – 10, PPA 6 , PA The following figure shows the example start TX test. Figure 3-2. Console Log of TX Test Mode The Wi-Fi TX mode starts as shown in the following figure. User Guide DS50002893A-page 42 © 2019 Microchip Technology Inc.
  • Page 43 MCHPRT 8 X Y Z A B C D L F X refers to TX channel: 1 to 14 • 1 – Channel 1 (2412 MHz) • 6 – Channel 6 (2437 MHz) • 14 – Channel 14 (2484 MHz) User Guide DS50002893A-page 43 © 2019 Microchip Technology Inc.
  • Page 44 Range: -20 to 0 DG: Dynamic Gain C refers to PA gain (Bypass mode): • ATWILC1000/ATWINC15X0 – 9, 6, 3, 0 • ATWILC3000/ATWINC3400 – 18, 15, 12, 9, 6, 3 DG: Dynamic Gain User Guide DS50002893A-page 44 © 2019 Microchip Technology Inc.
  • Page 45 PA 18 CW mode The following figure shows the example of start CW TX mode. Figure 3-4. Console Log of CW TX Mode The CW TX mode starts as shown in the following figure. User Guide DS50002893A-page 45 © 2019 Microchip Technology Inc.
  • Page 46 • 0 – Dynamic gain mode • 1 – Bypass gain mode (default) • 2 – Flash gain mode Example MCHPRT 11 1 Bypass mode The following figure shows the example of Gain mode. User Guide DS50002893A-page 46 © 2019 Microchip Technology Inc.
  • Page 47 The following table provides the command syntax for Stop TX test. Table 3-6. Stop TX: After Initialization and TX Start Command Syntax MCHPRT 13 Example MCHPRT 13 Stop TX The following figure shows the example of Stop TX test. User Guide DS50002893A-page 47 © 2019 Microchip Technology Inc.
  • Page 48 • 2_Self – Override self MAC address • 2_SA_DA – SA with DA • 2_Self_DA – Self with DA • 2_SA_Self – SA with Self • 2_SA_Self_DA – All MAC filter apply User Guide DS50002893A-page 48 © 2019 Microchip Technology Inc.
  • Page 49 The following figure shows the example of RX with Source MAC filter: 112233445566 in Channel 12 Start with reset the count. Figure 3-11. Console Log of RX with Source MAC Filter (Channel 12) User Guide DS50002893A-page 49 © 2019 Microchip Technology Inc.
  • Page 50 The following figure shows the example of RSSI reading once. Figure 3-14. Console Log of RSSI Reading Once 3.1.3.5 RSSI Reading in Seconds The following table provides the command syntax for RSSI reading in seconds. User Guide DS50002893A-page 50 © 2019 Microchip Technology Inc.
  • Page 51 MCHPRT 8 1 7 7 0 -10 18 6 1500 0 (Module auto reset) MCHPRT 6 1 7 7 0 -10 18 6 1500 0 (Module auto reset) MCHPRT 2 1 User Guide DS50002893A-page 51 © 2019 Microchip Technology Inc.
  • Page 52 Gain mode. This is not applicable for Bypass mode. The following figure shows the example of Digital Gain Table Printing. Figure 3-17. Console Log of Digital Gain Table Printing User Guide DS50002893A-page 52 © 2019 Microchip Technology Inc.
  • Page 53 ATWINC/ATWILC/ATSAMB/ATBTLC Command Line Figure 3-18. Console Log of Display Gain Table Printing WINC3400 User Guide DS50002893A-page 53 © 2019 Microchip Technology Inc.
  • Page 54: Bluetooth (Atwilc3000/Atwinc3400)

    • BT_DTR refers to I2C and DTR enable • BT_UART_DTR refers to UART connect and DTR enable • BT_FW refers to firmware upload X refers to the port number for Bluetooth UART User Guide DS50002893A-page 54 © 2019 Microchip Technology Inc.
  • Page 55 • BT_UART refers to UART connect • BT_DTR refers to I2C and DTR enable • BT_UART_DTR refers to UART connect and DTR enable • BT_FW refers to firmware upload Example MCHPRT BT User Guide DS50002893A-page 55 © 2019 Microchip Technology Inc.
  • Page 56 The following table provides the command syntax for Bluetooth DTM mode initialization. Table 3-17. Initialization of DTM Mode Command Syntax MCHPRT DTM init Example MCHPRT DTM init The following figure shows the example of DTM initialization. User Guide DS50002893A-page 56 © 2019 Microchip Technology Inc.
  • Page 57 The following table provides the command syntax for DTM mode exit. Table 3-18. Exit DTM Mode Command Syntax MCHPRT 9 5 Example MCHPRT 9 5 The following figure shows the example of DTM mode exit. Figure 3-23. Console Log of DTM Mode Exit User Guide DS50002893A-page 57 © 2019 Microchip Technology Inc.
  • Page 58 MCHPRT BT 1 0 37 0 -6 6 6 XO Channel 0. 0x25 length, PRBS9 DG – 10, PPA 6 , PA 6 The following figure shows the example of Bluetooth TX test mode. User Guide DS50002893A-page 58 © 2019 Microchip Technology Inc.
  • Page 59 ATWINC/ATWILC/ATSAMB/ATBTLC Command Line Figure 3-24. Console Log of Bluetooth TX Test Mode The Bluetooth TX mode starts as shown in the following figure. User Guide DS50002893A-page 59 © 2019 Microchip Technology Inc.
  • Page 60 F refers to Frequency offset : -50 to +50 base on Crystal XO : eFuse XO value Example MCHPRT BT 1 -6 6 6 XO DG – 10, PPA 6 , PA 6 User Guide DS50002893A-page 60 © 2019 Microchip Technology Inc.
  • Page 61 X refer to TX channel: 0 to 39 • 0 – Channel 0 (2402 MHz) • 39 – Channel 39 (2480 MHz) Y refers to Length: 0 – 37 • 1 – 0x1 • 37 – 0x25 User Guide DS50002893A-page 61 © 2019 Microchip Technology Inc.
  • Page 62 MCHPRT BT 2 0 37 0 -6 6 6 18 20 Channel 0. 0x25 length, PRBS9 DG – 6, PPA 6 , PA 6 CW mode The following figure shows the example of Bluetooth CW mode. User Guide DS50002893A-page 62 © 2019 Microchip Technology Inc.
  • Page 63 ATWINC/ATWILC/ATSAMB/ATBTLC Command Line Figure 3-27. Console Log of Bluetooth CW Mode The Bluetooth CW mode starts as shown in the following figure. Figure 3-28. BT CW Mode Start User Guide DS50002893A-page 63 © 2019 Microchip Technology Inc.
  • Page 64 • 39 – Channel 39 (2480 MHz) Example MCHPRT BT 3 0 RX mode in Channel 1 Start with reset the count The following figure shows the example of start Bluetooth RX test. User Guide DS50002893A-page 64 © 2019 Microchip Technology Inc.
  • Page 65: Ble (Atbtlc1000/Atsamb11)

    Figure 3-32. Console Log of BLE Deinitialization BLE (ATBTLC1000/ATSAMB11) 3.3.1 BLE Initialization The following table provides the command syntax for BLE initialization. Refer 1.3 UART/I2C Pin Details to check if DTR is enabled or not. User Guide DS50002893A-page 65 © 2019 Microchip Technology Inc.
  • Page 66 Figure 3-33. Console Log of BLE Initialization Table 3-27. Initialization without Serial Port Command Syntax MCHPRT BLE BLE_DTR refers to enable Bluetooth UART X refers to the port number for Bluetooth UART Example MCHPRT BLE User Guide DS50002893A-page 66 © 2019 Microchip Technology Inc.
  • Page 67 0: 0x00 1: 0x01 2: 0x02 3: 0x03 4: 0x04 5: 0x05 6: 0x06 7: 0x07 8: 0x08 9: 0x09 10: 0x0A 11: 0x0B.….….56: 0x29 57: 0x30 58: 0x3A 59: 0x3B60: 0x3C 61: 0x3D 62: 0x3E 63: 0x3F User Guide DS50002893A-page 67 © 2019 Microchip Technology Inc.
  • Page 68 0: 0x00 1: 0x01 2: 0x02 3: 0x03 4: 0x04 5: 0x05 6: 0x06 7: 0x07 8: 0x08 9: 0x09 10: 0x0A 11: 0x0B.….….56: 0x29 57: 0x30 58: 0x3A 59: 0x3B60: 0x3C 61: 0x3D 62: 0x3E 63: 0x3F User Guide DS50002893A-page 68 © 2019 Microchip Technology Inc.
  • Page 69 • 0 – PRBS9 • 1 – 11110000 • 2 – 10101010 • 3 – PRBS15 • 4 – 11111111 • 5 – 00000000 • 6 – 00001111 • 7 – 01010101 User Guide DS50002893A-page 69 © 2019 Microchip Technology Inc.
  • Page 70 Command Syntax MCHPRT BLE 2 X Y Z A B X refer to TX channel: 0 to 39 • 0 – Channel 0 (2402 MHz) • 39 – Channel 39 (2480 MHz) User Guide DS50002893A-page 70 © 2019 Microchip Technology Inc.
  • Page 71 • 0 – Channel 0 (2402 MHz) • 39 – Channel 39 (2480 MHz) Example MCHPRT BLE 3 0 Channel 0. RX mode start The following figure shows the example of start BLE RX test. User Guide DS50002893A-page 71 © 2019 Microchip Technology Inc.
  • Page 72 Table 3-34. BLE Deinitialization: After Initialization Command Syntax MCHPRT BT 5 Example MCHPRT BT 5 BT Deinitialization The following figure shows the example of BLE deinitialization. Figure 3-41. Console Log of BLE Deinitialization User Guide DS50002893A-page 72 © 2019 Microchip Technology Inc.
  • Page 73: Hci Command

    X refer to TX channel: 0 to 39 • 0 – Channel 0 (2402 MHz) • 39 – Channel 39 (2480 MHz) Y refers to Length: 0 – 37 • 1 – 0x1 • 37 – 0x25 User Guide DS50002893A-page 73 © 2019 Microchip Technology Inc.
  • Page 74 • 0 – Channel 0 (2402 MHz) • 39 – Channel 39 (2480 MHz) Example MCHPRT HCI 3 0 Channel 0. RX mode start The following figure shows the example of start HCI RX test. User Guide DS50002893A-page 74 © 2019 Microchip Technology Inc.
  • Page 75 Command Syntax MCHPRT HCI 6 Example MCHPRT HCI 6 Print out the reply The following figure shows the example of HCI UART initialization command. Figure 3-46. Console Log of HCI UART Init Command User Guide DS50002893A-page 75 © 2019 Microchip Technology Inc.
  • Page 76: Register

    X refers to register number which reads and print value Example MCHPRT REGR 0 Reg 0 value will be printed The following figure shows the example of reg value read before initialization. User Guide DS50002893A-page 76 © 2019 Microchip Technology Inc.
  • Page 77 X refers to register number which reads and print the value Example MCHPRT 16 REGR 0 Reg 0 value will be printed The following figure shows the example of reg value read after initialization. User Guide DS50002893A-page 77 © 2019 Microchip Technology Inc.
  • Page 78 Y refers to write register value which writes the register value Example MCHPRT REGW 0 8 Reg 0 value will change to 8 The following figure shows the example of reg value write before initialization. User Guide DS50002893A-page 78 © 2019 Microchip Technology Inc.
  • Page 79 • REGD refers to using I2C • REGD_UART refers to using UART X refers to register number which reads the register value Y refers to stop register number which reads the register value User Guide DS50002893A-page 79 © 2019 Microchip Technology Inc.
  • Page 80 MCHPRT 16 REGD 0 10 test.txt Report the RX RSSI reading in 10 sec The following figure shows the example of reg value dump after initialization. Figure 3-53. Console Log of Reg Value Dump After Initialization User Guide DS50002893A-page 80 © 2019 Microchip Technology Inc.
  • Page 81: Efuse (Atwinc/Atwilc)

    The following figure shows the example of read eFuse before initialization. Figure 3-55. Console Log of Read eFuse Before Initialization The following table provides the command syntax for read eFuse after initialization. User Guide DS50002893A-page 81 © 2019 Microchip Technology Inc.
  • Page 82 The following figure shows the example of read eFuse after initialization. Figure 3-56. Console Log of Read eFuse After Initialization 3.6.2 Write 3.6.2.1 Write MAC ID Only The following table provides the command syntax for write MAC ID only. User Guide DS50002893A-page 82 © 2019 Microchip Technology Inc.
  • Page 83 Figure 3-57. Console Log of Write MAC ID for eFuse 3.6.2.2 Write MAC ID Information The following table provides the command syntax for write MAC ID and frequency offset only before initialization. User Guide DS50002893A-page 83 © 2019 Microchip Technology Inc.
  • Page 84 If "TEMP" is given as input then it disables efuse temperature calibration Temperature calibration enable 0: disable 1: enable If "TEMP" is given as input then it disables efuse temperature calibration User Guide DS50002893A-page 84 © 2019 Microchip Technology Inc.
  • Page 85 Y refers to frequency offset value A refers to IQ imbalance amplitude correction value. Give the value as "0". The current WILC/WINC firmware doesn’t support this feature, it is for future reservation. User Guide DS50002893A-page 85 © 2019 Microchip Technology Inc.
  • Page 86 Amplitude enableReal Phase correction value 0 Amplitude enableReal Temperature calibration value 86 Temperature calibration Enable The following figure shows the example of write MAC ID and frequency offset in eFuse after initialization. User Guide DS50002893A-page 86 © 2019 Microchip Technology Inc.
  • Page 87: Efuse Atbtlc/Atsamb

    MAC ID by JLink Example MCHPRT BLE r eFuse information display The following figure shows the example of read eFuse before initialization. Figure 3-60. Console Log of Read eFuse Before Initialization User Guide DS50002893A-page 87 © 2019 Microchip Technology Inc.
  • Page 88 The following table provides the command syntax for write MAC ID only. Table 3-54. Write MAC ID in eFuse: Before Initialization Command Syntax MCHPRT BLE XXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXX refers to MAC ID User Guide DS50002893A-page 88 © 2019 Microchip Technology Inc.
  • Page 89: Firmware Upgrade

    • Upgrade_1500 - ATWINC1500 FW upgrade • Upgrade_3400 - ATWINC3400 FW upgrade Example Upgarde_1500 ATWINC1500 FW upgrade starts and when completes it shows “PASS” The following figure shows the example of firmware upgrade. User Guide DS50002893A-page 89 © 2019 Microchip Technology Inc.
  • Page 90 • Upgrade_3400_Gain - ATWINC3400 FW upgrade Example Upgarde_1500_Gain ATWINC1500 FW upgrade starts and when completes it closes the command line The following figure shows the example of firmware upgrade (gain table). User Guide DS50002893A-page 90 © 2019 Microchip Technology Inc.
  • Page 91 Upgrade_1500_provisioning webpage/ Upgrade_3400_provisioning_webpage Syntax X refers to Antenna • Upgrade_1500_provisioning_webpage - ATWINC1500 • Upgrade_3400_provisioning_webpage - ATWINC3400 Example Upgarde_1500_provisioning_webpage ATWINC1500 webpage update The following figure shows the example of firmware upgrade (provisioning webpage). User Guide DS50002893A-page 91 © 2019 Microchip Technology Inc.
  • Page 92 Command Line Figure 3-64. Console Log of Firmware Upgrade (Provisioning Webpage) Note:  ASF has the latest firmware. See Firmware upgrade folder in MCHPRT2 package, for information on how to add the upgrade file into MCHPRT2 tool folder. Important:  Before the Firmware upgrade, update the Firmware file in the following folder: •...
  • Page 93 • Upgrade_1000_gain - ATWILC1000 FW upgrade • Upgrade_3000_gain - ATWILC3000 FW upgrade Example Upgarde_1000_gain Target file will upgrade with new gain table The following figures illustrate the example of firmware upgrade. User Guide DS50002893A-page 93 © 2019 Microchip Technology Inc.
  • Page 94 ATWINC/ATWILC/ATSAMB/ATBTLC Command Line Figure 3-67. Console Log of Firmware Upgrade using ATWILC1000 User Guide DS50002893A-page 94 © 2019 Microchip Technology Inc.
  • Page 95 ATWINC/ATWILC/ATSAMB/ATBTLC Command Line Figure 3-68. Console Log of Firmware Upgrade using ATWILC3000 User Guide DS50002893A-page 95 © 2019 Microchip Technology Inc.
  • Page 96: Appendix A - Python ® Example

    # Send command to stop RX and printing recevied package information, command informaiton please help to check application note child.stdin.write("MCHPRT 4\n") # Send command to close MCHPRT, command informaiton please help to check application note print child.stdout.read() child.stdin.close() User Guide DS50002893A-page 96 © 2019 Microchip Technology Inc.
  • Page 97 ATWINC/ATWILC/ATSAMB/ATBTLC ® Appendix A - Python Example child.kill() print("--- %s seconds ---" % (time.time() - start_time)) #--- 7.08999991417 seconds --- Figure 4-1. Log when the script is run: User Guide DS50002893A-page 97 © 2019 Microchip Technology Inc.
  • Page 98: Appendix B - Hci Command Tools

    Perform the following steps for HCI initialization. Click rescan button to scan the serial port in PC. Select the COM Port. Select the Baud Rate. Click Open to open the Serial port for communication. User Guide DS50002893A-page 98 © 2019 Microchip Technology Inc.
  • Page 99: Hci Command

    Select the baud rate as Custom and then DTR is enabled. Select DTR check box. Figure 5-3. Enable DTR HCI Command After the initialization of the Serial port connection, the button will change to “Close”. Figure 5-4. Serial Port Initialization User Guide DS50002893A-page 99 © 2019 Microchip Technology Inc.
  • Page 100 The sent and received HCI command is shown in the log. Yellow represents the sent command [Hex] and Green represents the received command [Hex]. Figure 5-6. Sent/Received HCI Command Click TX Stop to send TX stop command. User Guide DS50002893A-page 100 © 2019 Microchip Technology Inc.
  • Page 101 Click RX Start to send the RX HCI command. Figure 5-8. Start RX The sent and received HCI command is shown in the log. Yellow represents the sent command [Hex] and Green represents the received command [Hex]. User Guide DS50002893A-page 101 © 2019 Microchip Technology Inc.
  • Page 102: Uart Initialization

    Click RX Stop to send RX stop command and the received package number is shown in Received text box. Figure 5-10. Stop RX UART Initialization To enable the UART command, click UART init. Then send the UART command (0x01, 0x03, 0x0c, 0x00). User Guide DS50002893A-page 102 © 2019 Microchip Technology Inc.
  • Page 103: Serial Port

    Perform the following steps for Hexadecimal communication. Enter the Hex command in the text box. Then double-click the input type display until “H” is shown. Click ˄ to send the Hex command input manually. User Guide DS50002893A-page 103 © 2019 Microchip Technology Inc.
  • Page 104 Provide the Hexadecimal input with 1 byte (Min: 00, Max: FF). For example: 01 1E 20 03 00 00 00 Figure 5-15. Error Detected in Input 5.4.2 Decimal Input Hexadecimal Communication Perform the following steps for Decimal input Hexadecimal communication. User Guide DS50002893A-page 104 © 2019 Microchip Technology Inc.
  • Page 105 [Hex] and Green represents the received command [Hex]. Figure 5-17. Sent/Received Command Provide the Hexadecimal input with 1 byte (Min: 00, Max: FF). For example: 01 1E 20 03 00 00 00 Figure 5-18. Error Detected in Input User Guide DS50002893A-page 105 © 2019 Microchip Technology Inc.
  • Page 106 [String] and Gold represents the received command [String]. Figure 5-21. Sent/Received String Command 5.4.4 Perform the following steps for String communication. Double-click the log display, to select the location to save the file. User Guide DS50002893A-page 106 © 2019 Microchip Technology Inc.
  • Page 107 ATWINC/ATWILC/ATSAMB/ATBTLC Appendix B - HCI Command Tools Figure 5-22. Saving the Log File Select the log location and file name and then click Save. Figure 5-23. Save Text Files User Guide DS50002893A-page 107 © 2019 Microchip Technology Inc.
  • Page 108: Appendix C - Firmware Update

    Framework (ASF). The following figure shows firmware update example application in Atmel Studio ASF. Figure 6-1. Firmware Update Folder in ASF The following figure shows the firmware update folder in MCHPRT2 tool Figure 6-2. Firmware Update Folder in MCHPRT Tool User Guide DS50002893A-page 108 ©...
  • Page 109 6.1.1 Firmware/Gain Table Example in MCHPRT2 Package MCHPRT2 GUI Tool uses the batch file to use the ASF Firmware example project in MCHPRT2 Package. Figure 6-3. Example for bat File The following figure shows the details information of what is present in the bat file.
  • Page 110 :contine_I2C // update module gain table to samd21_gain_setting_hp.csv value by I2C cd upgrade_1500\firmware\Tools\gain_builder\debug_I2C gain_builder -hp ../gain_sheets/samd21_gain_setting_hp.csv -port 0 <nul exit :contine_UART // update module gain table to samd21_gain_setting_hp.csv value by UART cd upgrade_1500\firmware\Tools\gain_builder\debug_UART User Guide DS50002893A-page 110 © 2019 Microchip Technology Inc.
  • Page 111 6.1.2 Firmware Upgrade Folder in MCHPRT2 Package The folder that is present in MCHPRT2 package can be updated from the firmware update project that is available in Atmel Studio ASF. Folder information: • upgrade_1000 WILC1000 – gain table upgrade file example •...
  • Page 112 (same as in ASF version 3.40.0): The following figure shows the files that are present in the upgrade_3400. The files are same as the firmware update example project that is available in the ASF. Figure 6-7. Files in upgrade_3400 Folder User Guide DS50002893A-page 112 © 2019 Microchip Technology Inc.
  • Page 113: Appendix D - Erase And Program Atsamb11

    Appendix D - Erase and Program ATSAMB11 Follow the below steps before connecting to MCHPRT2 GUI to ensure reliable connection. Unzip the contents of Tools.7z, available in MCHPRT2 release package. Use 7zip archive tool to unzip the contents. Connect the SAM-ICE to SWD interface of SAMB11.
  • Page 114: Appendix E - Efuse And Mac Address

    ATWINC/ATWILC/ATBTLC/ATSAMB. The API's that are mentioned below are used to write the MAC address in the volatile memory from the Host. These API's cannot be used to write the MAC Address in the e-fuse. Figure 8-1. ATWILC/ATWINC User Guide DS50002893A-page 114 © 2019 Microchip Technology Inc.
  • Page 115 Wi-Fi and BLE MAC ID: For combo devices such as ATWINC/ATWILC, the BLE address is set automatically by incrementing the Wi-Fi MAC address by 1. It is recommended to write only EVEN Wi-Fi MAC addresses. User Guide DS50002893A-page 115 © 2019 Microchip Technology Inc.
  • Page 116: Revision History

    ATWINC/ATWILC/ATSAMB/ATBTLC Revision History Revision History Revision Date Section Description 07/2019 Initial Revision User Guide DS50002893A-page 116 © 2019 Microchip Technology Inc.
  • Page 117: The Microchip Website

    • Microchip is willing to work with the customer who is concerned about the integrity of their code. • Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” User Guide DS50002893A-page 117 © 2019 Microchip Technology Inc.
  • Page 118: Legal Notice

    PICSTART, PIC32 logo, PolarFire, Prochip Designer, QTouch, SAM-BA, SenGenuity, SpyNIC, SST, SST Logo, SuperFlash, Symmetricom, SyncServer, Tachyon, TempTrackr, TimeSource, tinyAVR, UNI/O, Vectron, and XMEGA are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. APT, ClockWorks, The Embedded Control Solutions Company, EtherSynch, FlashTec, Hyper Speed...
  • Page 119: Quality Management System

    ATWINC/ATWILC/ATSAMB/ATBTLC GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. © 2019, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
  • Page 120: Worldwide Sales And Service

    New York, NY Tel: 46-31-704-60-40 Tel: 631-435-6000 Sweden - Stockholm San Jose, CA Tel: 46-8-5090-4654 Tel: 408-735-9110 UK - Wokingham Tel: 408-436-4270 Tel: 44-118-921-5800 Canada - Toronto Fax: 44-118-921-5820 Tel: 905-695-1980 Fax: 905-695-2078 User Guide DS50002893A-page 120 © 2019 Microchip Technology Inc.

Table of Contents