Hi,
I'm developing on Ubunto 12.04. I'm using the command-line JLinkExe tool for programming only in a very simple Makefile environment.
My problem is that JLinkExe is returning a nonzero exit status in scripting mode, even when it completes the script successfully. The same is not true of commands that are entered interactively to the JLinkExe shell.
I have attached a shell script which demonstrated the inconsistency.
The output of the script is:
Display All
There are lots of standards about exit status: en.wikipedia.org/wiki/Exit_status has a good discussion. But the one consistent thing is that exit status is zero for no errors, and nonzero for errors.
In my view the reasonable thing for running a script is to exit zero when all the commands completed successfully, and nonzero when one of more commands fail. Would it be possible to implement this?
Regards,
Mark
I'm developing on Ubunto 12.04. I'm using the command-line JLinkExe tool for programming only in a very simple Makefile environment.
My problem is that JLinkExe is returning a nonzero exit status in scripting mode, even when it completes the script successfully. The same is not true of commands that are entered interactively to the JLinkExe shell.
I have attached a shell script which demonstrated the inconsistency.
The output of the script is:
Source Code
- markrages@thinqpad:/opt/JLink_Linux_V462a$ sh bugreport.sh
- SEGGER J-Link Commander V4.62a ('?' for help)
- Compiled Feb 6 2013 11:42:45
- DLL version V4.62a, compiled Feb 6 2013 11:42:42
- Firmware: J-Link V9 compiled Jan 11 2013 12:33:03
- Hardware: V9.00
- S/N: 59100372
- Feature(s): GDB
- VTarget = 0.000V
- J-Link>
- Interactive result: 0
- SEGGER J-Link Commander V4.62a ('?' for help)
- Compiled Feb 6 2013 11:42:45
- Script file read successfully.
- DLL version V4.62a, compiled Feb 6 2013 11:42:42
- Firmware: J-Link V9 compiled Jan 11 2013 12:33:03
- Hardware: V9.00
- S/N: 59100372
- Feature(s): GDB
- VTarget = 0.000V
- Processing script file...
- Script processing completed.
- Script result: 1
There are lots of standards about exit status: en.wikipedia.org/wiki/Exit_status has a good discussion. But the one consistent thing is that exit status is zero for no errors, and nonzero for errors.
In my view the reasonable thing for running a script is to exit zero when all the commands completed successfully, and nonzero when one of more commands fail. Would it be possible to implement this?
Regards,
Mark