Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Update ST-Link doc following debugging chapter introduction #14747

Merged
merged 2 commits into from Apr 2, 2019

Conversation

erwango
Copy link
Member

@erwango erwango commented Mar 20, 2019

Following #14000, a debugging section is introduced to describe properly debug probes and matching host tools. In this context it makes sense to remove existing doc/guides/tools/stlink-v21.rst and dispatch information in newly created files.
Remains some specific information, dedicated to OpenOcd/JLink usage with STLink which hardly fits in host-tool.rst or probes.rst, so create a new file stlink-v21.rst in debugging section. I'm open to other option to have that allow to have this information centralized in another place.

Based on #14000.

@zephyrbot
Copy link
Collaborator

zephyrbot commented Mar 20, 2019

All checks are passing now.

Review history of this comment for details about previous failed status.
Note that some checks might have not completed yet.

@codecov-io
Copy link

codecov-io commented Mar 20, 2019

Codecov Report

Merging #14747 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14747      +/-   ##
==========================================
- Coverage   52.93%   52.92%   -0.02%     
==========================================
  Files         309      309              
  Lines       45268    45268              
  Branches    10451    10451              
==========================================
- Hits        23961    23956       -5     
- Misses      16542    16544       +2     
- Partials     4765     4768       +3
Impacted Files Coverage Δ
subsys/testsuite/ztest/src/ztest.c 68.59% <0%> (-4.14%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 766edd4...b5e4185. Read the comment docs.

Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK, thanks.

@erwango
Copy link
Member Author

erwango commented Mar 21, 2019

@dbkinder

Looks OK, thanks.

Well, can you approve then ? ;-)

Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought I had approved. Try again.

doc/guides/debugging/host-tools.rst Show resolved Hide resolved
doc/guides/debugging/probes.rst Show resolved Hide resolved
@@ -88,3 +97,6 @@ Check if your SoC is listed in `pyOCD Supported Devices`_.

.. _pyOCD Supported Devices:
https://github.com/mbedmicro/pyOCD/tree/master/pyocd/target/builtin

.. _OpenOCD Windows:
http://gnutoolchains.com/arm-eabi/openocd/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why here? What about the GNU MCU Eclipse mentioned in the "Getting OpenOCD" page?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this may not be the best way to get up to date openocd binaries (for windows at least). For windows, it redirects to http://www.freddiechopin.info/en/download/category/4-openocd with latest build having: 'build date: 2017-01-23'. (which is older than the oldest binary in http://gnutoolchains.com/arm-eabi/openocd/)

@@ -8,3 +8,4 @@ Debugging

host-tools.rst
probes.rst
stlink-v21.rst
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this separate page really still necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Information provided in this page is not available anywhere else so it's worth keeping, IMHO. This being said I'm open to alternative locations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be worked into the debug probe page

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done!

-------------

Openocd is available by default on ST-Link and configure as default flash and
debug tool, flash and debug could be done as follows:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest rewording a little:

OpenOCD is available by default on ST-Link and configured as the default flash and
debug tool. Flash and debug can be done as follows:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Txs, fixed

Flash and debug with ST-Link
============================

Using Openocd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenOCD

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Add ST-Link chapter in probes page and reference in host-tool
openocd section.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Add a note to mention how to get openocd working on windows.
This is taken from stlink-v21.rst file before its reformatting.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
@nashif nashif merged commit 4fd9d89 into zephyrproject-rtos:master Apr 2, 2019
@erwango erwango deleted the doc_probes_stlink branch September 3, 2019 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants