We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am wondering if anyone knows how to get rid of programming error messages?
Example, I hit the download button to do my erase, program, verify, and if my target JTAG device is not connected an error will pop up that says, 'No JTAG Devices Found'. I'd rather not see that error window pop up. Can this be disabled?
Okay.....So that does not answer my question. Thanks for nothing.
If you would listen to what I said, that was merely an example. Example being one of many possibilities. So still, I would like to know, does anyone know if there is a way to turn off this pop-up error message.
I am using the command line commands where you can create an output file that tells you if the part programming passed or failed. I'm trying to make it automated, and if an operator has to press enter every time an error message pop-up shows itself, it's not really that automated.
I am using the command line commands so am I and here is the cure;
extract from the below what you need
if "%MUSCUM%"=="0" goto tellmfy @ECHO ON REM match mode @ECHO OFF goto infodon
:tellmfy @ECHO ON REM ************* MODIFIED MODE ************ @ECHO OFF :infodon call wipes cd ..\bs
@ECHO OFF if "%MUSDEB%"=="0" goto setmdb goto cksal
:setmdb @ECHO ON REM ********** DEBUG INFO IN FILE ********** @ECHO OFF copy ..\sc\cond\dbgflad.h dbgflga.inc >..\trash\trashbin copy ..\sc\cond\dbgflcd.h debugflg.h >..\trash\trashbin goto setdn
:cksal @ECHO OFF
copy ..\sc\cond\dbgflan.h dbgflga.inc >..\trash\trashbin copy ..\sc\cond\dbgflcn.h debugflg.h >..\trash\trashbin :setdn
xcopy C:\aglobal\p89c_rx2.h *.* >..\trash\trashbin xcopy C:\aglobal\p89c_rx2.inc *.* >..\trash\trashbinif
if "%MUSCUS%"=="1" goto side @ECHO ON REM making %1 front @ECHO OFF
IF "%1"=="b" goto lcb IF "%1"=="ba" goto lcba IF "%1"=="l" goto lcl echo on rem must specify 'b' for rev b board build for flip-dot rem must specify 'ba' for rev b board build for asic rem must specify 'l' for rev b board build for LED only pause goto getout
:lcb copy ..\sc\cond\sfb.h condit.h >..\trash\trashbin copy ..\ss\usmainb.c usmain.x >..\trash\trashbin copy ..\ss\usledst1.c usledstb.x >..\trash\trashbin copy ..\ss\ussgndv1.c ussgndvr.x >..\trash\trashbin goto lxx
:lcba copy ..\sc\cond\sfba.h condit.h >..\trash\trashbin copy ..\ss\usmainb.c usmain.x >..\trash\trashbin copy ..\ss\usledst2.c usledstb.x >..\trash\trashbin copy ..\ss\ussgndv2.c ussgndvr.x >..\trash\trashbin goto lxx
:lcl copy ..\sc\cond\sfl1.h condit.h >..\trash\trashbin copy ..\ss\usmainl.c usmain.x >..\trash\trashbin copy ..\ss\usledst3.c usledstb.x >..\trash\trashbin copy ..\ss\ussgndv3.c ussgndvr.x >..\trash\trashbin goto lxx
:lxx xcopy ..\ss\*.c *.* >..\trash\trashbin xcopy ..\ss\*.h *.* >..\trash\trashbin xcopy ..\ss\*.a51 *.* >..\trash\trashbin xcopy ..\sc\*.lib *.* >..\trash\trashbin xcopy ..\sc\*.h *.* >..\trash\trashbin xcopy ..\sc\*.inc *.* >..\trash\trashbin
REM remove multiversions del ussgndv*.c ren ussgndvr.x ussgndvr.c del usledst*.c ren usledstb.x usledstb.c del usmain*.c ren usmain.x usmain.c
if not exist cmplst.txt goto nocmdl del cmplst.txt :nocmdl call ..\mk\batasm usstart %1 call ..\mk\batasm usasmfn %1 call ..\mk\batcmp usmix %1 call ..\mk\batcmp usmain %1 call ..\mk\batcmp usledstb %1 call ..\mk\batcmp usauxsgn %1 call ..\mk\batcmp uscmddcd %1 call ..\mk\batcmp usinthdr %1 call ..\mk\batcmp usinit %1 call ..\mk\batcmp usxdata %1 rem ren usxdata.src usxasm.a51 rem call ..\mk\batasm usxasm %1 call ..\mk\batcmp usbitmap %1 call ..\mk\batcmp usibis %1 call ..\mk\batcmp ussgndvr %1 call ..\mk\batcmp us485 %1 if not exist cmplst.txt goto naser echo on REM ///////////////////////////////// REM ///////// COMPILE ERRORS //////// REM ///////////////////////////////// type cmplst.txt | more REM saved in file cmplst.txt REM making %1 front pause @echo off :naser
if not exist uscusign.lib goto usliex del uscusign.lib :usliex c:\tools\keil\c51\bin\lib51 c uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a usmain.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a us485.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a usauxsgn.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a usbitmap.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a uscmddcd.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a usibis.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a usinit.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a ussgndvr.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a usxdata.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a usxasm.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a mbs.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a acs.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a ccs.obj to uscusign.lib >..\trash\trashbin c:\tools\keil\c51\bin\lib51 a usmix.obj to uscusign.lib >..\trash\trashbin
c:\tools\keil\c51\bin\bl51 usstart.obj, usinthdr.obj, usledstb.obj, usasmfn.obj, uscusign.lib, c51s.lib TO s.ABS RS(256) IX >protl.log IF errorlevel=2 GOTO tell goto show :tell echo on REM //////////////////////////////////////// REM //////////// linker ERRORS ///////////// REM //////////////////////////////////////// REM errors and warnings are in protl.log REM link map is in uscusign.m51 pause :show echo on type protl.log | more REM making %1 front pause @ECHO OFF
if "%MUSDEB%"=="0" goto setdbw
IF "%1"=="b" goto hexb IF "%1"=="ba" goto hexba IF "%1"=="l" goto hexbl
:hexbl c:\tools\keil\c51\bin\oh51 s.abs HEXFILE (..\hex\U2LF%2.hex) echo on fc ..\hex\U2LF%2.hex ..\mtc\U2LF.hex >x.log goto hexit
:hexba c:\tools\keil\c51\bin\oh51 s.abs HEXFILE (..\hex\U2BAF%2.hex) echo on fc ..\hex\U2BAF%2.hex ..\mtc\U2BAF.hex >x.log goto hexit
:hexb c:\tools\keil\c51\bin\oh51 s.abs HEXFILE (..\hex\U2BF%2.hex) echo on fc ..\hex\U2BF%2.hex ..\mtc\U2BF.hex >x.log goto hexit
:hexit pause type x.log
goto getout
:setdbw
IF "%1"=="b" goto dexb IF "%1"=="ba" goto dexba IF "%1"=="l" goto dexbl
:dexbl c:\tools\keil\C51\bin\oh51 s.abs HEXFILE (..\hex\U2LFDBG.hex) echo on fc ..\hex\U2LFDBG.hex ..\mtc\U2LFDBG.hex >x.log goto dexit
:dexba c:\tools\keil\C51\bin\oh51 s.abs HEXFILE (..\hex\U2BAFDBG.hex) echo on fc ..\hex\U2BAFDBG.hex ..\mtc\U2BAFDBG.hex >x.log goto dexit
:dexb c:\tools\keil\C51\bin\oh51 s.abs HEXFILE (..\hex\U2BFDBG.hex) echo on fc ..\hex\U2BFDBG.hex ..\mtc\U2BFDBG.hex >x.log goto dexit
:dexit pause type x.log
:getout cd ..\mk goto exit
:side call ..\mk\makss.bat %1 %2 goto getout
:exit
You didn't mention the key fact that you're trying to do this from the command line! That makes all the difference.
In most cases, uVision is only calling an external utility to do downloading/programming. If that's so in your case, then could you just use the utility directly - thus avoiding uVision completely?