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

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

by i.got.it 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




댓글



 

비트코인




암호화폐       외환/나스닥/골드       암호화폐/외환/나스닥/골드 암호화폐/외환/나스닥/골드   암호화폐/외환/나스닥/골드
     
현물 |선물 인버스 |선물 USDT       전략매니저(카피트레이딩)     롤오버 이자 없는 스왑프리계좌
( 스왑프리 암호화폐도 거래 가능 )    
MT4, MT5 , cTrader 모두 지원     FTMO 계좌 매매운용. MT4,MT5