목록[2025~] Embedded/Renesas RA4M2 (3)
기록

코드#include #include #include void printf_log(const char *format, ...);int main(){ printf_log("This is a log message"); return 0;}void printf_log(const char *format, ...){ // 현재 시간을 문자열로 변환 time_t now = time(NULL); struct tm *now_tm; char time_str[20]; time(&now); now_tm = localtime(&now); strftime(time_str, sizeof(time_str), "[%Y-%m-%d %H:%M:%S]", now_tm); va_list a..

Tera Term과 MCU를 COM포트로 연결할 때드라이버 미인식 오류인 것 같다. 해결 방법 [윈도우] 장치관리자 포트우클릭 > 드라이버 업데이트 > 내 컴퓨터에서 드라이버 찾아보기 (R) > 컴퓨터의 사용 가능한 드라이버 목록에서 직접 선택 (L) > 다음 > 닫기 다시 인식이 된다. 내 컴퓨터에 드라이버가 없다면 드라이버 다운로드 하기https://www.prolific.com.tw/us/showproduct.aspx?p_id=225&pcid=41 ProductsPL2303 Windows Driver Download USB to UART RS232 Serial Windows Driver Installer Setup Program ( Win7 / Win8.1 / Win10 / Win11) Ins..

비동기 방식으로 UART Receive(데이터 수신)을 시도하던 중, UART_EVENT_RX_CHAR and UART_EVENT_RX_COMPLETE events are not fired when data comes. 디버깅 시, 위 데이터 수신 이벤트들이 case문에 걸리지 않는 문제를 마주하였다. void uart_callback(uart_callback_args_t *p_args){ switch(p_args->event){ // Transmit case UART_EVENT_TX_COMPLETE: { g_uart_tx_complete = true; break; } // Receive ..