Skip to content

CW Getting Started

jaenrig-ifx edited this page Aug 4, 2020 · 3 revisions

Overview

In this quick tutorial we will explain how to use the Hall Switch library together with the Cypress WICED SDK, compile the provided example, and execute it for the TLE4964-3M Shield 2Go and the CYW943907AEVAL1F Evaluation Kit.

Required Hardware

Name Picture
TLE4964-3M Shield 2Go
CYW943907AEVAL1F Evaluation Kit
Magnet (included with the Shield 2Go)
Pin headers (included with the boards)
Jumple cables
Micro-USB to USB A cable

Required Software

Tutorial

Software Installation

  1. Install WICED Studio. Download the software and follow the instructions in the following website. Registration is required.

  2. Install PuTTY. Downloadable from the official website.

  3. Install the Hall Switch lib. Follow the steps in the WICED Lib Installation section.

Hardware Setup

Connect the Shield 2Go and the CYW943907AEVAL1F Eval Kit as show in the picture:

Silk screen marking:

S2Go Pin CYW943907AEVAL1F Pin
GND GND
3V3 3.3V
INT/GPIO3 2

Then, simply connect the Eval Kit to the computer with the USB cable.

⚠️ The CYW943907AEVAL1F Eval Kit is not compatible with the MyIOT adapter. Although the board complies with the Arduino UNO hardware connector form factor, not some of its electrical signals. In this case, the 5V signal is not allocated to the correspondin pin, thus power cannot be provided to the sensor shield.

Ready To Go!

With the hardware connected, the software installed, and the several bugs fixing changes made to the SDK, the example can be finally built and run:

  1. Open the snip example (apps/snip/hall_switch) and enable interrupt or polling mode.

    #define EXAMPLE_POLLING_ENABLED    0       /**< Polling mode example */
    #define EXAMPLE_INTERRUPT_ENABLED  1       /**< Interrupt mode example */
    
  2. Open the PuTTY serial terminal with 115200 baud, 8-N-1, and the appropriate COM port (or tty device).

  3. Create target "snip.hall_switch-CYW943907AEVAL1F download run" and click on it.

    The terminal will soon prompt the Hall Switch ready message. Just use the magnet to try the sensor out :)