Hi,
Question about the return value of a customized action function in a JLinkScript file.
In my script I have the "int SetupTarget(void)" function which is called when I run the following command:
JLink.exe -CommanderScript <CommandScriptFilename> -JLinkScriptFile <JLinkScriptFilename>
In my JLinkScript I want to return an error in case of a failure but no matter what code (-1, 1, -1000, 1000) I return in the SetupTarget() function I don't see any difference in the output.
The following thread forum.segger.com/index.php/Thr…cript-file-documentation/ describes the same issue.
Is it correct that the return code of the SetupTarget(void) function is ignored?
Question about the return value of a customized action function in a JLinkScript file.
In my script I have the "int SetupTarget(void)" function which is called when I run the following command:
JLink.exe -CommanderScript <CommandScriptFilename> -JLinkScriptFile <JLinkScriptFilename>
In my JLinkScript I want to return an error in case of a failure but no matter what code (-1, 1, -1000, 1000) I return in the SetupTarget() function I don't see any difference in the output.
The following thread forum.segger.com/index.php/Thr…cript-file-documentation/ describes the same issue.
Is it correct that the return code of the SetupTarget(void) function is ignored?