yabo国际娱乐对话半导体客户支持-电池da14585电池电平 https://support.dialog-semiconductor.com/resource-keywords/battery-da14585-battery-level 电池级 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/battery-level < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >你好,< / p > < p >我想测量电池的水平使用geet_battery_lvl()开发自定义板,但我的应用程序以一种奇怪的方式运行。
有时,当我试图调试它时,它会进入hardfault_handler。当我再次尝试时,或者在一段时间之后,我能够调试它,显示的电池水平是0x64,这将是100%(我使用DA14580 DEV KIT PRO为我的板供电),这应该是正确的。

发送应用程序到我的板,使用SmartSnippets,它再次奇怪的工作。有时应用程序会崩溃,有时会正常运行。

我看了DA14585数据表,看到ADC引脚被绑在P0_0, P0_1, P0_2和P0_3,但我正在使用其中一些端口。这是错误的原因吗?我是否有办法在不开发新板设计的情况下克服这个问题?(例如,我已经看到P0_0被用于SPI、UART、I2C…)

提前感谢。< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / battery-da14585-battery-level”“=“skos:概念”属性=“rdfs: label skos: prefLabel” datatype="">battery da14585 battery level

Device: 
2018年8月6日星期一23:07:04 +0000 TMiranda 215425年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/battery-level#comments