NuMaker-IoT-M487 (1) Get Started with Mbed OS

Selected option
NuMaker-IoT-M487 (1) Get Started with Mbed OS
Training,Tool
English
Introduction

Hello everyone, I am the principal engineer of Nuvoton Technology, Morgan. The development board we are using today is Nuvoton’s NuMaker-IoT-M487. It is powered by the NuMicro M487 microcontroller with Arm Cortex-M4 core, built-in RJ45 Ethernet, and Wi-Fi module allowing users to connect to clouds by wire or wirelessly. It supports several RTOS including Arm Mbed OS, Amazon FreeRTOS, and AliOS Things. Today, I will show you how to use Mbed OS on the NuMaker-IoT-M487 development board. First, open Chrome browser, enter the URL https://os.mbed.com to register an account if you don’t have one. Move the mouse cursor to the human icon in the upper right corner then click “Log in or Sign up” or click “Sign up for free” directly. Then click “Sign up” Fill in your e-mail address and relevant information, and finally click Sign up. Check your mailbox to receive the certification letter and authorize it. Then let’s log in to use the online compiler environment. Move to the human icon in the upper right corner, and then click “Log in or Sign up”. And enter your account and password. After a successful login, it will return to the first page and then click “Compiler” on the left side of the human icon. It will lead us to the online compiler web page. The following demonstration is all operated on this page Click “No device selected” in the upper right corner to add and select Nuvoton’s NuMaker-IoT-M487 development board. It opens the “Select a Platform” page. We click the button, show “Add Board” with green “+”, in the lower-left corner. Next, it shows the page, let us choose a board. Scroll down to find NuMaker-IoT-M487, and click it. It opens the NuMaker-IoT-M487 board page (https://os.mbed.com/platforms/NUMAKER-IOT-M487/). Scroll down the page to find the button “+Add to your Mbed Compiler”, and click it. Click “Compiler” on top of the page to return to the online compiler environment. If the “NuMaker-IoT-M487” small icon appears in the upper right corner, you can start to import a sample code. Otherwise, click “No device selected” again. At this time, you can see the NuMaker-IoT-M487 icon already in the “Select a Platform” dialog box, click the icon to select it and then click “Select Platform” in the upper right corner. It returns to the online compiler page, and the “NuMaker-IoT-M487” icon shows in the top right corner. You can now start to import a sample code. First, click “New” on the top left side, a small “Create new program” dialog box appears. The “Platform” selects “NuMaker-IoT-M487” automatically. In the “Template” field, please select “mbed OS Blinky HelloWorld” example code, click OK. You can see the sample project has been loaded on the page, click “main.cpp” to show the source code. Let’s add a printf() function to print out a string in the main program. Check if statements are correct, save it, and click “Compile” to build code. Now it’s compiling, let’s wait for a moment. And you can see a lot of messages at the bottom of the page. The last message is “Success!” The browser will download the binary firmware file directly after a successful compiling. It will be saved in a default download folder or any folder based on your browser setting. In Chrome, you can click download file and select “Show in folder”. Then we need to connect the NuMaker-IoT-M487 USB port to your computer and make sure the onboard LED lights up. Let’s head back to the download folder where you can see the binary firmware file (mbed-os-example-blinky.NUMAKER_IOT_M487.bin). Drag and drop the file to NuMicro MCU drive. You will see the copying progress dialog box. After the copy is completed, the firmware starts to execute. One LED on board starts blinking. To see the printout message, go on the following steps. Please find the virtual COM port assigned for NuMaker-IoT-M487 in Device Manager. In the demonstration, the “Nu-Link Virtual Com Port” is COMx. Then use your terminal tool of choice. Here we use Putty. Open the COMx port with 9600 baud rate, 8 bits, 1 stop bit, none parity, and no flow control settings. You can see “Hello World!” printed in the terminal. That’s all for this tutorial. Thank you for watching. If you want to know more information, please contact us at SalesSupport@nuvoton.com - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC Buy now: https://direct.nuvoton.com/tw/numaker-iot-m487 Contact us: SalesSupport@nuvoton.com #Tool #Training #Learning #Intermediate #en

File
This website uses cookies to ensure you get the best experience on our website. Learn more
OK