printf4 TMS320 F28069 CCS SCI(UART) printf source : TI 입문 TI TMS320 입문 연재 입니다. 1. CCS, C2000Ware, sprc191 (sprc097) 설치, compile2. XDS100, XDS200 로 CCS Debug 하기 3. UniFlash 로 (CCS 없이) FW Download 하기(Driver 설치) 4. C2Prog 로 (CCS 없이) FW Download 하기 5. C2000Ware Sample code 를 다른곳으로 가져 가기 6. CCS v20 Project 만들기 7. CCS, 다른 ( 옛날 ) Compiler (CGT) 버전 설치 8. TMS320 F28069 CCS SCI(UART) source == 본글9. TMS320 F28069 CCS PWM source 10. .. 2025. 3. 21. nuvoton, va_list 로 printf 만들기 , sample source 뭐... 각설 하고,, 걍 소스 올립니다. #include #include // memset, strncmp 때문에 추가.#include void TX1_char(unsigned char c) { UART_WRITE(UART1,c); while(!(UART1->FIFOSTS & UART_FIFOSTS_TXEMPTYF_Msk));}void TX1_string(char *s){ while(*s != '\0'){ TX1_char(*s); s++; }}void print1f(const char* format, ...){ char buf[1000]; va_list args; memset(buf, 0, sizeof(buf)); .. 2024. 6. 5. Nuvoton printf debug uart 변경 nuvoton 에서 printf 를 하면 보통 uart0 로 나온다. 이를 uart1 이나 다른거로 바꾸고 싶으면. 문자열 "debug" 를 찾든 DEBUG_PORT" 를 찾든 하면 보통 "retarget.c" 안에 #define DEBUG_PORT UART0 라 되어 있다 여기 UART0 를 UART1 로 바꾸든 하면 된다. 2023. 8. 2. [CubeIDE] stm32 Uart Printf, sample source Uart 를 통해 printf() 를 쓰기 위해서는 아래 2가지 중 하나를 쓰면 됩니다.즉 __weak 로 설정된 __io_putchar 또는 _write 중 하나를 설정해 주면 됩니다.그리고 printf 를 쓰기 위해서#include 도 해 주어야 합니다.소스 중 적당한데 가져다 놓으셔요.. ==============================1. _write()#ifdef __cplusplusextern "C" int _write(int32_t file, uint8_t *ptr, int32_t len) {#elseint _write(int32_t file, uint8_t *ptr, int32_t len) {#endif if( HAL_UART_Transmit(&huart1, ptr, le.. 2023. 7. 14. 이전 1 다음