Simplified version with classic style

Committer:
okano
Date:
Fri Dec 20 07:20:18 2019 +0000
Revision:
5:4ac5e3650110
Parent:
2:2877e096c363
Simplified version with classic style

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kgilbert 0:5ee0fb58a1c8 1 # Bare Metal Blinky
kgilbert 0:5ee0fb58a1c8 2
kgilbert 0:5ee0fb58a1c8 3 This guide reviews the steps required to get Blinky with Bare Metal working on an Mbed OS platform.
kgilbert 0:5ee0fb58a1c8 4
kgilbert 0:5ee0fb58a1c8 5 Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli).
kgilbert 0:5ee0fb58a1c8 6
kgilbert 0:5ee0fb58a1c8 7 ## Import the example application
kgilbert 0:5ee0fb58a1c8 8
kgilbert 0:5ee0fb58a1c8 9 From the command-line, import the example:
kgilbert 0:5ee0fb58a1c8 10
kgilbert 0:5ee0fb58a1c8 11 ```
mbed_official 2:2877e096c363 12 mbed import mbed-os-example-blinky-baremetal
mbed_official 2:2877e096c363 13 cd mbed-os-example-blinky-baremetal
kgilbert 0:5ee0fb58a1c8 14 ```
kgilbert 0:5ee0fb58a1c8 15
kgilbert 0:5ee0fb58a1c8 16 ### Now compile
kgilbert 0:5ee0fb58a1c8 17
kgilbert 0:5ee0fb58a1c8 18 Invoke `mbed compile`, and specify the name of your platform and your favorite toolchain (`GCC_ARM`, `ARM`, `IAR`). For example, for the ARM Compiler:
kgilbert 0:5ee0fb58a1c8 19
kgilbert 0:5ee0fb58a1c8 20 ```
kgilbert 0:5ee0fb58a1c8 21 mbed compile -m K64F -t ARM
kgilbert 0:5ee0fb58a1c8 22 ```
kgilbert 0:5ee0fb58a1c8 23
kgilbert 0:5ee0fb58a1c8 24 Your PC may take a few minutes to compile your code. At the end, you see the following result:
kgilbert 0:5ee0fb58a1c8 25
kgilbert 0:5ee0fb58a1c8 26 ```
kgilbert 0:5ee0fb58a1c8 27 [snip]
mbed_official 2:2877e096c363 28 Image: ./BUILD/K64F/GCC_ARM/mbed-os-example-blinky-baremetal.bin
kgilbert 0:5ee0fb58a1c8 29 ```
kgilbert 0:5ee0fb58a1c8 30
kgilbert 0:5ee0fb58a1c8 31 ### Program your board
kgilbert 0:5ee0fb58a1c8 32
kgilbert 0:5ee0fb58a1c8 33 1. Connect your mbed device to the computer over USB.
kgilbert 0:5ee0fb58a1c8 34 1. Copy the binary file to the mbed device.
kgilbert 0:5ee0fb58a1c8 35 1. Press the reset button to start the program.
kgilbert 0:5ee0fb58a1c8 36
kgilbert 0:5ee0fb58a1c8 37 The LED on your platform turns on and off.
kgilbert 0:5ee0fb58a1c8 38
kgilbert 0:5ee0fb58a1c8 39 ## Troubleshooting
kgilbert 0:5ee0fb58a1c8 40
kgilbert 0:5ee0fb58a1c8 41 If you have problems, you can review the [documentation](https://os.mbed.com/docs/latest/tutorials/debugging.html) for suggestions on what could be wrong and how to fix it.
kgilbert 0:5ee0fb58a1c8 42
kgilbert 0:5ee0fb58a1c8 43 ## Related Links
kgilbert 0:5ee0fb58a1c8 44
kgilbert 0:5ee0fb58a1c8 45 * [Mbed OS Configuration](https://os.mbed.com/docs/latest/reference/configuration.html)
kgilbert 0:5ee0fb58a1c8 46
kgilbert 0:5ee0fb58a1c8 47 ### License and contributions
kgilbert 0:5ee0fb58a1c8 48
kgilbert 0:5ee0fb58a1c8 49 The software is provided under Apache-2.0 license. Contributions to this project are accepted under the same license. Please see contributing.md for more info.
kgilbert 0:5ee0fb58a1c8 50
kgilbert 0:5ee0fb58a1c8 51 This project contains code from other projects. The original license text is included in those source files. They must comply with our license guide.