SD card file helloworld demo using new mbed RTOS ver 5 file driver setup. Pins setup for LPC1768 - read comment in code about project's json file requirements for adding the SD filesystem driver
SD card r/w demo for mbed OS version 5 on LPC1768.
File drivers are added in json file with "target.components_add": ["SD"] for use in most recent OS 5 version.
Test messages are sent to serial port with printf's.
tests/README.md@2:21d14147254e, 2019-09-24 (annotated)
- Committer:
- 4180_1
- Date:
- Tue Sep 24 18:16:27 2019 +0000
- Revision:
- 2:21d14147254e
- Parent:
- 0:3588d7473dce
ver 1.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
4180_1 | 0:3588d7473dce | 1 | # Testing examples |
4180_1 | 0:3588d7473dce | 2 | |
4180_1 | 0:3588d7473dce | 3 | Examples are tested using tool [htrun](https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-host-tests) and templated print log. |
4180_1 | 0:3588d7473dce | 4 | |
4180_1 | 0:3588d7473dce | 5 | To run the test, use following command after you build the example: |
4180_1 | 0:3588d7473dce | 6 | ``` |
4180_1 | 0:3588d7473dce | 7 | mbedhtrun -d D: -p COM4 -m K64F -f .\BUILD\K64F\GCC_ARM\blinky.bin --compare-log tests\blinky.log |
4180_1 | 0:3588d7473dce | 8 | ``` |
4180_1 | 0:3588d7473dce | 9 | |
4180_1 | 0:3588d7473dce | 10 | |
4180_1 | 0:3588d7473dce | 11 | More details about `htrun` are [here](https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-host-tests#testing-mbed-os-examples). |
4180_1 | 0:3588d7473dce | 12 |