Hi
I believe that the code is not working properly
Would be possible that you send me your project, if you can not share on the community your code, you can create a case request on the nxp web page and send the project on it and it will be private.
Regards
Vicente