找回密码
 立即注册

微信扫码登录

查看: 291|回复: 1

ioTStudio - ZigBee SDK incremental compiling issue

[复制链接]

11

主题

31

回帖

219

积分

华贵铂金

积分
219
发表于 2024-10-22 12:39:18 | 显示全部楼层 |阅读模式
I have noticed an unexpected issue when I compiled my ZigBee project.
I have the following define in the app_ui.h
  #define HP_MIN_CURR        100  

  #define HP_MAX_CURR        400
And in the app_main.c I have:
  else if((I_value > HP_MIN_CURR) && (I_value < HP_MAX_CURR)){


I compiled the project then I had to change the define

  #define HP_MAX_CURR        500

After I compiled the project and flashed the file I noticed that it didn't work as I expected.
I compared old .bin file with the new one and there was no difference. This means that incremental compilation didn't change the value that of HP_MAX_CURR that was defined in the app_ui.h.
I had a look in the .lst file and it hasn't changed as well.

The app_ui.h file is saved during compilation, so the compiler knows (I assume) that there were changes in this file.
That is something that I didn't expect.

I had to clean the project and do the full compilation for this to work.

Why does it happen? Should I always do full compilation?



2

主题

23

回帖

9031

积分

版主

积分
9031
发表于 2024-10-22 17:21:01 | 显示全部楼层
I think it's better to move the topic to the "Zigbee"   Forum subboard。
As a general consideration, I think some header file modifications may need to recompile the entire project, and C file modifications should be able to compile directly。

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 )

GMT+8, 2024-12-22 12:02 , Processed in 0.076958 second(s), 18 queries .

Powered by Telink 隐私政策

泰凌微电子版权所有 © 。保留所有权利。 2024

快速回复 返回顶部 返回列表