LPC-Link2 firmware update script cannot handle spaces in %temp% path.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC-Link2 firmware update script cannot handle spaces in %temp% path.

950 次查看
rshipman
Contributor V

Hi,

(I'm reposting this, as I think something went wrong with the last one.)

I just tried running the script C:\nxp\LPCScrypt_2.1.2_57\scripts\program_CMSIS.cmd and it generated the following error, although it seems to have programmed the LPC-Link2 anyway:

LPCScrypt - CMSIS-DAP firmware programming script v2.1.2 Nov 2020.

Connect an LPC-Link2 or LPCXpresso V2/V3 Board via USB then press Space.

Press any key to continue . . .

Booting LPCScrypt target with "LPCScrypt_240.bin.hdr"
LPCScrypt target booted
..
Programming LPC-Link2 with "LPC432x_CMSIS_DAP_V5_361.bin.hdr"

C:\Users\Ronnie


Error: <Command line>:1: Unknown memory 'Shipman\AppData\Local\Temp\Scrypt.log'
Script cmd: program C:\nxp\LPCScrypt_2.1.2_57\probe_firmware\LPCLink2\LPC432x_CMSIS_DAP_V5_361.bin.hdr SPIFI Shipman\AppData\Local\Temp\Scrypt.log
Last target cmd: =queryFlash
Terminated with errors
The system cannot find the path specified.
ECHO is off.
Retrying ...

C:\Users\Ronnie


Error: <Command line>:1: Unknown memory 'Shipman\AppData\Local\Temp\Scrypt.log'
Script cmd: program C:\nxp\LPCScrypt_2.1.2_57\probe_firmware\LPCLink2\LPC432x_CMSIS_DAP_V5_361.bin.hdr SPIFI Shipman\AppData\Local\Temp\Scrypt.log
Last target cmd: =queryFlash
Terminated with errors
The system cannot find the path specified.
ECHO is off.
Retrying ...
Slowing clock ...
.
Programmed 30736 bytes to 0x14000000 in 0.185s (162.132KB/sec)

- LPC-Link2 programmed successfully and has the unique ID: NYBSL2KS
- To use: make link JP1 (nearest USB) and reboot.

Connect Next Board then press Space (or CTRL-C to Quit)

Press any key to continue . . .
Terminate batch job (Y/N)?

My %temp% variable is:

C:\nxp\LPCScrypt_2.1.2_57>echo %temp%
C:\Users\Ronnie Shipman\AppData\Local\Temp

The space char in the temp path is the problem. When I change %temp% the script worked:

C:\nxp\LPCScrypt_2.1.2_57>mkdir c:\Temp

C:\nxp\LPCScrypt_2.1.2_57>set temp=C:\Temp

C:\nxp\LPCScrypt_2.1.2_57>echo %temp%
C:\Temp

C:\nxp\LPCScrypt_2.1.2_57>scripts\program_CMSIS

LPCScrypt - CMSIS-DAP firmware programming script v2.1.2 Nov 2020.

Connect an LPC-Link2 or LPCXpresso V2/V3 Board via USB then press Space.

Press any key to continue . . .

.
Programming LPC-Link2 with "LPC432x_CMSIS_DAP_V5_361.bin.hdr"

- LPC-Link2 programmed successfully and has the unique ID: NYBSL2KS
- To use: make link JP1 (nearest USB) and reboot.

Connect Next Board then press Space (or CTRL-C to Quit)

Press any key to continue . . .

Booting LPCScrypt target with "LPCScrypt_240.bin.hdr"
LPCScrypt target booted
.
Programming LPC-Link2 with "LPC432x_CMSIS_DAP_V5_361.bin.hdr"

- LPC-Link2 programmed successfully and has the unique ID: KZBQGWCV
- To use: make link JP1 (nearest USB) and reboot.

Connect Next Board then press Space (or CTRL-C to Quit)

Press any key to continue . . .
Terminate batch job (Y/N)? y

C:\nxp\LPCScrypt_2.1.2_57>

 

Kind regards,
Ronnie

0 项奖励
回复
1 回复

932 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello rshipman,

Thanks for your sharing.

 

BR

Alice

0 项奖励
回复