1@ECHO OFF
2
3ECHO INFO: Cleaning %CD%...
4
5%AZRTOS_IAR_BUILD% tx.ewp -clean Debug -log all
6IF %ERRORLEVEL% NEQ 0 (
7    ECHO ERROR: clean failed.
8    EXIT /B 1
9)
10
11%AZRTOS_IAR_BUILD% sample_threadx.ewp -clean Debug -log all
12IF %ERRORLEVEL% NEQ 0 (
13    ECHO ERROR: clean failed.
14    EXIT /B 1
15)
16
17RMDIR /Q /S Debug
18
19ECHO INFO: Clean completed successfully!
20