Manual testing
You may want to run tests manually, for example if DAPLink is still under development. You will need to export your tests from Greentea and import them to your IDE. For example:
-
Find the test directory:
mbed test -m <new_target> -t gcc_arm --compile-list -n mbed-os-tests-mbed_hal-common_ticker
-
Copy the source code to the project root directory:
cd <separate folder from existing porting project> cp -R mbed-os-example-blinky/mbed-os/TESTS/mbed_hal/common_tickers . cd common_tickers mbed new --create-only .
-
Copy the
mbed-os
directory:cp -R ../mbed-os-example-blinky/mbed-os .
-
Export to a makefile project:
mbed export -i <exporter> -m <new_target>
-
Flash the program with pyOCD (using the same configuration you used when you initially set up pyOCD.
-
Run the program:
# mbedhtrun --skip-flashing --skip-reset -p <serial port>:9600 -e mbed-os/TESTS/host_tests
Customize the serial port path and baudrate as needed.