# 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 and Firmware Updates

### 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://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software/?utm_source=cypress\&utm_medium=referral\&utm_campaign=202110_globe_en_all_integration-product_families\&redirId=VL1299)) and download your appropriate software from your platform:

<figure><img src="/files/AMS07TDY0GxrjmOVTu2M" alt=""><figcaption><p>Go to Download</p></figcaption></figure>

<figure><img src="/files/k9z2QmglwksUsKUCGTtM" alt=""><figcaption><p>Download ModusToolboxSetupInstaller_1.2.0.787</p></figcaption></figure>

<figure><img src="/files/WCsdkBxpYPcQxQQxChBc" alt=""><figcaption><p>Install program</p></figcaption></figure>

<figure><img src="/files/6vwPlB7TcOILB0NaZzlG" alt=""><figcaption><p>Choose ModusToolbox version 3.2.0</p></figcaption></figure>

## 2. Eclipse IDE Development Tools and Project Creator

#### 2.1. Open ModusToolbox Tool

<figure><img src="/files/jqBJxyGlcdo47uvNbCtG" alt=""><figcaption><p>pen Eclipse IDE</p></figcaption></figure>

<figure><img src="/files/YeoYtA3BevCJiGFqlD0V" alt="" width="518"><figcaption><p>Create Workspace</p></figcaption></figure>

<figure><img src="/files/6N1UBtpLXi39on726iPS" alt="" width="563"><figcaption><p>Create and select folder in Drive C</p></figcaption></figure>

<figure><img src="/files/qgtATJqd6oRXhTGxbxkT" alt="" width="527"><figcaption><p>Launch the Program</p></figcaption></figure>

#### 2.2. Eclipse IDE for ModbusToolbox GUI

<figure><img src="/files/YoH38SDoISaoIRJmO7QZ" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/Yc38JoEWafN6642NPTx7" alt=""><figcaption><p>Create Application</p></figcaption></figure>

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

<figure><img src="/files/RZRdJKYyGZlA7Ah8KTBE" alt=""><figcaption><p>Select board</p></figcaption></figure>

#### 2.5. Go to “Getting Started” and Select "Empty App"

<figure><img src="/files/36X7d1IvAbhxdomIuIFe" alt=""><figcaption><p>Create Application</p></figcaption></figure>

#### 2.6 Build the Application

<figure><img src="/files/KkEm1Z3ZZSpaAKBV43Dz" alt="" width="324"><figcaption></figcaption></figure>

{% hint style="info" %}
Note: Fix environment errors in case you encounter build errors.
{% endhint %}

<figure><img src="/files/tJcF1gRzi6RXiaQz6kbo" alt=""><figcaption><p>Open Edit the System environment variables</p></figcaption></figure>

<figure><img src="/files/bXwD1NX2HMTPTgARnTJm" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/R4aA6rUzE3URwr43iTIw" alt="" width="494"><figcaption><p>Create environment Path</p></figcaption></figure>

> Variable name: <mark style="color:red;">CY\_TOOLS\_PATHS</mark>
>
> Variable value: <mark style="color:red;">< Your ModusToolbox folder ></mark>&#x20;

#### 2.6 Adding the BDH Code Template

* Open modus-shell

<figure><img src="/files/kxRph9vHsInBIMWXoa3A" alt=""><figcaption><p>modus-shell </p></figcaption></figure>

```
$ cd 
$ 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="/files/PJ9FUyeMaZwbIEqduzng" 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`.&#x20;

<figure><img src="/files/0tF58kmxkTdOPiMJXVQB" alt="" width="563"><figcaption></figcaption></figure>

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

<figure><img src="/files/BqALo3SpQA44GIsbJpPJ" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/kXZ4PKULWydyU0317crz" alt="" width="375"><figcaption></figcaption></figure>

* 👉 Click `Next`&#x20;

<figure><img src="/files/geoBud47oUPrxAQtszNi" alt="" width="228"><figcaption></figcaption></figure>

* 👉 Click `Install`&#x20;

<figure><img src="/files/knJObHVVWAAFgarVbWVY" alt="" width="229"><figcaption></figcaption></figure>

* 👉 Click `Finish`&#x20;

<figure><img src="/files/9xmleD2GSKHVQUbGdXgr" alt="" width="231"><figcaption></figcaption></figure>

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

<figure><img src="/files/cLLy2EISruGwI4sKML2N" 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&#x20;
  * [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="/files/zcV0lpgHRLSQ4ftIu2Sm" 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="/files/pXjYaR8Dk2Z5tdYMt87p" 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="/files/jgnAukyTZZak2XPDVTyA" alt="" width="563"><figcaption></figcaption></figure>

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

<figure><img src="/files/rjuchJoEzgP7cPLR42Uq" alt="" width="563"><figcaption></figcaption></figure>

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

<figure><img src="/files/JUxpgKckzjHUGANFet6i" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aic-eec.com/iot-development-with-infineon-psoc-tm-6-and-bdh-platform/psoc-tm-iot-development-kit/development-environment-preparation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
