Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: README.md
- Revision:
- 2:9d67e2b0d96b
- Parent:
- 0:96568f3ac645
- Child:
- 5:b14257cbe29a
--- a/README.md Mon Apr 08 14:06:25 2019 +0000 +++ b/README.md Mon Apr 08 14:55:45 2019 +0000 @@ -1,6 +1,4 @@ -# Getting started example for Mbed OS - -This guide reviews the steps required to get Blinky with the addition of dynamic OS statistics working on an Mbed OS platform. (Note: To see a rendered example you can import into the Arm Online Compiler, please see our [quick start](https://os.mbed.com/docs/mbed-os/latest/quick-start/online-with-the-online-compiler.html#importing-the-code).) +# Getting started example for Mbed OS stm32l4 dma uart Please install [Mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli). @@ -9,8 +7,8 @@ From the command-line, import the example: ``` -mbed import mbed-os-example-blinky -cd mbed-os-example-blinky +mbed import http://os.mbed.com/teams/aruaru/code/mbed-os-stm32l4-dma-uart/ +cd mbed-os-stm32l4-dma-uart ``` ### Now compile @@ -18,7 +16,7 @@ Invoke `mbed compile`, and specify the name of your platform and your favorite toolchain (`GCC_ARM`, `ARM`, `IAR`). For example, for the Arm Compiler: ``` -mbed compile -m K64F -t ARM +mbed compile -m NUCLEO_L476RG -t GCC_ARM ``` Your PC may take a few minutes to compile your code. At the end, you see the following result: @@ -26,7 +24,7 @@ ``` [snip] -Image: ./BUILD/K64F/GCC_ARM/mbed-os-example-blinky.bin +Image: ./BUILD/NUCLEO_L476RG/GCC_ARM/mbed-os-stm32l4-dma-uart.bin ``` ### Program your board @@ -90,48 +88,30 @@ ### Output - -To view the serial output you can use any terminal client of your choosing such as [PuTTY](http://www.putty.org/) or [CoolTerm](http://freeware.the-meiers.org/). Unless otherwise specified, printf defaults to a baud rate of 9600 on Mbed OS. - -You can find more information on the Mbed OS configuration tools and serial communication in Mbed OS in the related [related links section](#related-links). - -The output should contain the following block transmitted at the blinking LED frequency (actual values may vary depending on your target, build profile, and toolchain): +uart settings: 8n1,115200bps ``` -=============================== SYSTEM INFO ================================ -Mbed OS Version: 999999 -CPU ID: 0x410fc241 -Compiler ID: 2 -Compiler Version: 60300 -RAM0: Start 0x20000000 Size: 0x30000 -RAM1: Start 0x1fff0000 Size: 0x10000 -ROM0: Start 0x0 Size: 0x100000 -================= CPU STATS ================= -Idle: 98% Usage: 2% -================ HEAP STATS ================= -Current heap: 1096 -Max heap size: 1096 -================ THREAD STATS =============== -ID: 0x20001eac -Name: main_thread -State: 2 -Priority: 24 -Stack Size: 4096 -Stack Space: 3296 -ID: 0x20000f5c -Name: idle_thread -State: 1 -Priority: 1 -Stack Size: 512 -Stack Space: 352 +[systemInfo] /src/main.cpp started. +[systemInfo] BUILD:Apr 8 2019T14:04:06, +[systemInfo] mbed-OS:5.11.5 +[systemInfo] Mbed OS Version: 51105 +[systemInfo] CPU ID: 0x410fc241 +[systemInfo] Compiler ID: 1 +[systemInfo] Compiler Version: 5060750 +[systemInfo] STM32HAL_driver Version: 0x01080200 +uartRXstart status: 0 +utime:9302,cndtr:39,pos:1,6c,l +utime:9413,cndtr:38,pos:2,6b,k +utime:9573,cndtr:37,pos:3,3b,; +utime:9789,cndtr:36,pos:4,6c,l +utime:11646,cndtr:35,pos:5,3b,; +utime:12010,cndtr:34,pos:6,6c,l +utime:12074,cndtr:33,pos:7,6b,k +utime:12262,cndtr:32,pos:8,3b,; +utime:12502,cndtr:31,pos:9,6b,k +utime:12878,cndtr:30,pos:10,3b,; -ID: 0x20000f18 -Name: timer_thread -State: 3 -Priority: 40 -Stack Size: 768 -Stack Space: 664 ```