# Hello World and LED Blinking

## Hello World and LED Blinking Programming

This lab will guide you through the process of using the PSOC Infineon board with the Eclipse IDE for ModusToolbox. You will learn how to create, build, and launch application programs. By the end of this lab, you will be able to independently perform these tasks.

### 🔥 Requirements

| Resources                            | Links                                                                                                                                                                        |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Computer                             | 💻                                                                                                                                                                           |
| ModusToolbox™ software v3.0 or later | [Link](https://www.infineon.com/modustoolbox)                                                                                                                                |
| CY8CKIT-062S2-43012 Infineon Board   | [Link](https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/0215501d-b774-4045-8e64-ef49e28d8404) |
| Technical Report                     | [dropbox](https://www.dropbox.com/scl/fi/amaxc94pte0ut2i1r5ewx/Technical-Report-Lab00.paper?rlkey=b3xm3vrerz9xgv1glb30cvy9z\&dl=0)                                           |

### 🚩 Let start

* 👉 Open Eclipse IDE ModusToolbox

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FFnaNFVYTItF8MEbbDAtZ%2Fimage.png?alt=media&#x26;token=d056f027-edaa-4dd8-a4a3-013661553d75" alt=""><figcaption><p>Modus Toolbox GUI</p></figcaption></figure>

<figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/276b5ee3-7752-488c-baa7-3b55f6615b27" alt=""><figcaption></figcaption></figure>

* 👉 Select Board<br>

  <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/df637b74-1bee-4c0c-9bdc-4b70d7f0cee8" alt="" width="563"><figcaption></figcaption></figure>
* 👉 Select Application<br>

  <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/3df6fbb2-eea7-4f1b-b09b-36d88f10ad2f" alt="" width="563"><figcaption></figcaption></figure>
* 👉 Build Application<br>

  <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/7c230ae2-b6ec-4acc-9713-9cb6325c834d" alt="" width="563"><figcaption></figcaption></figure>
* 👉 Launching Program
  * Before launching the program to the board, make sure that you have already connected the board to the computer through USB cable.<br>

    <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/7a6bb6ef-cb63-4613-98a1-42f9617ad724" alt="" width="375"><figcaption></figcaption></figure>
  * Launching Program<br>

    <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/e95bb346-1205-4e5f-a6d6-20ee60a2cd1d" alt="" width="563"><figcaption></figcaption></figure>
* 👉 Serial Terminal Setup
  * Download and Install Putty

    [Download link](https://www.putty.org/)&#x20;

    <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/d199b0a6-034b-4259-9662-5bd264aa5cd9" alt=""><figcaption></figcaption></figure>
  * After Install the Putty now let follow the below
    * Open `Device Manager` and check COM Port&#x20;

      <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/5ffc6e53-aa99-4be4-a8f6-b945c4ecc21a" alt="" width="563"><figcaption></figcaption></figure>
    * Open Putty and Setup as below:
      * Select `Serial`
      * Serial line `COM_`
      * Speed `115200`
      * Click `Open`<br>

        <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/aa8f838a-743b-4b5a-bd4f-ab5c2b951afa" alt="" width="375"><figcaption></figcaption></figure>
* 👉 Check the Result
  * You will see `Hello World!!!` on the serial terminal.<br>

    <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/2eb45911-1df7-4581-9e73-2e79c28364a5" alt="" width="563"><figcaption></figcaption></figure>
  * LED Blinking<br>

    <figure><img src="https://github.com/Advance-Innovation-Centre-AIC/BIIL_MTB-100_Hello_World_and_LED_Blinking_Programming_Template/assets/88732241/e43ee093-c57b-4d65-81a2-e8326e729b74" alt="" width="563"><figcaption><p>LED Blinking</p></figcaption></figure>

#### 🎉 Congratulations! You can now complete Lab100 by creating, building, and launching the application program.

***

### Supported toolchains (make variable 'TOOLCHAIN')

* GNU Arm® embedded compiler v10.3.1 (`GCC_ARM`) - Default value of `TOOLCHAIN`
* Arm® compiler v6.16 (`ARM`)
* IAR C/C++ compiler v9.30.1 (`IAR`)

### Supported kits (make variable 'TARGET')

* [PSoC™ 62S2 Wi-Fi Bluetooth® pioneer kit](https://www.infineon.com/CY8CKIT-062S2-43012) (`CY8CKIT-062S2-43012`)
* [PSoC™ 62S1 Wi-Fi Bluetooth® pioneer kit](https://www.infineon.com/CYW9P62S1-43438EVB-01) (`CYW9P62S1-43438EVB-01`)
* [PSoC™ 62S1 Wi-Fi Bluetooth® pioneer kit](https://www.infineon.com/CYW9P62S1-43012EVB-01) (`CYW9P62S1-43012EVB-01`)
* [PSoC™ 62S3 Wi-Fi Bluetooth® prototyping kit](https://www.infineon.com/CY8CPROTO-062S3-4343W) (`CY8CPROTO-062S3-4343W`)

***

© BDH Corporation, 2022-2023
