Skip to main content
Visitor II
August 27, 2021
Question

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

  • August 27, 2021
  • 1 reply
  • 1669 views
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

    This topic has been closed for replies.

    1 reply

    Graduate II
    August 27, 2021

    Follow into the include file(s)

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