cancel
Showing results for 
Search instead for 
Did you mean: 

compiler error at stm32f30x_it.c

esovo1
Associate II
Posted on October 29, 2014 at 22:40

Hei,

I have found a code on the net and I am trying to figure it out how does it work. The code sends some data via USB to PC with the UART protocol. When I compile it, it sends an error at the file stm32f30x_it.c. I haven't even touched this file. This is what I get:

compiling stm32f30x_it.c...
user\stm32f30x_it.c(48): warning: #1295-D: Deprecated declaration TimingDelay_Decrement - give arg types
TimingDelay_Decrement();
user\stm32f30x_it.c(48): warning: #77-D: this declaration has no storage class or type specifier
TimingDelay_Decrement();
user\stm32f30x_it.c(196): error: #169: expected a declaration
{
user\stm32f30x_it.c(205): error: #169: expected a declaration
{
user\stm32f30x_it.c: 2 warnings, 2 errors
compiling system_stm32f30x.c...
compiling usb_desc.c...
compiling usb_endp.c...
compiling usb_istr.c...
compiling usb_prop.c...
compiling usb_pwr.c...
''.\comport.axf'' - 2 Error(s), 2 Warning(s).
Target not created

Here are the actual lines where the error occurs

:

{ //this is line 196
USB_Istr();
}
#if defined (USB_INT_DEFAULT)
void USBWakeUp_IRQHandler(void)
#elif defined (USB_INT_REMAP)
void USBWakeUp_RMP_IRQHandler(void)
#endif
{ //this is line 205

Thanks for the help
1 REPLY 1
Posted on October 29, 2014 at 22:58

The latter, and probably the former occur because neither

 USB_INT_DEFAULT or USB_INT_REMAP are defined

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..