You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ml...@apache.org on 2020/03/26 17:34:33 UTC
[mynewt-core] branch master updated: STM32 blinky tutorial update
This is an automated email from the ASF dual-hosted git repository.
mlaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new f2ec1cf STM32 blinky tutorial update
new 5ff0a42 Merge pull request #2251 from Reynevan94/STM32-blinky-tutorial-fix
f2ec1cf is described below
commit f2ec1cfcfafd617de90c2ff2ac755dba05314910
Author: Krzysztof Kopyściński <kr...@codecoup.pl>
AuthorDate: Thu Mar 26 12:49:33 2020 +0100
STM32 blinky tutorial update
Because support of STM32 is located in mynewt-core, no external repos are necessary.
---
docs/os/tutorials/STM32F303.rst | 51 +++++------------------------------------
1 file changed, 6 insertions(+), 45 deletions(-)
diff --git a/docs/os/tutorials/STM32F303.rst b/docs/os/tutorials/STM32F303.rst
index b3ad7de..7ee46fa 100644
--- a/docs/os/tutorials/STM32F303.rst
+++ b/docs/os/tutorials/STM32F303.rst
@@ -49,45 +49,6 @@ re-use that project.
**Note:** Don't forget to change into the ``myproj`` directory.
-Import External STM32F3 Library support
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-The STM32F303 support for Mynewt lives in an external repository. It's
-necessary to add another repository to the project. To do this, edit the
-file ``project.yml`` in the root directory of your project ``myproj``
-
-This requires two changes to this file.
-
-1. You must define the properties of the external repository that you
- want to add
-2. You must include the repository in your project.
-
-Edit the file ``project.yml`` with your favorite editor and add the
-following repository details in the file (after the core repository).
-This gives newt the information to contact the repository and extract
-its contents. In this case, the repository is on github in the
-``runtimeco`` collection. Its name is ``mynewt-stm32f3`` and we will
-accept any version up to the latest. You can look at the contents
-`here <https://github.com/runtimeco/mynewt_stm32f3>`__.
-
-::
-
- repository.mynewt_stm32f3:
- type: github
- vers: 0-latest
- user: runtimeco
- repo: mynewt_stm32f3
-
-In the same file, add the following highlighted line to the
-``project.repositories`` variable. This tells newt to download the
-repository contents into your project.
-
-::
-
- project.repositories:
- - apache-mynewt-core
- - mynewt_stm32f3
-
Install dependencies
~~~~~~~~~~~~~~~~~~~~
@@ -121,23 +82,23 @@ the bootloader which allows you to upgrade your mynewt applications.
$ newt target create stmf3_blinky
$ newt target set stmf3_blinky build_profile=optimized
- $ newt target set stmf3_blinky bsp=@mynewt_stm32f3/hw/bsp/stm32f3discovery
+ $ newt target set stmf3_blinky bsp=@apache-mynewt-core/hw/bsp/stm32f3discovery
$ newt target set stmf3_blinky app=apps/blinky
$ newt target create stmf3_boot
- $ newt target set stmf3_boot app=@apache-mynewt-core/apps/boot
- $ newt target set stmf3_boot bsp=@mynewt_stm32f3/hw/bsp/stm32f3discovery
+ $ newt target set stmf3_boot app=@mcuboot/boot/mynewt
+ $ newt target set stmf3_boot bsp=@apache-mynewt-core/hw/bsp/stm32f3discovery
$ newt target set stmf3_boot build_profile=optimized
$ newt target show
targets/stmf3_blinky
app=apps/blinky
- bsp=@mynewt_stm32f3/hw/bsp/stm32f3discovery
+ bsp=@apache-mynewt-core/hw/bsp/stm32f3discovery
build_profile=optimized
targets/stmf3_boot
- app=apps/boot
- bsp=@mynewt_stm32f3/hw/bsp/stm32f3discovery
+ app=@mcuboot/boot/mynewt
+ bsp=@apache-mynewt-core/hw/bsp/stm32f3discovery
build_profile=optimized
Build the target executables