[STM8]

STM8L编译报错,用的是官网下载的原文件

[复制链接]
365|6
手机看帖
扫描二维码
随时随地手机跟帖
hxdjb|  楼主 | 2019-9-21 10:02 | 显示全部楼层 |阅读模式

使用特权

评论回复
香水城| | 2019-9-23 11:03 | 显示全部楼层
你虽是从官网下载库文件,你编译时是不是调整了跟断言宏定义有关的开关或代码。
在不清楚前不要轻易急于删除什么。比如下面的代码。

#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

使用特权

评论回复
buffered| | 2019-9-24 15:16 | 显示全部楼层
应该是楼上说的那样

使用特权

评论回复
观海| | 2019-10-15 12:41 | 显示全部楼层
是不是系统不兼容

使用特权

评论回复
heimaojingzhang| | 2019-10-15 12:46 | 显示全部楼层
路过顺便学习下

使用特权

评论回复
keaibukelian| | 2019-10-15 12:53 | 显示全部楼层
按照城主给的办法 楼主解决了问题了吗

使用特权

评论回复
21mengnan| | 2019-10-15 13:39 | 显示全部楼层
工程也是官方的?

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

127

主题

236

帖子

2

粉丝