[Zephyr-devel] West Flash not supports JLinkScriptFile option for Jlink programming


Bolivar, Marti
 

This is not currently possible.

You are welcome to send a pull request adding the feature.

On Wed, Sep 14 2022, Srinivasan Tamilarasan via lists.zephyrproject.org wrote:
Hi All,
I need to use the custom Jlink script file, after flashing and resetting the target using -JLinkScriptFile command in jlink. This custom script is needed for our application to start executing.

When I use the zephyr west flash command to program our device, there is no option to add the JLinkScriptFile. Kindly help me to resolve the issue.

Regards,
Srinivasan



Henrik Brix Andersen
 

Hi

Actually, it is possible. We are using this in our board.cmake downstream:

board_runner_args(jlink "--device=foo" "--tool-opt=-jlinkscriptfile /path/to/foo.JLinkScript")

Brgds,
Brix
--
Henrik Brix Andersen

On 17 Sep 2022, at 00.10, Bolivar, Marti via lists.zephyrproject.org <marti.bolivar=nordicsemi.no@...> wrote:

This is not currently possible.

You are welcome to send a pull request adding the feature.


David Leach
 

I also had a PR I closed a while back that was playing around with adding this:

https://github.com/zephyrproject-rtos/zephyr/pull/13814

David

-----Original Message-----
From: users@... <users@...> On Behalf Of Henrik Brix Andersen via lists.zephyrproject.org
Sent: Thursday, September 29, 2022 4:24 AM
To: marti.bolivar@...
Cc: srinivasan.tamilarasan@...; users@...; devel@...
Subject: Re: [Zephyr-users] [Zephyr-devel] West Flash not supports JLinkScriptFile option for Jlink programming

Hi

Actually, it is possible. We are using this in our board.cmake downstream:

board_runner_args(jlink "--device=foo" "--tool-opt=-jlinkscriptfile /path/to/foo.JLinkScript")

Brgds,
Brix
--
Henrik Brix Andersen

On 17 Sep 2022, at 00.10, Bolivar, Marti via lists.zephyrproject.org <marti.bolivar=nordicsemi.no@...> wrote:

This is not currently possible.

You are welcome to send a pull request adding the feature.


Bolivar, Marti
 

Neat! Thanks for the correction.

On Thu, Sep 29 2022, Henrik Brix Andersen wrote:
Hi

Actually, it is possible. We are using this in our board.cmake downstream:

board_runner_args(jlink "--device=foo" "--tool-opt=-jlinkscriptfile /path/to/foo.JLinkScript")

Brgds,
Brix
--
Henrik Brix Andersen

On 17 Sep 2022, at 00.10, Bolivar, Marti via lists.zephyrproject.org <marti.bolivar=nordicsemi.no@...> wrote:

This is not currently possible.

You are welcome to send a pull request adding the feature.