Megawin Proto - Getting Started
by shaikhnasreen2211 in Circuits > Microcontrollers
1214 Views, 0 Favorites, 0 Comments
Megawin Proto - Getting Started
Megawin is one of the new and upcoming semiconductor company with 8 bit and 32 bit ARM Cortex M0 micro-controllers. In this tutorial we will learn how to program a simple "Hello World" project onto the Megawin Proto Board.
Supplies
1. Megawin Proto Board available from below link
https://sourcewell.in/contact-us/
2. 2.8" TFT Sheild Board available from below link
Prerequisites
Since the code is developed in Eclipse environment, a basic understanding of the Eclipse IDE is a must.
Following is the software that must be pre-installed for this project.
1. Install the latest Eclipse IDE for C/C++ developers. Download Eclipse Installer from the following path.
https://www.eclipse.org/downloads/
2. Download and Install the GNU Arm Embedded Toolchain from
https://developer.arm.com/tools-and-software/open-...
Version 10.3-2021.07 was used at the time of development for this project. On completion of installation remember to select “Add path to environment variable”. Click Finish.
3. Download COM ISP32 from Megawin Website
http://www.megawin.com.tw/en-global/support/index/...
4. Download the source code from the following Git Repository
https://github.com/Stuffbits-Sourcewell/FwDev_Hell...
5. Product brief and schematic are available at :
Connections
The 2.8" TFT Shield fits directly on top of the Proto board. Connect the Proto board to the PC with a B-Type USB cable.
Creating Workspace.
All eclipse projects need their own workspace. For this create an empty folder of your choice in your desired location. Use this as your workspace path for launching Eclipse.
Copy the extracted folder of the project to this folder.
Import and Compile
From the Eclipse Project Explorer window, click on Import Existing Projects. Select General -> Existing projects and click Next. From Browse , select the project folder in the workspace and click Finish.
Now the project has been Imported to the workspace. You can build this project (CTRL + B) to generate hex file for programming.
Programming
Open COM ISP application . Select MG32F02A128 from drop down box. Select the proper COM port for your device. Click on Load File and select the project hex file.
Then click on Update Target and the use Slide switch to power OFF/ON for device. Now programming will be successful.
Reset and run. Your board is ready to go!