How to start firmware application using LinkServer command line

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to start firmware application using LinkServer command line

680件の閲覧回数
mm0505
Contributor I

I'd like to know if there's a way to start the firmware application at the end of the flash command.

I'm running the following command in a script:

./LinkServer flash MIMXRT1166xxxxx:MIMXRT1160-EVK load /path/to/firmware.bin -a 0x30000000 -e

At the end of this command i need to start the firmware. Is there something like the "g" command in JLink?

I'm using LinkServer 1.2.45 command line tool (Ubuntu 20.04).

0 件の賞賛
3 返答(返信)

560件の閲覧回数
mm0505
Contributor I

Thanks for your answer!

From the log i noticed that, at the end of the procedure, the RT1160_reset.scp script is called

I changed the device in MIMXRT1166xxxxx:MIMXRT1160-EVK-CM7-ONLY to solve the problem:

Nt: Reset target (system)
Wc: ============= SCRIPT: RT1160_reset_M7.scp =============
Wc: SYSTEM Reset
Wc: DpID = 6BA02477
Wc: TAP 0: 6BA02477 Core 0: M7 APID: 84770001 ROM Table: 01000001*
Wc: TAP 0: 6BA02477 AP 1: APID: 24770011 ROM Table: E00FF003
Wc: TAP 0: 6BA02477 AP 2: APID: 54770002 ROM Table: 00000002
Wc: APID = 0x84770001
Wc: View cores on the DAP AP
Wc: TAP 0: 6BA02477 Core 0: M7 APID: 84770001 ROM Table: 01000001*
Wc: R15 = 0x00223104
Wc: Vector table SP/PC is the reset context.
Wc: PC = 0x2000246D
Wc: SP = 0x20040000
Wc: XPSR = 0x01000000
Wc: VTOR = 0x30002000
Wc: Set DEMCR = 0x010007F1
Wc: ============= END SCRIPT ==============================

 

After this, i come back in the same error if i do the verify command. I saw that in this case the reset is not automatically issued. Is there a way to execute the reset script aoutside the LinkServer verify command?

Thank you for your help!

0 件の賞賛

488件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

The execution of "verify" command does not end with a reset. You can inspect the help page for each of the commands (i.e. "LinkServer help flash <operation>") for some details.

The only way to reset the target once you execute the "verify", would to execute an independent script through "redlinkserv" (see "--script" parameter). However, you'll have to wait till the end of October to have a new LinkServer released because there's an issue with this particular functionality. I suggest you take a look at the available commands supported by "redlinkserv". Your script should be a sequence of: list probes, open desired probe, execute system reset, close probe.

Regards,

MCUXpresso IDE Support

0 件の賞賛

659件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

A reset is automatically issued at the end of flash programming sequence, so your app should be executed afterwards. You can inspect the LinkServer logs and look for something like:

Nt: Reset target (system)
Nc: Starting execution using system reset with a stall address

Maybe your app is not loaded by the bootrom or ends in some exception handler?

Regards,

MCUXpresso IDE Support

   

0 件の賞賛