# Development Environment Preparation

Requirements

![image](https://github.com/Advance-Innovation-Centre-AIC/Part-I-Basic-MCU-Interfacing/assets/88732241/a9cbaff6-f6a2-47f2-87ac-d4a9233b470f)

| Resources                                                                                                   | Link                                                                                   |
| ----------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| Computer                                                                                                    | 💻                                                                                     |
| Infineon PSoC 62S2 Wi-Fi BT Pioneer Kit (CY8CKIT-062S2-43012) Wireless Development Tool CY8CKIT-062S2-43012 | [Link](https://www.infineon.com/cms/en/product/evaluation-boards/cy8ckit-062s2-43012/) |

## 1. ModusToolbox Installation

### 1.1 ModusToolbox Installation

**💻 System Requirement**

```
- Windows 7 64-bit / Windows 10 64-bit
- macOS10.x
- UbuntuLinux18LTS
```

**📀 Download the Software**

Go to the Cypress ModusToolbox website ([www.cypress.com/modustoolbox](https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolbox?_ga=2.97324886.898567723.1701071038-1695350571.1690950123&_gac=1.149377348.1699339824.Cj0KCQiAuqKqBhDxARIsAFZELmJBGzn0NpnZoC78O6mAXw2T9gyJFcrFV9kRyIIOKN3XTwKCBlGT1ZUaAsHVEALw_wcB)) and download your appropriate software from your platform:

```
- Windows:ModusToolbox_1.1.0.<build>-windows-install.exe
- Linux:ModusToolbox_1.1.0.<build>-linux-install.tar.gz
- macOS:ModusToolbox_1.1.0.<build>-osx-install.pkg
```

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FRSxBPgT620mmqVV2gkId%2Fimage.png?alt=media&#x26;token=34f1d751-b559-4881-9f97-cbde660f6b02" alt="" width="563"><figcaption><p>For Windows</p></figcaption></figure>

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FiW3qvsJcGC90cdN4CWbT%2Fimage.png?alt=media&#x26;token=b189ba85-d53e-4794-9474-6505dde21c41" alt="" width="563"><figcaption><p>For MacOS</p></figcaption></figure>

### 1.2 Adding the BDH Code Template

* Open modus-shell

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FlObbwC6k3pTNrOsZFfeK%2Fimage.png?alt=media&#x26;token=8c6a2c4b-90b6-4c13-bd09-2f2fde229ffb" alt=""><figcaption><p>modus-shell</p></figcaption></figure>

* Navigate to directory ModusToolbox and Adding the BDH code Template:

```
cd ~/.modustoolbox/
```

```
echo 'https://raw.githubusercontent.com/Advance-Innovation-Centre-AIC/mtb2-bdh-academy-manifests/master/bdh-academy-basic-app-super-manifest.xml' > ~/.modustoolbox/manifest.loc
```

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FWmTU7W6arLSiCUKRxbx5%2Fimage.png?alt=media&#x26;token=e065d39d-5e52-4cc1-ada5-99e034848f18" alt=""><figcaption></figcaption></figure>

## 2. Eclipse IDE Development Tools and Project Creator

#### 2.1. Open ModusToolbox Tool

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FcxOk2OqMCB6WPFzqohWz%2Fimage.png?alt=media&#x26;token=94c5a938-1e24-406d-9a03-79d1654d11c1" alt="" width="563"><figcaption><p>Open ModusToolbox</p></figcaption></figure>

#### 2.2. Click Eclipse IDE for ModbusToolbox

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FY33tQsWa2JB7URkzrJ78%2Fimage.png?alt=media&#x26;token=76998e25-8673-4537-ada5-deb14f91eb8e" alt=""><figcaption></figcaption></figure>

#### 2.3. Click “New Application ” and it will automatically shell to Project Creator 2.0

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2F3IHnuv2yX5LexYd74QP6%2Fimage.png?alt=media&#x26;token=c9cd85cd-6981-435a-ac3c-97a8ff3435b7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FLGk7gNxAp7sA4ctJEadr%2Fimage.png?alt=media&#x26;token=50821ec2-108c-4e82-9c66-768c1108737a" alt=""><figcaption></figcaption></figure>

#### 2.4. Click “PSoC6 BSP s” and follow the below step

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FtHqg5CWHpmNTEvK7KjrA%2Fimage.png?alt=media&#x26;token=3de7a697-d455-4bdd-ad9f-344cf0d374ff" alt=""><figcaption></figcaption></figure>

#### 2.5. Go to “Getting Started”

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FluRjVBxAx0LhzRpuVHzv%2Fimage.png?alt=media&#x26;token=8445081f-3927-4500-b8c7-d7858bd8dd3a" alt=""><figcaption></figcaption></figure>

## 3. “Hello World and LED Blinking” Programming.

#### 3.1. Choose “Hello World” project and you can setting any name you want

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2F8jqAPwOnNY1fcNlfYTuU%2Fimage.png?alt=media&#x26;token=30634a80-b082-4ea9-840c-9b50b8673f0e" alt=""><figcaption></figcaption></figure>

#### 3.2. Building and running project by click

`Build Application` —> `[Project_Name] Program (KitProg3_MiniProg4)`

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2Fi0PcPBfvmL2XyQ58WUw7%2Fimage.png?alt=media&#x26;token=fa368b9f-78ee-4720-b8e3-095f18d63fb3" alt=""><figcaption></figcaption></figure>

## 🧮 Serial Studio Installation.

### 💻 For windows

* 👉 Go to Serial Studio download link: [https://serial-studio.github.io](https://serial-studio.github.io/) and click on `Install`.

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FP4P9HlidP5Ja6t70ev5N%2Fimage.png?alt=media&#x26;token=4de2a8c4-e5ed-4a7c-a2ea-c24daaad98cd" alt="" width="563"><figcaption></figcaption></figure>

* 👉 Choose `SerialStudio-3.0.6-Windows.exe` &#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FtFtUzIBC8zr4XJPcnygH%2Fimage.png?alt=media&#x26;token=b4291d11-6313-4685-9c19-29fd1e18c63a" alt=""><figcaption></figcaption></figure>

* 👉 Click on `Run anyway`&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FY4KFe7ZXG2AjbgbRbM6k%2Fimage.png?alt=media&#x26;token=60c6976c-ab85-46e6-aae5-0e9b23645de1" alt="" width="375"><figcaption></figcaption></figure>

* 👉 Click `Next`&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FwldDVaOR20gUR185PzHp%2Fimage.png?alt=media&#x26;token=f5f8536c-a810-40bf-ac3a-2d7978094a98" alt="" width="228"><figcaption></figcaption></figure>

* 👉 Click `Install`&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FIcqEsTNQHTEE8ym7ca76%2Fimage.png?alt=media&#x26;token=83f91678-bfe6-441b-98ff-5d93e1c34b32" alt="" width="229"><figcaption></figcaption></figure>

* 👉 Click `Finish`&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2F5dLBjiGk5G9PmP69cFGu%2Fimage.png?alt=media&#x26;token=cea2329d-6b68-4597-9bd3-c45221ef0988" alt="" width="231"><figcaption></figcaption></figure>

* 😲 Now you can open and use Serial Studio Program&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2F6G8rK2PjQh7Trkkf8gSe%2Fimage.png?alt=media&#x26;token=a26a73bd-91d5-46f0-af5a-281936b1c0a5" alt=""><figcaption><p>Serial Studio</p></figcaption></figure>

### 💻 For MacOS

* Open this [link](https://github.com/Serial-Studio/Serial-Studio/releases/tag/v3.0.6) and click download SerialStudio-1.1.7-macOS.zip

  * ​[Serial-Studio-3.0.6-macOS-arm64.dmg](https://github.com/Serial-Studio/Serial-Studio/releases/download/v3.0.6/Serial-Studio-3.0.6-macOS-arm64.dmg) is for Macs with an M1 chip.
  * ​[Serial-Studio-3.0.6-macOS-x86\_64.dmg](https://github.com/Serial-Studio/Serial-Studio/releases/download/v3.0.6/Serial-Studio-3.0.6-macOS-x86_64.dmg) is for Macs with an Intel chip.

  <figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2F4FloHlu5v1eRqFqfZkVx%2Fimage.png?alt=media&#x26;token=efe62d52-fa5f-4ffa-8833-865462b93f3b" alt=""><figcaption></figcaption></figure>
* 👉 When you’ve been downloaded, “Serial Studio” still cannot be opened in your computer due to the firmware hasn’t verified yet.&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2Fr2PLNexCCMndXklv0YUx%2Fimage.png?alt=media&#x26;token=eea04743-2679-4edf-95c6-d7e03ab0239b" alt="" width="563"><figcaption></figcaption></figure>

* 👉 Click “Cancel” and go to System Settings -→ Privacy & Security and scroll down until you see “Security” header&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FhMIUpeatYhK5n8oA3NNf%2Fimage.png?alt=media&#x26;token=10771558-e459-4f00-8f61-ebb5dcab136e" alt="" width="563"><figcaption></figcaption></figure>

* 👉 Click “Open Anyway” to unlock the verification from firmware&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FeXJIquUJUN1NFYKayfB3%2Fimage.png?alt=media&#x26;token=82bfe8e8-edac-481a-bbcc-ed267c01c069" alt="" width="563"><figcaption></figcaption></figure>

* 😲 Now you can open your program anytime&#x20;

<figure><img src="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2F5F9tMxdAxYmVSiTqLxDn%2Fimage.png?alt=media&#x26;token=e111783d-d8b8-47ad-ad11-efa72c70e8cb" alt=""><figcaption><p>Serial Studio</p></figcaption></figure>
