LinkServer looking for a file with a "/" in the filename when trying to flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LinkServer looking for a file with a "/" in the filename when trying to flash

Jump to solution
1,830 Views
Luke_M
Contributor I

I am attempting to flash a board using the command line.

Chip is an LPC11U24/401

Attempting to flash using LinkServer with the command:
LinkServer.exe flash LPC11U24/401 load "Main.axf"

Gives the error:
INFO: Exact match for LPC11U24/401 found
INFO: Selected device LPC11U24/401:
INFO: Getting available probes
INFO: Selected probe #1 MLXAIXAEG1GMO (MCU-LINK (r0FF) CMSIS-DAP V3.133)
INFO: MCU-Link firmware update CHECK: local firmware [3.140] can be programmed on the selected probe ([MLXAIXAEG1GMO] [MCU-LINK (r0FF) CMSIS-DAP V3.133])
Firmware update CHECK: - the update can be performed using `AUTO` mode
CRITICAL: Critical error
ERRMSG: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\LM\\AppData\\Local\\Temp\\tmp7_naesyr\\LPC11U24/401.xml'

Since a file cannot exist with a forward slash in it, something seems wrong here with what its looking for (LPC11U24/401.xml).


I am able to flash using redlink, on the command line, with the command:
./crt_emu_cm_redlink.exe --flash-load-exec  "Main.axf" -g --debug 2  --vendor NXP -p LPC11U24_401  --probeserial MLXAIXAEG1GMO -CoreIndex=0 --flash-driver LPC11_12_13_32K_4K.cfx -x "<PATH TO DEVICE XML FILES>"  --flash-hashing

However, when I run the GUI flash tool through MCUXpresso, the redlink command produced is the same as above, but with the LPC11U24_401 replaced with a LPC11U24/401, which again causes it to fail with an error.

Luke_M_0-1715098520442.png

Luke_M_1-1715098709139.png

My device/chip XML files both exist in the directory its looking in for them, but they are named LPC11U24_401.xml and LPC11U24_401_part.xml because you cant have a forward slash in a file name, which seems to be what the programs are looking for.

 

 

Labels (1)
0 Kudos
Reply
1 Solution
1,675 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport
Hello, thanks for your comments the report was uploaded, and the engineers will work on this for the next release, however, I have reproduced this issue on LPC11C24 since I only have this board. 

As for the solution, I also download the latest version of MCUXpresso IDE and LPCOpen example. I have verified that using MCUXpresso IDE v11.10.0_ear2, the code example can be programmed and run successfully on LPCXpresso11C24/CD rev PA1 board.

MCUXpresso IDE for NXP MCUs | Linux, Windows and MacOS | NXP Semiconductors | NXP Semiconductors 
Best regards,
Pavel

View solution in original post

3 Replies
1,676 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport
Hello, thanks for your comments the report was uploaded, and the engineers will work on this for the next release, however, I have reproduced this issue on LPC11C24 since I only have this board. 

As for the solution, I also download the latest version of MCUXpresso IDE and LPCOpen example. I have verified that using MCUXpresso IDE v11.10.0_ear2, the code example can be programmed and run successfully on LPCXpresso11C24/CD rev PA1 board.

MCUXpresso IDE for NXP MCUs | Linux, Windows and MacOS | NXP Semiconductors | NXP Semiconductors 
Best regards,
Pavel
1,741 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry for the late response I´m waiting for more information, my department are analyzing your case.

Best regards,
Pavel

0 Kudos
Reply
1,809 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will support your case, let me get more information when I have it, and I will contact you.

Best regard,
Pavel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1860692%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELinkServer%20looking%20for%20a%20file%20with%20a%20%22%2F%22%20in%20the%20filename%20when%20trying%20to%20flash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860692%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20attempting%20to%20flash%20a%20board%20using%20the%20command%20line.%3C%2FP%3E%3CP%3EChip%20is%20an%20LPC11U24%2F401%3C%2FP%3E%3CP%3EAttempting%20to%20flash%20using%20LinkServer%20with%20the%20command%3A%3CBR%20%2F%3ELinkServer.exe%20flash%20LPC11U24%2F401%20load%20%22Main.axf%22%3C%2FP%3E%3CP%3EGives%20the%20error%3A%3CBR%20%2F%3EINFO%3A%20Exact%20match%20for%20LPC11U24%2F401%20found%3CBR%20%2F%3EINFO%3A%20Selected%20device%20LPC11U24%2F401%3A%3CBR%20%2F%3EINFO%3A%20Getting%20available%20probes%3CBR%20%2F%3EINFO%3A%20Selected%20probe%20%231%20MLXAIXAEG1GMO%20(MCU-LINK%20(r0FF)%20CMSIS-DAP%20V3.133)%3CBR%20%2F%3EINFO%3A%20MCU-Link%20firmware%20update%20CHECK%3A%20local%20firmware%20%5B3.140%5D%20can%20be%20programmed%20on%20the%20selected%20probe%20(%5BMLXAIXAEG1GMO%5D%20%5BMCU-LINK%20(r0FF)%20CMSIS-DAP%20V3.133%5D)%3CBR%20%2F%3EFirmware%20update%20CHECK%3A%20-%20the%20update%20can%20be%20performed%20using%20%60AUTO%60%20mode%3CBR%20%2F%3ECRITICAL%3A%20Critical%20error%3CBR%20%2F%3EERRMSG%3A%20FileNotFoundError%3A%20%5BErrno%202%5D%20No%20such%20file%20or%20directory%3A%20'C%3A%5C%5CUsers%5C%5CLM%5C%5CAppData%5C%5CLocal%5C%5CTemp%5C%5Ctmp7_naesyr%5C%5CLPC11U24%2F401.xml'%3C%2FP%3E%3CP%3ESince%20a%20file%20cannot%20exist%20with%20a%20forward%20slash%20in%20it%2C%20something%20seems%20wrong%20here%20with%20what%20its%20looking%20for%20(LPC11U24%2F401.xml).%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20am%20able%20to%20flash%20using%20redlink%2C%20on%20the%20command%20line%2C%20with%20the%20command%3A%3CBR%20%2F%3E.%2Fcrt_emu_cm_redlink.exe%20--flash-load-exec%26nbsp%3B%20%22Main.axf%22%20-g%20--debug%202%26nbsp%3B%20--vendor%20NXP%20-p%20LPC11U24_401%26nbsp%3B%20--probeserial%20MLXAIXAEG1GMO%20-CoreIndex%3D0%20--flash-driver%20LPC11_12_13_32K_4K.cfx%20-x%20%22%3CPATH%20to%3D%22%22%20device%3D%22%22%20xml%3D%22%22%20files%3D%22%22%3E%22%26nbsp%3B%20--flash-hashing%3C%2FPATH%3E%3C%2FP%3E%3CP%3EHowever%2C%20when%20I%20run%20the%20GUI%20flash%20tool%20through%20MCUXpresso%2C%20the%20redlink%20command%20produced%20is%20the%20same%20as%20above%2C%20but%20with%20the%26nbsp%3BLPC11U24_401%20replaced%20with%20a%26nbsp%3BLPC11U24%2F401%2C%20which%20again%20causes%20it%20to%20fail%20with%20an%20error.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luke_M_0-1715098520442.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luke_M_0-1715098520442.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277519iE523510215A93F84%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luke_M_0-1715098520442.png%22%20alt%3D%22Luke_M_0-1715098520442.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luke_M_1-1715098709139.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luke_M_1-1715098709139.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277520i67696E4106FAC47A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luke_M_1-1715098709139.png%22%20alt%3D%22Luke_M_1-1715098709139.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EMy%20device%2Fchip%20XML%20files%20both%20exist%20in%20the%20directory%20its%20looking%20in%20for%20them%2C%20but%20they%20are%20named%26nbsp%3BLPC11U24_401.xml%20and%26nbsp%3BLPC11U24_401_part.xml%20because%20you%20cant%20have%20a%20forward%20slash%20in%20a%20file%20name%2C%20which%20seems%20to%20be%20what%20the%20programs%20are%20looking%20for.%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1860692%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC11xx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1875668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LinkServer%20looking%20for%20a%20file%20with%20a%20%22%2F%22%20in%20the%20filename%20when%20trying%20to%20flash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1875668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3EHello%2C%20thanks%20for%20your%20comments%20the%20report%20was%20uploaded%2C%20and%20the%20engineers%20will%20work%20on%20this%20for%20the%20next%20release%2C%20however%2C%20I%20have%20reproduced%20this%20issue%20on%20LPC11C24%20since%20I%20only%20have%20this%20board.%26nbsp%3B%3CBR%20clear%3D%22none%22%20%2F%3E%0A%3CP%3EAs%20for%20the%20solution%2C%20I%20also%20download%20the%20latest%20version%20of%20MCUXpresso%20IDE%20and%20LPCOpen%20example.%20I%20have%20verified%20that%20using%26nbsp%3BMCUXpresso%20IDE%20v11.10.0_ear2%2C%20the%20code%20example%20can%20be%20programmed%20and%20run%20successfully%20on%20LPCXpresso11C24%2FCD%20rev%20PA1%20board.%3C%2FP%3E%0A%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fdevelopment-software%2Fmcuxpresso-software-and-tools-%2Fmcuxpresso-integrated-development-environment-ide%3AMCUXpresso-IDE%3F_gl%3D1*q2o1ae*_ga*NDQ1NDMzMTM2LjE3MTY4MjE2NDQ.*_ga_WM5LE0KMSH*MTcxNjgyMTY0NC4xLjAuMTcxNjgyMTY0NC4wLjAuMA..%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20shape%3D%22rect%22%3EMCUXpresso%20IDE%20for%20NXP%20MCUs%20%7C%20Linux%2C%20Windows%20and%20MacOS%20%7C%20NXP%20Semiconductors%20%7C%20NXP%20Semiconductors%3C%2FA%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fsoftware-library%2Flpcopen-software-development-platform-lpc11xx%3ALPCOPEN-SOFTWARE-FOR-LPC11XX%3F_gl%3D1*q2o1ae*_ga*NDQ1NDMzMTM2LjE3MTY4MjE2NDQ.*_ga_WM5LE0KMSH*MTcxNjgyMTY0NC4xLjAuMTcxNjgyMTY0NC4wLjAuMA..%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%20shape%3D%22rect%22%3ELPCOpen%20Software%20for%20LPC11XX%20%7C%20NXP%20Semiconductors%3C%2FA%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EBest%20regards%2C%3CBR%20%2F%3EPavel%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1866499%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LinkServer%20looking%20for%20a%20file%20with%20a%20%22%2F%22%20in%20the%20filename%20when%20trying%20to%20flash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1866499%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20sorry%20for%20the%20late%20response%20I%C2%B4m%20waiting%20for%20more%20information%2C%20my%20department%20are%20analyzing%20your%20case.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1860893%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LinkServer%20looking%20for%20a%20file%20with%20a%20%22%2F%22%20in%20the%20filename%20when%20trying%20to%20flash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860893%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20my%20name%20is%20Pavel%2C%20and%20I%20will%20support%20your%20case%2C%20let%20me%20get%20more%20information%20when%20I%20have%20it%2C%20and%20I%20will%20contact%20you.%3C%2FP%3E%0A%3CP%3EBest%20regard%2C%3CBR%20%2F%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E