Search found 5 matches

by bennydeber
Thu Jul 27, 2017 3:10 pm
Forum: General Support
Topic: "chprintf" , STM32F303 Discovery
Replies: 7
Views: 5651

Re: "chprintf" , STM32F303 Discovery-RESOLVED

Ok, USB_CDC works now:

I downloaded the latest version of ST-Link Utility and I did the firmware upgrade.
Now when I connect my board through USB USER and USB ST-LINK in device manager there are two COMs:
http://i.imgur.com/LP7jQgz.jpg .

The next steps are disconnect USB USER ...
by bennydeber
Wed Jul 26, 2017 5:57 pm
Forum: General Support
Topic: "chprintf" , STM32F303 Discovery
Replies: 7
Views: 5651

Re: "chprintf" , STM32F303 Discovery

The article has been written for 161, and inclusion was performed in a different way (as Steved said).

An error in demo from playembedded... ok it is possible. An error in USB-CDC demo is quite strange.

Can you post here the error you are receiving with USB_CDC? I will give a little try to the ...
by bennydeber
Wed Jul 26, 2017 5:31 pm
Forum: General Support
Topic: "chprintf" , STM32F303 Discovery
Replies: 7
Views: 5651

Re: "chprintf" , STM32F303 Discovery

Hi,

chprintf() must also be included in the makefile togethr with memstream.c, see any demo that uses it.

Giovanni

I have modified my makefile , but the situation doesn't change:
CSRC = $(STARTUPSRC) \
$(KERNSRC) \
$(PORTSRC) \
$(OSALSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC ...
by bennydeber
Wed Jul 26, 2017 3:19 pm
Forum: General Support
Topic: "chprintf" , STM32F303 Discovery
Replies: 7
Views: 5651

"chprintf" , STM32F303 Discovery

Hi,
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:

for (i=0;i<=8;i++){
percentage = 500+i*1000;

chprintf(chp, "PERCENTAGE -> %d\n\r",percentage/100);
chThdSleepMilliseconds(1000);

}

I have ...
by bennydeber
Fri Jul 21, 2017 5:51 pm
Forum: STM32 Support
Topic: STM32F401 NUCLEO- PWM AND LED
Replies: 2
Views: 3514

STM32F401 NUCLEO- PWM AND LED

Hi,
in these days i'm trying to learn something about "ChibiOS's world" and I am using an STM32F401 Nucleo-64.
I've already tried very simple projects, now i would like to learn something more about pwm. That's what i'd like to do:
Push user button->generation of pwm signal with variable duty cycle ...