Skip to content

west: linkserver: change to flash command line as required by v1.5.xx#71963

Merged
fabiobaltieri merged 1 commit intozephyrproject-rtos:mainfrom
nxp-upstream:linkserver-cli-fixes
May 2, 2024
Merged

west: linkserver: change to flash command line as required by v1.5.xx#71963
fabiobaltieri merged 1 commit intozephyrproject-rtos:mainfrom
nxp-upstream:linkserver-cli-fixes

Conversation

@yvanderv
Copy link
Contributor

LinkServer v1.5.30 brings changes to the flash command: there is no need to specify the core. This is actually rejected with linkserver v1.5.xx and after.

This commit brings changes to the west runner for LinkServer to reflect this CLI change.

There is no need to specify the core with the flash command line. This
is actually rejected with linkserver v1.5.xx and after.

Signed-off-by: Yves Vandervennet <yves.vandervennet@nxp.com>
_cmd_core = ""

linkserver_cmd = ([self.linkserver, "flash"] + ["--probe", str(self.probe)] + self.override_cli + [self.device+_cmd_core])
linkserver_cmd = ([self.linkserver, "flash"] + ["--probe", str(self.probe)] + self.override_cli + [self.device])
Copy link
Contributor

Choose a reason for hiding this comment

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

Could it be conditional? Something like self.linkserver_version_str >= "v1.5.30"
So the runner can work for all LinkServer versions.

Copy link
Contributor Author

@yvanderv yvanderv Apr 26, 2024

Choose a reason for hiding this comment

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

No, because the newer version just enforces the core be not specified. In the past, LinkServer ignored it. With the current code, older versions will work as well.

@laodzu
Copy link
Contributor

laodzu commented Apr 29, 2024

I can confirm that this works for me, so for what it's worth, you can add

Tested-by: Detlev Zundel dzu@member.fsf.org

@danieldegrasse
Copy link
Contributor

Tested this with Linkserver 1.4.85, as well as 1.5.30. Both versions function correctly.

@dleach02 dleach02 added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Apr 30, 2024
@fabiobaltieri fabiobaltieri merged commit d6b7412 into zephyrproject-rtos:main May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: West West utility Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants