본문 바로가기
임베디드.일렉트로닉스/nRF52

nRF5 SDK 버그. __putchar(int ch, FILE * p_file)

by 리치굿맨 2018. 6. 7.


버그내용. 


nRF5 SDK 에서 배포된 파일중 retarget.c 의 아래 함수 중 붉은 색 부분. 


 

int __putchar(int ch, FILE * p_file)
{
    UNUSED_PARAMETER(p_file);

    UNUSED_VARIABLE(app_uart_put((uint8_t)ch));
    return ch;
}




해결책. 


함수인자를 아래 파랑색 부분처럼 변경. 


 

int __putchar(int ch, __printf_tag_ptr p_file)

{

    UNUSED_PARAMETER(p_file);

    UNUSED_VARIABLE(app_uart_put((uint8_t)ch));
    return ch;


}




 본 글 포함된 상위 정리글


 https://igotit.tistory.com/244 의 nRF5





첫등록 : 2018년 6월 7일

최종수정 : 


본 글 단축주소 : https://igotit.tistory.com/1691




태그

댓글0


.    
현물 |선물 인버스 |선물 USDT     현물 | 선물 USDT |봇제작툴/카피트레이딩     현물 |선물 인버스 |선물 USDT     .