The Controller Tester Target Plugin replaces the original main function with the cs_renamed_main function so that when the software is run on the target, the main function defined in Controller Tester is executed.
If the original entry point function name is not main, you need to modify the cs_tfx.c and cs_build_macro.h files.
The cs_tfx.c file is included in the Controller Tester installation path, but cs_build_macro.h is generated every time you export the target test code, so you need to apply the patch to fix the problem.

If you suspect an entry point function name problem, you can check the code below to modify it.

cs_tfx.c

#if defined main /* normal */
#undef main // replace with entry point function name
#endif

cs_build_macro.h

#if !defined CS_START_FROM_IUT
#define main	__cs_renamed_main // replace with entry point function name

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.