# 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="/files/XQFoaQnsHqEXPhMFhSmh" alt="" width="563"><figcaption><p>For Windows</p></figcaption></figure>

<figure><img src="/files/fSAZ2MRLj56oQqjg6k2i" alt="" width="563"><figcaption><p>For MacOS</p></figcaption></figure>

### 1.2 Adding the BDH Code Template

* Open modus-shell

<figure><img src="/files/4NvOAE5KueHNkPQJXey3" 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-super-manifest.xml' > ~/.modustoolbox/manifest.loc
```

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

## 2. Eclipse IDE Development Tools and Project Creator

#### 2.1. Open ModusToolbox Tool

<figure><img src="/files/G5Llofb6BtUPm0dQgZ25" alt="" width="563"><figcaption><p>Open ModusToolbox</p></figcaption></figure>

#### 2.2. Click Eclipse IDE for ModbusToolbox

<figure><img src="/files/bOmmgXf9ighT1LnwJW7S" 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></figcaption></figure>

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

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

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

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

<figure><img src="/files/VNI0pnu9IPeOnbq7gLNr" 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="/files/NvfPcCGW6L87AhJdzKoh" alt=""><figcaption></figcaption></figure>

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

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

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

## 🧮 Serial Studio Installation.

### 💻 For windows

* 👉 Go to Serial Studio download link: <https://serial-studio.github.io/#download> and click on `Install`.&#x20;

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

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

<figure><img src="/files/exLWmcD6U8ohwEZOG3Yq" alt="" width="563"><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/FPQlk8jpN3QrbFkD0D4K" alt=""><figcaption></figcaption></figure>

### 💻 For MacOS

* Open this [link](https://github.com/Serial-Studio/Serial-Studio/releases/tag/v1.1.7) and click download SerialStudio-1.1.7-macOS.zip&#x20;

<figure><img src="/files/FeZQCALR5Fal1jNWAggG" alt="" width="563"><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/2XuOhLOBrKp8gB7Iu5Br" 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/embedded-systems/enbedded-system-development-via-psoc6/basic-mcu-interfacing/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.
