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