5.7.25. SE05X Invoke Garbage Collection Example¶
The example will trigger the garbage collection in SE05X.
Invoking CM_InvokeGarbageCollection
api will close the existing session to SE05X. To use SE05X, open session again.
Warning
Excessive calls to CM_InvokeGarbageCollection
API will impact the device durability
5.7.25.1. Building the Demo¶
Build Plug & Trust middleware stack. (Refer Building / Compiling)
Project:
se05x_InvokeGarbageCollection
5.7.25.2. Running the Example¶
If you have built a binary, flash the binary on to the board and reset the board.
If you have built an exe to be run from Windows using VCOM, run as:
se05x_InvokeGarbageCollection.exe <PORT NAME>
Where <PORT NAME> is the VCOM COM port.
On Raspberry-Pi or iMX board, run as:
./se05x_InvokeGarbageCollection
5.7.25.3. Console output¶
If everything is successful, the output will be similar to:
hostLib:WARN :Invoking this api will close the existing session to SE05X.
hostLib:WARN :To use SE05X, open session again.
hostLib:INFO :Sending Select command
hostLib:INFO :Command Successful!!!
hostLib:INFO :Command Response (Len=18)
6F 10 84 08 A0 00 00 01 51 00 00 00 A5 04 9F 65
01 FF
hostLib:INFO :Sending 'Invoke Garbage Collection' Command
hostLib:INFO :Command Successful!!!
hostLib:INFO :Command Response (Len=5)
FE 03 DF 25 00
App :INFO :se05x_InvokeGarbageCollection Success !!!...
App :INFO :ex_sss Finished