Basic implementation of watchdog

Dependencies:   ros_lib_kinetic

Committer:
t1jain
Date:
Tue Jun 25 23:49:40 2019 +0000
Revision:
1:38b385f34687
Parent:
0:975e02a70882
Updated Watchdog basic with min. timeout

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JesiMiranda 0:975e02a70882 1 # Getting started with Blinky on mbed OS
JesiMiranda 0:975e02a70882 2
JesiMiranda 0:975e02a70882 3 This guide reviews the steps required to get Blinky working on an mbed OS platform.
JesiMiranda 0:975e02a70882 4
JesiMiranda 0:975e02a70882 5 Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli).
JesiMiranda 0:975e02a70882 6
JesiMiranda 0:975e02a70882 7 ## Import the example application
JesiMiranda 0:975e02a70882 8
JesiMiranda 0:975e02a70882 9 From the command-line, import the example:
JesiMiranda 0:975e02a70882 10
JesiMiranda 0:975e02a70882 11 ```
JesiMiranda 0:975e02a70882 12 mbed import mbed-os-example-blinky
JesiMiranda 0:975e02a70882 13 cd mbed-os-example-blinky
JesiMiranda 0:975e02a70882 14 ```
JesiMiranda 0:975e02a70882 15
JesiMiranda 0:975e02a70882 16 ### Now compile
JesiMiranda 0:975e02a70882 17
JesiMiranda 0:975e02a70882 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 5:
JesiMiranda 0:975e02a70882 19
JesiMiranda 0:975e02a70882 20 ```
JesiMiranda 0:975e02a70882 21 mbed compile -m K64F -t ARM
JesiMiranda 0:975e02a70882 22 ```
JesiMiranda 0:975e02a70882 23
JesiMiranda 0:975e02a70882 24 Your PC may take a few minutes to compile your code. At the end, you see the following result:
JesiMiranda 0:975e02a70882 25
JesiMiranda 0:975e02a70882 26 ```
JesiMiranda 0:975e02a70882 27 [snip]
JesiMiranda 0:975e02a70882 28 +----------------------------+-------+-------+------+
JesiMiranda 0:975e02a70882 29 | Module | .text | .data | .bss |
JesiMiranda 0:975e02a70882 30 +----------------------------+-------+-------+------+
JesiMiranda 0:975e02a70882 31 | Misc | 13939 | 24 | 1372 |
JesiMiranda 0:975e02a70882 32 | core/hal | 16993 | 96 | 296 |
JesiMiranda 0:975e02a70882 33 | core/rtos | 7384 | 92 | 4204 |
JesiMiranda 0:975e02a70882 34 | features/FEATURE_IPV4 | 80 | 0 | 176 |
JesiMiranda 0:975e02a70882 35 | frameworks/greentea-client | 1830 | 60 | 44 |
JesiMiranda 0:975e02a70882 36 | frameworks/utest | 2392 | 512 | 292 |
JesiMiranda 0:975e02a70882 37 | Subtotals | 42618 | 784 | 6384 |
JesiMiranda 0:975e02a70882 38 +----------------------------+-------+-------+------+
JesiMiranda 0:975e02a70882 39 Allocated Heap: unknown
JesiMiranda 0:975e02a70882 40 Allocated Stack: unknown
JesiMiranda 0:975e02a70882 41 Total Static RAM memory (data + bss): 7168 bytes
JesiMiranda 0:975e02a70882 42 Total RAM memory (data + bss + heap + stack): 7168 bytes
JesiMiranda 0:975e02a70882 43 Total Flash memory (text + data + misc): 43402 bytes
JesiMiranda 0:975e02a70882 44 Image: .\.build\K64F\ARM\mbed-os-example-blinky.bin
JesiMiranda 0:975e02a70882 45 ```
JesiMiranda 0:975e02a70882 46
JesiMiranda 0:975e02a70882 47 ### Program your board
JesiMiranda 0:975e02a70882 48
JesiMiranda 0:975e02a70882 49 1. Connect your mbed device to the computer over USB.
JesiMiranda 0:975e02a70882 50 1. Copy the binary file to the mbed device.
JesiMiranda 0:975e02a70882 51 1. Press the reset button to start the program.
JesiMiranda 0:975e02a70882 52
JesiMiranda 0:975e02a70882 53 The LED on your platform turns on and off.
JesiMiranda 0:975e02a70882 54
JesiMiranda 0:975e02a70882 55 ## Troubleshooting
JesiMiranda 0:975e02a70882 56
JesiMiranda 0:975e02a70882 57 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.