Difference between revisions of "WISE-1530 SDK"
Erick.huang (talk | contribs) |
Erick.huang (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | = Overview = | ||
+ | |||
+ | *Use C/C++ language Runs on Windows<sup>®</sup>, Mac<sup>®</sup> OS X<sup>®</sup>, and Linux<sup>®</sup> through Eclipse<sup>®</sup>-based integrated development environment (IDE) | ||
+ | *Single installer package with support for: | ||
+ | **Wi-Fi + Bluetooth combo solution | ||
+ | **Wi-Fi solutions | ||
+ | **Bluetooth (Basic Rate, Enhanced Data Rate and Bluetooth Low Energy) | ||
+ | |||
+ | *Sample applications for many popular use cases like | ||
+ | **Connecting to cloud services | ||
+ | **Audio-over-Bluetooth/Wi-Fi | ||
+ | **Low-power BLE-based sensors and beacons | ||
+ | **Smart home gateways | ||
+ | |||
= Setup Development Environment = | = Setup Development Environment = | ||
Line 128: | Line 142: | ||
#Application: snip.gpio-WISE_1530.bin | #Application: snip.gpio-WISE_1530.bin | ||
− | [[File:WICED 3-bin files v02.png]] | + | [[File:WICED 3-bin files v02.png|RTENOTITLE]] |
Download and install [https://www.segger.com/downloads/jlink/JLink_Windows_V616j.exe J-Link] software, we need J-Flash tool to combine three bin files for programming. | Download and install [https://www.segger.com/downloads/jlink/JLink_Windows_V616j.exe J-Link] software, we need J-Flash tool to combine three bin files for programming. | ||
Line 138: | Line 152: | ||
=== Open bootloader bin file === | === Open bootloader bin file === | ||
− | [[File:WISE-1530 J-Flash bootloader v02.png]] | + | [[File:WISE-1530 J-Flash bootloader v02.png|RTENOTITLE]] |
=== Merge DCT bin file === | === Merge DCT bin file === | ||
− | [[File:WISE-1530 J-Flash DCT v02.png]] | + | [[File:WISE-1530 J-Flash DCT v02.png|RTENOTITLE]] |
=== Merge application bin file === | === Merge application bin file === | ||
− | [[File:WISE-1530 J-Flash Application v02.png]] | + | [[File:WISE-1530 J-Flash Application v02.png|RTENOTITLE]] |
=== Save as a final bin file === | === Save as a final bin file === | ||
− | [[File:WISE-1530 J-Flash Save-as v02.png]] | + | [[File:WISE-1530 J-Flash Save-as v02.png|RTENOTITLE]] |
== Programming == | == Programming == |
Revision as of 15:12, 14 August 2017
Contents
Overview
- Use C/C++ language Runs on Windows®, Mac® OS X®, and Linux® through Eclipse®-based integrated development environment (IDE)
- Single installer package with support for:
- Wi-Fi + Bluetooth combo solution
- Wi-Fi solutions
- Bluetooth (Basic Rate, Enhanced Data Rate and Bluetooth Low Energy)
- Sample applications for many popular use cases like
- Connecting to cloud services
- Audio-over-Bluetooth/Wi-Fi
- Low-power BLE-based sensors and beacons
- Smart home gateways
Setup Development Environment
Preparing for Hardware
The user needs to prepare for hardware as following:
- WISE-1530, WISE-1500 and WISE-ED22.
- 802.11b/g/n (2.4 GHz) Wireless Access Point (AP).
- PC running the Microsoft Windows 7 operating systems
Please refer to the following steps for setup a WISE series of boards before using WISE-1520.
Step01: Please prepare boards as below.
① WISE-1530
② WISE-1500
③ WISE-ED22
④ WISE-ED22 reset button
⑤ CN2 on WISE-1500
⑥ SW3 on WISE-1500
- Pleas check pin1 and pin2 to “OFF” as default.
- Switch pin2 to decide whether running “backup to default” while device
booting. “ON”: enabled, “OFF”: disable
⑦ WISE-1530 reset button, one button on WISE-1500 and the other on WISE-ED22
⑧ Micro USB connector
- Drag-n-drop programming
- Serial port and debugging
- Power supplies for UART1 debug port
⑨ RF connector
Step02: Connect the WISE-ED22 to PC using micro-USB cable.
- Install Driver ( Download latest driver )
- The device will be visible in the Device Manager as below, user can use serial tools (putty, tera term ...etc.) to key-in command.
WICED Studio
The user can refer to the following steps for setup WICED Studio with WISE-1530 SDK.
Windows Install
- Download WICED-Studio-4.1.1.8-IDE-Installer.exe.zip
- Extract the installer exe from the zip file to temp folder on your computer; do not execute the installer from the zip file
- Double click the installer exe to install WICED Studio as below picture
- After installation in completed, launch WICED Studio IDE from shortcut on desktop
- When you see the Select WICED Platform page, choose the 43xxx_Wi-Fi item. You can change in "WICED Platform" in SDK toolbar also.
Copy patch file
- Download and unzip WISE-1530_SDK_4.1.8_platform_patch.zip
- Copy platforms and WICED folders to <SDK folder>\43xxx_Wi-Fi\ and select replace
Build Source File
Make a "Make Target" file
Step1: In Make Target window click mouse right button
Step2: Select New...
Step3: Type "snip.gpio-WISE_1530"
Field explanation: snip.gpio-WISE_1530
- snip.gpio: application project name
- WISE_1530: platform name, for WISE-1530 platform don't change this field
Build Project
Double click "Make Target" file to build project.
It is build complete when you see below
Generate a Programming File
It will generate three bin files in <SDK folder>\43xxx_Wi-Fi\build folder when build complete.
- Bootloader: waf.bootloader-NoOS-WISE_1530.bin
- DCT( Device Configuration Table): DCT.bin:
- Application: snip.gpio-WISE_1530.bin
Download and install J-Link software, we need J-Flash tool to combine three bin files for programming.
Launch J-Flash
Open bootloader bin file
Merge DCT bin file
Merge application bin file
Save as a final bin file
Programming
Generate a programming file then use WISE-ED22 to program WISE-1530. User can refer WISE-ED22 Drag-n-drop Programming section.