Wi-Fi example for Mbed OS
- SDT64B with SDT3976C
- SDT32620B with SDT3976C
- SDT32625B with SDT3976C
From the command-line, import the example:
mbed import https://github.com/SigmaDeltaTechnologiesInc/SDT-example-wifi
cd SDT-example-wifi
Invoke mbed compile
, and specify the name of your favorite toolchain (GCC_ARM
, ARM
, IAR
) and your platform.
For example, for the GCC_ARM and SDT64B:
mbed compile -t GCC_ARM -m SDT64B
Your PC may take a few minutes to compile your code. At the end, you see the following result:
[snip]
+------------------+-------+-------+------+
| Module | .text | .data | .bss |
+------------------+-------+-------+------+
| [fill] | 112 | 4 | 2496 |
| [lib]\c.a | 31907 | 2472 | 89 |
| [lib]\gcc.a | 3168 | 0 | 0 |
| [lib]\misc | 248 | 8 | 28 |
| [lib]\nosys.a | 32 | 0 | 0 |
| main.o | 314 | 0 | 372 |
| mbed-os\drivers | 1197 | 0 | 0 |
| mbed-os\features | 42 | 0 | 184 |
| mbed-os\hal | 1669 | 4 | 68 |
| mbed-os\platform | 4503 | 260 | 217 |
| mbed-os\rtos | 8946 | 168 | 6073 |
| mbed-os\targets | 9153 | 12 | 409 |
| Subtotals | 61291 | 2928 | 9936 |
+------------------+-------+-------+------+
Total Static RAM memory (data + bss): 12864 bytes
Total Flash memory (text + data): 64219 bytes
Image: .\BUILD\SDT64B\GCC_ARM\SDT-example-wifi.bin
- Connect your mbed device to the computer over USB.
- Copy the binary file(SDT-example-wifi.bin) to the mbed device.
- Press the reset button to start the program.
The LED on your platform turns on and off.
If you have problems, you can review the documentation for suggestions on what could be wrong and how to fix it.