سلام دوستان
برای retarget کردن printf کد زیر رو اضافه کردم ولی جواب نداد!
کد:#ifdef __GNUC__ /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf set to 'Yes') calls __io_putchar() */ #define PUTCHAR_PROTOTYPE int __io_putchar(int ch) #else #define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f) #endif /* __GNUC__ */ PUTCHAR_PROTOTYPE { /* Place your implementation of fputc here */ /* e.g. write a character to the LCD */ lcd_Data_Write((u8)ch); return ch; }
میکرو : STM32F103RBT6
کامپایلر : GCC
ادیتور : EMBITZ
لطفا راهنمایی کنید