Part Number: TMS320F28035
Hi Team,
There's an issue from the customer need your help:
"${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd2000.exe" "${CG_TOOL_ROOT}/bin/hex2000.exe" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"
"${copy_PARENT}/rename"
An error is reported when calling the renam script, and the rename script is executed normally
An error message is reported
Location: Line: 1 Character: 2
+ (Get-Item YLD200_28S5.bin). LastWriteTime.ToString('yyMMdd_HHmm')
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (E:\SVN_CHECK\03...YLD200_28S5.bin:String) [Get-Item], ItemNotFoundExcep
tion
+ FullyQualifiedErrorId : PathNotFound, Microsoft.PowerShell.Commands.GetItemCommand
cannot call methods on null value expressions.
Location: Line: 1 Character: 1
+ (Get-Item YLD200_28S5.bin). LastWriteTime.ToString('yyMMdd_HHmm')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
The system could not find the specified file.
Get-Item : Path 'E:\SVN_CHECK\03Project_Code\01Source\YLD200-28S5\Prj\YLD200_28S5\YLD200_28S5.out' could not be found because it does not
exist.
Location: Line: 1 Character: 2
+ (Get-Item YLD200_28S5.out). LastWriteTime.ToString('yyMMdd_HHmm')
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (E:\SVN_CHECK\03...YLD200_28S5.out:String) [ Get-Item], ItemNotFoundExcep
tion
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
cannot be right Null value expressions call methods.
Location: Line: 1 Character: 1
+ (Get-Item YLD200_28S5.out). LastWriteTime.ToString('yyMMdd_HHmm')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
The system could not find the specified file.
Get-Item : Path 'E:\SVN_CHECK\03Project_Code\01Source\YLD200-28S5\Prj\YLD200_28S5\YLD200_28S5.hex' not found because it doesn't
exist.
Location: Line: 1 Character: 2
+ (Get-Item YLD200_28S5.hex). LastWriteTime.ToString('yyMMdd_HHmm')
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (E:\SVN_CHECK\03...YLD200_28S5.hex:String) [ Get-Item], ItemNotFoundExcep
tion
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
cannot be right Null value expressions call methods.
Location: Line: 1 Character: 1
+ (Get-Item YLD200_28S5.hex). LastWriteTime.ToString('yyMMdd_HHmm')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
The system could not find the specified file.
Get-Item: Path 'E:\SVN_CHECK\03Project_Code\01Source\YLD200-28S5\Prj\YLD200_28S5\YLD200_28S5.map' could not be found because it does not
exist.
Location: Line: 1 Character: 2
+ (Get-Item YLD200_28S5.map). LastWriteTime.ToString('yyMMdd_HHmm')
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (E:\SVN_CHECK\03...YLD200_28S5.map:String) [ Get-Item], ItemNotFoundExcep
tion
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
cannot be right Null value expressions call methods.
Location: Line: 1 Character: 1
+ (Get-Item YLD200_28S5.map). LastWriteTime.ToString('yyMMdd_HHmm')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
The system could not find the specified file.
gmake[2]: [post-build] Error 1 (ignored)
This is the content of the rename script, and the function is very simple, just change the name of the generated file. Execution via post-build is not possible, direct execution is normal
@echo off
set bin_name=YLD200_28S5
:: The following is not modified!!!
for /f "usebackq" %%i in (`powershell "(Get-Item %bin_name%.bin).LastWriteTime.ToString('yyMMdd_HHmm')"`) do set time=%%i
ren "%bin_name%.bin" "%bin_name%_%time%.bin"
for /f "usebackq" %%i in (`powershell "(Get-Item %bin_name%.out).LastWriteTime.ToString('yyMMdd_HHmm')"`) do set time=%%i
ren "%bin_name%.out" "%bin_name%_%time%.out"
for /f "usebackq" %%i in (`powershell "(Get-Item %bin_name%.hex).LastWriteTime.ToString('yyMMdd_HHmm')"`) do set time=%%i
ren "%bin_name%.hex" "%bin_name%_%time%.hex"
for /f "usebackq" %%i in (`powershell "(Get-Item %bin_name%.map).LastWriteTime.ToString('yyMMdd_HHmm')"`) do set time=%%i
ren "%bin_name%.map" "%bin_name%_%time%.map"
Best Regards,
Ben