Megawin M-0 Proto Board Introduction
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.
Step 1: 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.
- Install the latest Eclipse IDE for C/C++ developers. Download Eclipse Installer from the following path.
- Download and Install the GNU Arm Embedded Toolchain from
- 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.
- Download COM ISP32 from Megawin Website
- Download the source code from the following Git Repository
- Product brief and schematic are available at :
Step 2: 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.
Step 3: 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.
Step 4: 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.
Step 5: 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!
Leave a Reply