diff --git a/README.md b/README.md index 52ef0ab..5463b73 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,9 @@ to see help. 5. Run `platformio boards` (`pio boards`) or go to [boards](https://docs.platformio.org/en/latest/boards) to list all supported devices. Pick one and use its ID as a `-b` argument (for example, `nucleo_f031k6`) 6. All done. You can now run ```bash -$ python3 stm32pio.py new -d /path/to/cubemx/project -b nucleo_f031k6 --start-editor=vscode +$ python3 stm32pio.py new -d /path/to/cubemx/project -b nucleo_f031k6 --start-editor=vscode --with-build ``` -to complete generation and start the Visual Studio Code editor with opened folder (as example, not required). Make sure you have all tools in PATH (`java` (or set in `settings.py`), editor, Python) +to complete generation, start the Visual Studio Code editor with opened folder and compile the project (as example, not required). Make sure you have all tools in PATH (`java` (or set in `settings.py`), editor, Python) 7. If you will be in need to update hardware configuration in the future, make all necessary stuff in CubeMX and run `generate` command in a similar way: ```bash diff --git a/stm32pio/tests.py b/stm32pio/tests.py index 913b4b1..c1dfb1f 100755 --- a/stm32pio/tests.py +++ b/stm32pio/tests.py @@ -6,12 +6,16 @@ import time import unittest -import settings, util +import settings +import util + + project_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'stm32pio-test') board = 'nucleo_f031k6' + def clean_run(test): def wrapper(self): util.clean(project_path)