Controller Tester Target Plugin은 원본 main 함수를 cs_renamed_main 함수로 이름을 대체하여, 타깃에서 소프트웨어를 실행하면 Controller Tester에서 정의한 main 함수가 수행되도록 합니다.
원본의 entry point 함수 이름이 main이 아닌 경우에는 cs_tfx.c와 cs_build_macro.h 파일을 수정해야 합니다.
cs_tfx.c 파일은 Controller Tester 설치 경로에 있지만, cs_build_macro.h는 ‘타깃 테스트 코드 내보내기’를 할 때마다 생성되는 파일이기 때문에 패치를 적용해야 문제를 해결할 수 있습니다.

entry point 함수 이름 문제가 의심되는 경우, 아래의 코드를 수정하여 확인할 수 있습니다.

cs_tfx.c

#if defined main /* normal */
#undef main // entry point 함수 이름으로 교체
#endif

cs_build_macro.h

#if !defined CS_START_FROM_IUT
#define main	__cs_renamed_main //entry point 함수명으로 교체

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

Thanks for your feedback.