and a first program mbed IDE

mbed os is written in a simplified architecture, its ecological environment similar to the Arduino there is a significant reduction in programming requirements, achieve a rapid development framework for user needs.

The mbed ide, and a set of online programming, download a copy method, which is a development platform architecture and its implementation methods.

This one explains how to use the mbed platform to write a program and downloaded to the development board, where I use the F469-Discovery as a development board.

1. First, open the blink mbed program example URL,

https://docs.mbed.com/docs/mbed-os-handbook/en/latest/getting_started/blinky_compiler/

2. You can click directly into mbed IDE (Import into mbed ide), if not logged in, login screen will pop up page, login registration method is no longer described in detail

3. Log completed, will jump to the IDE interface, if it is the first time you log in you will be prompted to import development board is not asking you to choose development board, click Cancel if not careful, you can also choose to develop from this page button at the top right board

4. Select the page development board, where I checked STM (left side), to find the F469NI, after finding click into the F469's introduction page

5. After entering the page, you can see the right side of the button will be added to my device, click on the board to add to the list of devices in our IDE, the lower picture shows the addition is complete

6. back to just click on a page in the blink IDE into this process, then you can import properly, the following configuration page, you can click Import

7. mbed IDE can be seen in the emergence of several files, where the main function is the main file, the README projects with instructions, the file is a library mbed-os, with a large number of API

At this time main.cpp code:

#include "mbed.h"
 
DigitalOut led1(LED1);
 
// main() runs in its own thread in the OS
int main() {
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}
 

LED lighting period can be seen flashing procedure, flashes once per second

8. Click above to compile (Compiler), mbed IDE will compile the current project, which has a big advantage is that the compiler is a cloud service provided by ARM server side, so if we so PC performance compared to the general rate local compilations will be a lot faster.

9. If the compilation is completed and there is no problem, bin file to download the current project generated'll jump

10. download and save the file, then the boards can be connected, the built-in FLASH will form a removable disk mounted on the system

Copy the downloaded files to this disk, reset the development board, development board will compile the program on the mbed ide

 

 

from: https://blog.csdn.net/u012388993/article/details/73645232

Published 264 original articles · won praise 520 · Views 3 million +

Guess you like

Origin blog.csdn.net/phenixyf/article/details/90670131