|
| 1 | +.. _sparkfun_thing_plus_mgm240p: |
| 2 | + |
| 3 | +SPARKFUN THING PLUS MATTER |
| 4 | +########################### |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The MGM240P Mighty Sparkfun Think Plus Matter contains |
| 10 | +a Wireless System-On-Chip from the EFR32MG24 family built on an |
| 11 | +ARM Cortex®-M33F processor with excellent low power capabilities. |
| 12 | + |
| 13 | +.. figure:: ./img/MGM240P_Thing_Plus.jpg |
| 14 | + :height: 260px |
| 15 | + :align: center |
| 16 | + :alt: MGM240P Sparkfun Think Plus Matter |
| 17 | + |
| 18 | + xG24-MGM240P (image courtesy of Sparkfun) |
| 19 | + |
| 20 | +Hardware |
| 21 | +******** |
| 22 | + |
| 23 | +- Based on the Series 2 EFR32MG24 SoC |
| 24 | +- CPU core: 32-bit ARM® Cortex®-M33 core at 39 MHz |
| 25 | +- Flash memory: 1536 kB |
| 26 | +- RAM: 256 kB |
| 27 | +- Supports Multiple 802.15.4 Wireless Protocols (Zigbee and OpenThread) |
| 28 | +- Bluetooth Low Energy 5.3 |
| 29 | +- Crystals for LFXO (32 kHz) and HFXO (39 MHz). |
| 30 | + |
| 31 | +For more information about the EFR32MG24 SoC and BRD2601B board, refer to these |
| 32 | +documents: |
| 33 | + |
| 34 | +- `EFR32MG24 Website`_ |
| 35 | +- `EFR32MG24 Datasheet`_ |
| 36 | +- `EFR32xG24 Reference Manual`_ |
| 37 | +- `MGM240P Datasheet`_ |
| 38 | +- `MGM240P Schematics`_ |
| 39 | + |
| 40 | +Supported Features |
| 41 | +================== |
| 42 | + |
| 43 | +The board configuration supports the following hardware features: |
| 44 | + |
| 45 | ++-----------+------------+-------------------------------------+ |
| 46 | +| Interface | Controller | Driver/Component | |
| 47 | ++===========+============+=====================================+ |
| 48 | +| COUNTER | on-chip | stimer | |
| 49 | ++-----------+------------+-------------------------------------+ |
| 50 | +| FLASH | on-chip | flash memory | |
| 51 | ++-----------+------------+-------------------------------------+ |
| 52 | +| GPIO | on-chip | gpio | |
| 53 | ++-----------+------------+-------------------------------------+ |
| 54 | +| UART | on-chip | serial | |
| 55 | ++-----------+------------+-------------------------------------+ |
| 56 | +| TRNG | on-chip | semailbox | |
| 57 | ++-----------+------------+-------------------------------------+ |
| 58 | +| WATCHDOG | on-chip | watchdog | |
| 59 | ++-----------+------------+-------------------------------------+ |
| 60 | +| I2C(M/S) | on-chip | i2c | |
| 61 | ++-----------+------------+-------------------------------------+ |
| 62 | +| RADIO | on-chip | bluetooth | |
| 63 | ++-----------+------------+-------------------------------------+ |
| 64 | + |
| 65 | +Other hardware features are currently not supported by the port. |
| 66 | + |
| 67 | +Connections and IOs |
| 68 | +=================== |
| 69 | + |
| 70 | +In the following table, the column **Name** contains Pin names. For example, PA2 |
| 71 | +means Pin number 2 on PORTA, as used in the board's datasheets and manuals. |
| 72 | + |
| 73 | ++-------+-------------+-------------------------------------+ |
| 74 | +| Name | Function | Usage | |
| 75 | ++=======+=============+=====================================+ |
| 76 | +| PA8 | GPIO | LED0 | |
| 77 | ++-------+-------------+-------------------------------------+ |
| 78 | +| PA5 | USART0_TX | UART Console EFM_BC_TX US0_TX | |
| 79 | ++-------+-------------+-------------------------------------+ |
| 80 | +| PA6 | USART0_RX | UART Console EFM_BC_RX US0_RX | |
| 81 | ++-------+-------------+-------------------------------------+ |
| 82 | + |
| 83 | +The default configuration can be found in |
| 84 | +:zephyr_file:`boards/silabs/sparkfun_thing_plus_mgm240p/sparkfun_thing_plus_mgm240p_defconfig` |
| 85 | + |
| 86 | +System Clock |
| 87 | +============ |
| 88 | + |
| 89 | +The EFR32MG24 SoC is configured to use the 39 MHz external oscillator on the |
| 90 | +board. |
| 91 | + |
| 92 | +Serial Port |
| 93 | +=========== |
| 94 | + |
| 95 | +The EFR32MG24 SoC has one USART and two EUSARTs. |
| 96 | +USART0 is connected to the board controller and is used for the console. |
| 97 | + |
| 98 | +Programming and Debugging |
| 99 | +************************* |
| 100 | + |
| 101 | +.. note:: |
| 102 | + Before using the kit the first time, you should update the J-Link firmware |
| 103 | + from `J-Link-Downloads`_ |
| 104 | + |
| 105 | +Flashing |
| 106 | +======== |
| 107 | + |
| 108 | +The sample application :ref:`hello_world` is used for this example. |
| 109 | +Build the Zephyr kernel and application: |
| 110 | + |
| 111 | +.. zephyr-app-commands:: |
| 112 | + :zephyr-app: samples/hello_world |
| 113 | + :board: sparkfun_thing_plus_mgm240p |
| 114 | + :goals: build |
| 115 | + |
| 116 | +Connect the sparkfun_thing_plus_mgm240p to your host computer using the USB port and you |
| 117 | +should see a USB connection. |
| 118 | + |
| 119 | +Open a serial terminal (minicom, putty, etc.) with the following settings: |
| 120 | + |
| 121 | +- Speed: 115200 |
| 122 | +- Data: 8 bits |
| 123 | +- Parity: None |
| 124 | +- Stop bits: 1 |
| 125 | + |
| 126 | +Reset the board and you'll see the following message on the corresponding serial port |
| 127 | +terminal session: |
| 128 | + |
| 129 | +.. code-block:: console |
| 130 | +
|
| 131 | + Hello World! _sparkfun_thing_plus_mgm240p |
| 132 | +
|
| 133 | +Bluetooth |
| 134 | +========= |
| 135 | + |
| 136 | +To use the BLE function, run the command below to retrieve necessary binary |
| 137 | +blobs from the SiLabs HAL repository. |
| 138 | + |
| 139 | +.. code-block:: console |
| 140 | +
|
| 141 | + west blobs fetch silabs |
| 142 | +
|
| 143 | +Then build the Zephyr kernel and a Bluetooth sample with the following |
| 144 | +command. The :ref:`bluetooth-observer-sample` sample application is used in |
| 145 | +this example. |
| 146 | + |
| 147 | +.. zephyr-app-commands:: |
| 148 | + :zephyr-app: samples/bluetooth/observer |
| 149 | + :board: sparkfun_thing_plus_mgm240p |
| 150 | + :goals: build |
| 151 | + |
| 152 | +.. _EFR32MG24 Website: |
| 153 | + https://www.silabs.com/wireless/zigbee/efr32mg24-series-2-socs# |
| 154 | + |
| 155 | +.. _EFR32MG24 Datasheet: |
| 156 | + https://www.silabs.com/documents/public/data-sheets/efr32mg24-datasheet.pdf |
| 157 | + |
| 158 | +.. _EFR32xG24 Reference Manual: |
| 159 | + https://www.silabs.com/documents/public/reference-manuals/efr32xg24-rm.pdf |
| 160 | + |
| 161 | +.. _MGM240P Datasheet: |
| 162 | + https://cdn.sparkfun.com/assets/1/4/5/e/5/MGM240P-Datasheet.pdf |
| 163 | + |
| 164 | +.. _MGM240P Schematics: |
| 165 | + https://cdn.sparkfun.com/assets/0/f/8/4/9/Thing_Plus_MGM240P.pdf |
| 166 | + |
| 167 | +.. _J-Link-Downloads: |
| 168 | + https://www.segger.com/downloads/jlink |
0 commit comments