Brise

IAR EWARM에서 stm32 SWO로 printf 사용하기 본문

MCU

IAR EWARM에서 stm32 SWO로 printf 사용하기

naudhizb 2018. 3. 20. 01:20
반응형

파일 소스에서 #include <stdio.h>를 참조해서 printf를 사용



${Project_Name} -> 마우스 오른쪽 버튼 -> Option 클릭

    General Option - Library Configuration 탭에서 

    Library low-level interface implementation의 stdout/stderr를 Via SWO로 변경


Debug-> Setup에서 ST-LINK로 설정


디버그 중 왼쪽 상단 바의 SWO 아이콘을 클릭


오른쪽 ITM Stimulus Ports에서 Enabled ports 0와 To Terminal I/O Windows 0를 체크


View -> Terminal I/O 창을 활성화


http://rodneyhuh.tistory.com/11

반응형
Comments