전체 글 (31) 썸네일형 리스트형 printf UART로 출력 c 함수 printf()를 UART로 출력하게 해서 디버깅을 할 수 있습니다. 아래의 링크를 참고하면 간단히 해결됩니다.The ST-LINKs embedded on ST Nucleo boards have a virtual com port feature, and we can easily get debugging information on a terminal using printf redirected to the UART of the STM32 connected to the ST-LINK pins used for the virtual COM port. https://community.st.com/t5/stm32-mcus/how-to-redirect-the-printf-function-to-a-uart-for.. CAN bus 환경 테스트 STM32 board와 Raspiberry Pi 3을 이용해 CAN 통신 한경을 구성했습니다. STM32 보드는 NUCLEO-F446RE 입니다.CAN transceiver는 SN65HVD230 Board 를 연결하였습니다. Raspberry Pi 3는 RS485 CAN HAT를 사용했습니다.동일하게 CAN transceiver는 SN65HVD230 이기 때문에 환경 구성이 수월합니다. STM32 보드는 1초 단위로 메시지를 전송하고 수신된 메세지를 출력하도록 했습니다.Rpi3 보드는 can-utils을 사용하여 메시지를 전송하고 수신하였습니다. Rpi3 메세지 전송 STM32 메세지 수신 STM32에서 전송한 메세지 Rpi3에서 수신 캡처를 이상하게 해서 좀 안 맞지만 일단 기록해 둡니다. Sparse file header 이전 포스팅에서 본 sparse file 의 헤더를 읽어보았습니다. https://seanlog.tistory.com/1 Sparse file파일 시스템에서 공간을 절약하는 방법Sparse file는 파일 시스템에서 데이터를 효율적으로 저장하기 위한 방법 중 하나이다.파일의 데이터 중에서 연속된 의미없는 값(empty data)는 실제로 디스크seanlog.tistory.com 헤더는 아래와 같이 정의되어 있습니다.typedef struct sparse_header { __le32 magic; /* 0xed26ff3a */ __le16 major_version; /* (0x1) - reject images with higher major versions */.. 이전 1 ··· 5 6 7 8 9 10 11 다음 목록 더보기