亲爱的,蒂亚戈雷斯。
我曾经读过数据表。我初始化CRA_REG_M寄存器。问题是当我在调试机制(Keil)工作时,我读了温度测量。在这种情况下,时钟由ST-Link提供。如果我退出调试模式,在复位控制器之后我取'0'。在最后一种情况下,时钟由晶体振荡器提供。我在STM32-F3Discovery板和STM32F103C6中看到了这个问题。使用了stm32f3_discovery_lsm303dlhc.c''库。
以上来自于谷歌翻译
以下为原文
Dear, Thiago Reis.
I once read the datasheet. I initialize CRA_REG_M register. The problem is that when I work in a debugging regime (Keil), I read the temperature measurment. In this case, the clock is provided by ST-Link. If I get out of debug mode, after a reset controller I take '0'. In last case, the clock is provided by a crystal oscillator. I see this problem in the STM32-F3Discovery board and the STM32F103C6. The stm32f3_discovery_lsm303dlhc.c'' library is used.
亲爱的,蒂亚戈雷斯。
我曾经读过数据表。我初始化CRA_REG_M寄存器。问题是当我在调试机制(Keil)工作时,我读了温度测量。在这种情况下,时钟由ST-Link提供。如果我退出调试模式,在复位控制器之后我取'0'。在最后一种情况下,时钟由晶体振荡器提供。我在STM32-F3Discovery板和STM32F103C6中看到了这个问题。使用了stm32f3_discovery_lsm303dlhc.c''库。
以上来自于谷歌翻译
以下为原文
Dear, Thiago Reis.
I once read the datasheet. I initialize CRA_REG_M register. The problem is that when I work in a debugging regime (Keil), I read the temperature measurment. In this case, the clock is provided by ST-Link. If I get out of debug mode, after a reset controller I take '0'. In last case, the clock is provided by a crystal oscillator. I see this problem in the STM32-F3Discovery board and the STM32F103C6. The stm32f3_discovery_lsm303dlhc.c'' library is used.
举报