타깃 테스트에서 실수형 타입의 변수값을 출력할 때 sprintf 함수를 통해 결과값을 가지고 옵니다.
그런데 CodeWarrior에서 제공하는 라이브러리에서 실수형 타입에 대해 sprintf 함수를 사용하지 못하는 경우가 있습니다.
이런 경우에 원본 프로젝트에서 링크하는 라이브러리를 바꾸어 주거나 추가해주어야합니다.
현재 파악된 실수형 타입에 대해 sprintf 함수를 사용할 수 있는 라이브러리는 libc99_E200z650.a 입니다.
해당 라이브러리로 교체 후에 cs_tfx.h 파일에 내용을 다음과 같이 수정해주시면 됩니다.

수정 전

#define TFX_ftoa_writeBytes(value) \ 
do {\ 
	sprintf(buf, "%g", value);\ 
	TFX_writeBytes(buf);\ 
} while(0)

수정 후

 #define TFX_ftoa_writeBytes(value) \ 
do {\ 
	sprintf(buf, "%f", value);\ 
	TFX_writeBytes(buf);\ 
} while(0)

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

Thanks for your feedback.