Dear @Alice_Yang
Thank you for your reply.
Before putting the i2c function code into the face detection code, I already test the i2c function by creating a blank project and copy and paste the i2c code to it and try to understand it. The code is worked properly.
I already ignore all the code in face detection and run the i2c code only (Start the i2c code before any face detection code.), but the i2c non-blocking code is not function.
Are there any setting (startup or project settings) used by face detection affect the Flexcomm9 i2c function?
Since this new face detection code is written in C++ (the old one is written in C), is there anything I need to do before the i2c non-blocking mode can run?
I already spend some time to study the startup code and project settings of the face detection demo but still don't find any clue.
It is impossible for me to port the face detection code to led_blinky project. (I do not know how to debug it when error occurred.) I can only do is to add code to the face detection demo.
Please advise,
Regards,
Carl