1@ECHO OFF 2 3ECHO INFO: Cleaning %CD%... 4 5ECHO INFO: Cleaning ThreadX_Library... 6DEL out.txt 2> NUL 7START /wait %AZRTOS_KEIL_UV% -j0 -c ThreadX_Library.uvprojx -o out.txt 8IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR 9TYPE out.txt 2> NUL 10 11ECHO INFO: Cleaning txm... 12DEL out.txt 2> NUL 13START /wait %AZRTOS_KEIL_UV% -j0 -c txm\txm.uvprojx -o out.txt 14IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR 15TYPE out.txt 2> NUL 16 17ECHO INFO: Cleaning demo_secure_zone... 18DEL out.txt 2> NUL 19START /wait %AZRTOS_KEIL_UV% -j0 -c demo_secure_zone\demo_secure_zone.uvprojx -o out.txt 20IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR 21TYPE out.txt 2> NUL 22 23ECHO INFO: Cleaning demo_threadx_non-secure_zone... 24DEL out.txt 2> NUL 25START /wait %AZRTOS_KEIL_UV% -j0 -c demo_threadx_non-secure_zone\demo_threadx_non-secure_zone.uvprojx -o out.txt 26IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR 27TYPE out.txt 2> NUL 28 29ECHO INFO: Cleaning sample_threadx_module... 30DEL out.txt 2> NUL 31START /wait %AZRTOS_KEIL_UV% -j0 -c sample_threadx_module\sample_threadx_module.uvprojx -o out.txt 32IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR 33TYPE out.txt 2> NUL 34 35DEL out.txt 2> NUL 36ECHO INFO: Cleaning completed successfully! 37EXIT /B 0 38 39:CLEAN_ERROR 40DEL out.txt 2> NUL 41ECHO ERROR: clean failed. 42EXIT /B 1 43