历史上的今天
今天是:2025年03月12日(星期三)
2020年03月12日 | iar Error[Li005] no definition for "assert_failed"
2020-03-12 来源:eefocus
出现这个问题是因为在stm8s_conf.h中只声明了函数接口,但是没有地方实现它,所以找个地方写个空函数就行了。常用的方法是在main.c中写个空函数。`
Error[Li005]: no definition for “assert_failed” [referenced from D:zwsrcstm8nrf24l01_gpiosendDebugObjstm8s_gpio.o]
1 928 bytes of readonly code memory
1 786 bytes of readonly data memory
309 bytes of readwrite data memory
Errors: 1
Warnings: none
Link time: 0.06 (CPU) 0.06 (elapsed)
Error while running Linker
Total number of errors: 1
Total number of warnings: 1
`
填入这个空函数就行了。
void assert_failed(u8* file, u32 line)
{
/* User can add his own implementation to report the file name and line number,
ex: printf("Wrong parameters value: file %s on line %drn", file, line) */
/* Infinite loop */
while (1)
{
}
}
史海拾趣
|
请问下面指令形成的时钟脉冲周期究竟是多少啊? 是4us还是6us!!!?? 按我理解,scl2是1us,两个空指令是2us,那一个周期应该是6us啊 但是AD8031工作频率为250kHz啊,按这样理解又好像是4us! &n ...… 查看全部问答> |
|
我妹妹的一个面试题,让写这个程序的详细功能,和对这个程序做出优化。 我妹理解的:本程序功能:检测信号,当检测时间超过25s时,表示有系统故障,将p2拉高,延时12*42s。当检测到上升沿到来时,LED灯显示,且读取p2口对应12个地址状态(数组中定 ...… 查看全部问答> |
|
本帖最后由 dontium 于 2015-1-23 13:36 编辑 #ifndef _AD_func #define _AD_func void main(); void SystemInit(void); void AdInit(void); #endif 一个头文件 但是不知道什么意思 … 查看全部问答> |
|
在污水处理过程中,有众多的模拟量和开关量需要测量采集和做相应的控制,其中包含有压力,流量,液位,PH值,氧化还原电位值(ORP),阀门开关等各种模拟量和开关量数据。原先都是通过相应的采集控制设备对相应的数据进行处理,随着计算机技术的发 ...… 查看全部问答> |




