cancel
Showing results for 
Search instead for 
Did you mean: 

#error cpstm8 main.c:1(0+7) missing ;

MKUMA.31
Associate
include "stm8s.h"
 
 
 
 
 
 
#ifdef USE_FULL_ASSERT
 
/**
  * @brief  Reports the name of the source file and the source line number
  *   where the assert_param error has occurred.
  * @param file: pointer to the source file name
  * @param line: assert_param error line source number
  * @retval None
  */
void assert_failed(uint8_t* file, uint32_t line)
{ 
  /* User can add his own implementation to report the file name and line number,
     ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
 
  /* Infinite loop */
  while (1)
  {
  }
}
#endif
 
 
int main(void)
{
	
}

this is the actual code. I'm getting the error as shown.

#error cpstm8 main.c:1(0+7) missing ;

Need Help to solve this.

Thanks in Advance

1 REPLY 1

Follow into the include file(s)

Perhaps generate a pre-processor output, if the tool permits.

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