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

stm32: nucleo_g474re: reflash board successively with pyocd #23230

Merged
merged 2 commits into from
Mar 9, 2020

Conversation

FRASTM
Copy link
Collaborator

@FRASTM FRASTM commented Mar 3, 2020

It happens that the nucleo_g474re board cannot be flashed a second time and reboot with pyocd.
(copy binary to the target board is still functional)
This patch changes the board_runner_args(pyocd "--target=stm32g474rbtx") in the board.cmake
Use west flash to program the target board /zephyr/boards/arm/nucleo_g474re

Signed-off-by: Francois Ramu francois.ramu@st.com

Fixes #23351

boards/arm/nucleo_g474re/board.cmake Show resolved Hide resolved
Comment on lines -9 to 12
string
default "stm32g474xx"

config NUM_IRQS
int
default 102
Copy link
Member

Choose a reason for hiding this comment

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

Let's split this is a dedicated commit (same PR could be used).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done into 13c405dda1e2f443a592a5464120fdf04cddbf84 and 3611b5da65c826dd2d62ac3d2517f316a0670040

@FRASTM
Copy link
Collaborator Author

FRASTM commented Mar 4, 2020

separate in 2 commits

@erwango erwango added the platform: STM32 ST Micro STM32 label Mar 4, 2020
Reflash the nucleo_g474re successively

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This patch aligns the Kconfig.defconfig.stm32g474re to the
Kconfig.defconfig.stm32g431rb

Signed-off-by: Francois Ramu <francois.ramu@st.com>
@FRASTM
Copy link
Collaborator Author

FRASTM commented Mar 6, 2020

adding a comment in boards/arm/nucleo_g474re/board.cmake

@jhedberg jhedberg added this to the v2.2.0 milestone Mar 9, 2020
@jhedberg jhedberg merged commit abd8ca9 into zephyrproject-rtos:master Mar 9, 2020
@FRASTM FRASTM deleted the reflash_g4 branch March 30, 2022 11:36
str4t0m added a commit to str4t0m/zephyr that referenced this pull request Aug 27, 2022
Pyocd couldn't flash the nucleo_g474re board with the target
stm32g474retx (issue zephyrproject-rtos#23351).
Therefore PR zephyrproject-rtos#23230 introduced a workaround changing the target
to stm32g474rbtx.

In the meantime this issue was resolved, therefore revert the
workaround.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
fabiobaltieri pushed a commit that referenced this pull request Sep 2, 2022
Pyocd couldn't flash the nucleo_g474re board with the target
stm32g474retx (issue #23351).
Therefore PR #23230 introduced a workaround changing the target
to stm32g474rbtx.

In the meantime this issue was resolved, therefore revert the
workaround.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
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.

boards: nucle_g474re: west flash doesn't work
5 participants