We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I have an error on keil µvision 5 and i don't arrive to resolve it. this is the error: ..\Src\utilsSPIRIT1.c(148): error: #55-D: too many arguments in invocation of macro "Error_Handler"
this is the declaration of my fonction :
void Error_Handler(char * c) { printf(" >>> ERROR @ %02dh%02dm%02ds : %s\r\n", time.Hours, time.Minutes, time.Seconds, c); }
here is a function call :
Error_Handler("Com rx bad");
Someone know how i can resolve my issue ?
Sure there's not a void Error_Handler(void) prototype somewhere in the source? Do a "Find in Files" and see all definitions and usage
But, again, the message specifically says the error is found in a macro - not a function.
So, presumably, there is a macro called "Error_Handler" being defined somewhere
"Do a 'Find in Files' and see all definitions and usage"
Indeed!