doc: scripts: Updates for pyocd v0.11.1
pyocd recently added support for python 3 so we can now remove the python 2 package requirements. It also merged Zephyr thread awareness upstream, so we can remove the reference to my pyocd pull request. Tested debugging and flashing on Linux and Windows. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
d47bd0b5c3
commit
d7d1090422
7 changed files with 6 additions and 31 deletions
|
|
@ -674,9 +674,8 @@ Create a Debugger Configuration
|
||||||
RTOS Awareness
|
RTOS Awareness
|
||||||
==============
|
==============
|
||||||
|
|
||||||
Experimental support for Zephyr RTOS awareness is implemented in `pyOCD PR
|
Support for Zephyr RTOS awareness is implemented in `pyOCD v0.11.0`_ and later.
|
||||||
#333`_. It is compatible with GDB PyOCD Debugging in Eclipse, but you must
|
It is compatible with GDB PyOCD Debugging in Eclipse, but you must enable
|
||||||
download this pull request and build pyOCD from source. You must also enable
|
|
||||||
CONFIG_OPENOCD_SUPPORT=y in your application.
|
CONFIG_OPENOCD_SUPPORT=y in your application.
|
||||||
|
|
||||||
CMake Details
|
CMake Details
|
||||||
|
|
@ -1191,4 +1190,4 @@ project that demonstrates some of these features.
|
||||||
|
|
||||||
.. _Eclipse IDE for C/C++ Developers: https://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/oxygen2
|
.. _Eclipse IDE for C/C++ Developers: https://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/oxygen2
|
||||||
.. _GNU MCU Eclipse plug-ins: https://gnu-mcu-eclipse.github.io/plugins/install/
|
.. _GNU MCU Eclipse plug-ins: https://gnu-mcu-eclipse.github.io/plugins/install/
|
||||||
.. _pyOCD PR #333: https://github.com/mbedmicro/pyOCD/pull/333
|
.. _pyOCD v0.11.0: https://github.com/mbedmicro/pyOCD/releases/tag/v0.11.0
|
||||||
|
|
|
||||||
|
|
@ -87,11 +87,6 @@ Install additional packages required for development with Zephyr::
|
||||||
cd ~/zephyr # or to your directory where zephyr is cloned
|
cd ~/zephyr # or to your directory where zephyr is cloned
|
||||||
pip3 install --user -r scripts/requirements.txt
|
pip3 install --user -r scripts/requirements.txt
|
||||||
|
|
||||||
If you require pyocd, an open source python2 library for programming and
|
|
||||||
debugging ARM Cortex-M microcontrollers, use this command::
|
|
||||||
|
|
||||||
pip2 install --user -r scripts/py2-requirements.txt
|
|
||||||
|
|
||||||
CMake version 3.8.2 or higher is required. Check what version you have using
|
CMake version 3.8.2 or higher is required. Check what version you have using
|
||||||
``cmake --version``; if you have an older version, check the backports or
|
``cmake --version``; if you have an older version, check the backports or
|
||||||
install a more recent version manually. For example, to install version
|
install a more recent version manually. For example, to install version
|
||||||
|
|
|
||||||
|
|
@ -71,20 +71,6 @@ Install tools to build Zephyr binaries:
|
||||||
If ``pip3`` does not seem to have been installed correctly use
|
If ``pip3`` does not seem to have been installed correctly use
|
||||||
``brew reinstall python3`` in order to reinstall it.
|
``brew reinstall python3`` in order to reinstall it.
|
||||||
|
|
||||||
If you require pyocd, an open source Python 2 library for programming and
|
|
||||||
debugging ARM Cortex-M microcontrollers, use this command to install it using
|
|
||||||
the macOS-bundled Python 2:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
pip install --user -r scripts/py2-requirements.txt
|
|
||||||
|
|
||||||
If pip for the macOS-bundled Python 2 is not installed, you can install it with:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
sudo python -m ensurepip
|
|
||||||
|
|
||||||
Source :file:`zephyr-env.sh` wherever you have cloned the Zephyr Git repository:
|
Source :file:`zephyr-env.sh` wherever you have cloned the Zephyr Git repository:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
|
||||||
|
|
@ -92,11 +92,6 @@ packages from their respective websites.
|
||||||
of the ``--user`` flag, this makes it harder for the Command Prompt
|
of the ``--user`` flag, this makes it harder for the Command Prompt
|
||||||
to find the executables in Python modules installed by ``pip3``.
|
to find the executables in Python modules installed by ``pip3``.
|
||||||
|
|
||||||
#. If you require pyocd, an open source python2 library for programming and
|
|
||||||
debugging ARM Cortex-M microcontrollers, use this command::
|
|
||||||
|
|
||||||
pip2 install -r scripts/py2-requirements.txt
|
|
||||||
|
|
||||||
#. The build system should now be ready to work with any toolchain installed in
|
#. The build system should now be ready to work with any toolchain installed in
|
||||||
your system. In the next step you'll find instructions for installing
|
your system. In the next step you'll find instructions for installing
|
||||||
toolchains for building both x86 and ARM applications.
|
toolchains for building both x86 and ARM applications.
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ device. Power cycle the board, this time without holding the reset button.
|
||||||
pyOCD
|
pyOCD
|
||||||
*****
|
*****
|
||||||
|
|
||||||
pyOCD is an Open Source python 2.7 based library for programming and debugging
|
pyOCD is an Open Source python library for programming and debugging ARM
|
||||||
ARM Cortex-M microcontrollers using CMSIS-DAP.
|
Cortex-M microcontrollers using CMSIS-DAP.
|
||||||
|
|
||||||
Host Tools and Firmware
|
Host Tools and Firmware
|
||||||
=======================
|
=======================
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
pyocd
|
|
||||||
|
|
@ -9,6 +9,7 @@ ply==3.10
|
||||||
hub==2.0
|
hub==2.0
|
||||||
gitlint
|
gitlint
|
||||||
pyelftools==0.24
|
pyelftools==0.24
|
||||||
|
pyocd
|
||||||
pyserial
|
pyserial
|
||||||
pykwalify
|
pykwalify
|
||||||
# "win32" is used for 64-bit Windows as well
|
# "win32" is used for 64-bit Windows as well
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue