2013-04-18 09:44 AM
Hello,
I want to test of VCP on STM32F4 Discovery board.But in building the project the following error occurs.warning: implicit declaration of function 'VCP_dataTx' is invalid in C99Can any one help me.Thank you.2013-04-18 10:41 AM
VCP_DataTx() would need to be something other than 'static' to be referenced outside of usbd_cdc_vcp.c, like in main.c
You're building this under what environment?2013-04-18 02:27 PM
I tried to declare the function without ''static'' but the same error persist. I'm building the project under Keil uVision 4. You can download it from the link above.
Thank you.2013-04-18 03:32 PM
Yeah, figured that out.
Just needed to add a prototype in main.c, and remove the static from usbd_cdc_vcp.c for it to compile. Build target 'STM32F4_VCP' compiling main.c... compiling usbd_cdc_vcp.c... linking... Program Size: Code=17200 RO-data=548 RW-data=404 ZI-data=4796 ''.\Debug\STM32F4_VCP.axf'' - 0 Error(s), 0 Warning(s).2013-04-19 07:51 AM
Yeah, there are no error now. But i don't understand the redirection of printf() function to the Hyperterminal. And i'm not used to work with µVision and i have a doubt about the configuration of th µVision project. Can any oneverify it.
Thank you.2013-04-19 09:43 AM
Firmware, works and provides a virtual serial port, which is retargeted by Keil to use stdio. Uses the V1.3 x64 VCP Driver
Talking to the board via terminal application:Virtual COM Printf Example: retarget the C library printf function to the USB
> Unknown Command
> help Command
> Command s
> Command t
> Command l
>