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

board: arm: nucleo-l4r5zi: flashing with STM32CubeProgrammer #67174

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

ajarmouni-st
Copy link
Collaborator

This patch adds the possibility to flash nucleo-l4r5zi board using STM32CubeProgrammer.

Copy link
Collaborator

@kartben kartben left a comment

Choose a reason for hiding this comment

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

Beyond the mentioned typo, and as a non-blocking comment, it looks like it might make sense to extract some common "ST board flashing instructions" doc snippets (a la

.. include:: ../../common/efi_boot.rst
:start-after: start_include_here
) so that instructions are somewhat consistent between boards.

IMO aiming for something like

Board is configured to be flashed using west STM32CubeProgrammer runner.
Installation of `STM32CubeProgrammer`_ is then required to flash the board.
Alternatively, openocd (provided in Zephyr SDK), JLink and pyocd can also be
used to flash and debug the board if west is told to use it as runner,
which can be done by passing either ``-r openocd``, ``-r jlink`` or ``-r pyocd``.
For pyocd additional target information needs to be installed.
This can be done by executing the following commands.
.. code-block:: console
$ pyocd pack --update
$ pyocd pack --install stm32u5
where all the potential flashing options and their specificities would be nice, i.e. in the current PR it feels like the proposed wording assumes that only stm32cubeprogrammer is supported. Maybe you can at least clarify that bit, and briefly mention other available options (openocd and jlink)?

boards/arm/nucleo_l4r5zi/doc/index.rst Outdated Show resolved Hide resolved
Add the possibility to flash nucleo-l4r5zi board using west
STM32CubeProgrammer runner.

Signed-off-by: Abderrahmane Jarmouni <[email protected]>
@erwango
Copy link
Member

erwango commented Jan 8, 2024

Beyond the mentioned typo, and as a non-blocking comment, it looks like it might make sense to extract some common "ST board flashing instructions" doc snippets

Thanks @kartben for the suggestion. We'll work on that.

@carlescufi carlescufi merged commit 54539b2 into zephyrproject-rtos:main Jan 8, 2024
15 checks passed
@ajarmouni-st ajarmouni-st deleted the dev/nucleo_l4r5zi branch January 8, 2024 12:24
@ajarmouni-st ajarmouni-st restored the dev/nucleo_l4r5zi branch January 8, 2024 12:24
@ajarmouni-st ajarmouni-st deleted the dev/nucleo_l4r5zi branch January 16, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants