使用TI官网例程,发现升级后启动的cc2640r2lp_persistent_app,请问如何平常大家是怎么处理的?是不是cc2640r2lp_persistent_app一般不做修改,只修改app,添加自己的service和char?
Viki Shi:
cc2640r2lp_persistent_app不作修改,请看注释:
Remember that with the architecture of On-chip OAD, the User Application is cc2640r2lp_app. Changes should be made to this application as cc2640r2lp_persistent_app is permanently resident and cannot be updated.
糖油粑粑:
回复 Viki Shi:
Viki, 你好!
我看过这段话,意思就是persistent_app是不能被更新的,所以不作修改。
我现在遇到的问题是,如何让没有程序的cc2640r2f升级后,首次运行就能工作在app,而不是persistent_app,请问你有好的建议吗?
糖油粑粑:
回复 Viki Shi:
Viki,补充一下:其实我只想把添加的service,chars放在app,这样维护起来会更方便。我也不想在persistent_app和app中都添加一模一样的profile,有没有更好的办法?是不是要修改BIM?
Viki Shi:
回复 糖油粑粑:
就是用户自定义的service,chars?修改BIM我个人不建议
糖油粑粑:
回复 Viki Shi:
是的,就是添加char,做了一个简单的功能。这个程序在perihiral上面已经完成了,但我现在用oad比较困惑的是:如果我只是把char加到app,那用SmartRF Flash programmer2升级后,看到的service和char是persistent_app的,也就说,必须再用oad升级一次app才行。
Viki Shi:
回复 糖油粑粑:
常规确实是这样,guide里也写明了:
The On-chip OAD solution will have two application images residing in the on-chip flash. In this document, the term Persistent Application or Persistent App will refer to the permanently resident project/image that implements the OAD Service and the term Application or User Application will refer to the project/image that implements user customized profiles and implements the OAD Reset Service. Both application images share the same BLE Stack image.In case of OAD failure, BIM will execute the Persistent App. The Persistent App must implement the TI OAD Service. The User Application can choose not to implement the OAD Service as it can switch to the Persistent Application for downloading a new image. The User Application must implement the OAD Reset Service。
要说修改BIM,我没试过,不好给建议,而且也容易出问题
糖油粑粑:
回复 Viki Shi:
viki,你好。这一段我也看过,所以我的理解是不用改Persistent App,而针对我的需求,只需要让它在用Programer2 升级后,能优先启动User App就可以了,我再仔细研读一下TI的文档,待有结果后会此回复,非常感谢你的回复 !
jianfeng fang:
回复 糖油粑粑:
你好,“如何让没有程序的cc2640r2f升级后,首次运行就能工作在app,而不是persistent_app”
这个功能实现了吗?
我也遇到同样的问题,请教一下,需要修改那些内容才能实现?
bo wu:
回复 jianfeng fang:
你好,“如何让没有程序的cc2640r2f升级后,首次运行就能工作在app,而不是persistent_app”??否则每次生产 你让工人都升级下也太麻烦了。。。 同求怎么解决
TI中文支持网


