I 'm using a STM32F303 Discovery Board and I have done a project that works, but I would like to use chprintf and read the datas on terminal:
Code: Select all
for (i=0;i<=8;i++){
percentage = 500+i*1000;
chprintf(chp, "PERCENTAGE -> %d\n\r",percentage/100);
chThdSleepMilliseconds(1000);
}
I have included "chprintf.h",the port is correct and I use STLink V2 to print data on the terminal. I have to change something in the makefile?
Thank you all.
PS.
I have also tried this project (http://www.playembedded.org/blog/en/201 ... -and-mems/) and the demo "USB_CDC", but both give me a lot of errors. As playembedded suggests, I connect the board through the User USB: at first my PC didn't recognize the device, after installing STM32 Virtual COM Port Driver, it seems to recognize it.