Many thanks Alice for the quick reply
The UART0 (as I writed) is configured and activated BEFORE invoking the function. I tried further tests, and I discovered that the IAP_ReinvokeISP seems "wrong" in the project where I need to enter ISP by user code (this project is several years old)
Screenshot 2025-02-05 095127.png
I tried in new project, and it works fine. Here below the "upgraded" IAP_ReinvokeISP that I have found in fsl_iap.c file
Screenshot 2025-02-05 100259.png
Using this versione It work also on this old project.
A further important question:
the board that need to program via ISP has only the UART0 RX & TX signals ruoted the ISP host board (that perform the programming), and we heve no chance to power off o reset the target board to restart it.
There is an ISP command that can be sent to target to force "exit" from ISP mode at end of programming?
Abele Barbieri