10773 views|3 replies

9702

Posts

24

Resources
The OP
 

Low-level error "while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)" infinite loop [Copy link]

STM32 uses an internal oscillator. When debugging the code that used to work, I found that it always died in the HAL_RCC_OscConfig function of the stm32f0xx_hal_rcc.c file. The following code was repeatedly executed
  1. /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) { return HAL_TIMEOUT; } }
复制代码
Using STM32CubeMX to change the main frequency, regenerate the code, and change the board did not solve the problem. Later, I wanted to try whether it was a problem with jlink. I found a nucleo development board with a built-in simulator, connected the st-link lead to the board to be tested, and when I was about to change jlink to st-link in the IAR project settings, I found that the simulator was selected under Simulator! ! !

This post is from stm32/stm8

Latest reply

Compared with MDK, IAR does not do well in many areas and does not achieve what you see is what you get.   Details Published on 2021-8-21 21:45
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 

277

Posts

0

Resources
2
 
:watch:
This post is from stm32/stm8
 
Personal signature我爱大清国我怕它完了可谁爱我啊
 

2

Posts

0

Resources
3
 

I also encountered this problem. After reading your post, I solved it. Thanks

This post is from stm32/stm8
 
 

1

Posts

1

Resources
4
 

Compared with MDK, IAR does not do well in many areas and does not achieve what you see is what you get.

This post is from stm32/stm8
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list