Hi,everyone! A problem here:The cygnal's MCU has two serial ports,so "printf" function must be reworked.But I don't know how to do it. Give me a hand! Thanks a lot!
See my UART driver example at http://www.embeddedfw.com for how to do this. Basically, you just re-define putchar() which Keil's printf() calls. When ever you override a library function, the linker will take your function and not the library version. - Mark