2020-04-07 01:59 AM
I have a STM32H7 Discovery kit with default setup exported, but the code stops in SystemClock_Config(). Debugger stops here:
MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource) (in stm32h7xx_hal_rcc.c). Any ideas what might be a problem?
2020-04-07 02:06 AM
Would need to see structure settings.
Check HSE, HSI and PLL viability.
Particular issues are LDO/SMPS and VOS settings.
Local/automatic variables should be fully cleared.
Contrast with HAL examples for board.
2020-04-07 02:12 AM
Funny thing is, that I'm using default setup from CubeMX. I will check the HAL example to see what is the difference. Thanks.
2020-04-07 03:38 AM
There are a few STM32H7 based discovery boards, which one?
2020-04-07 04:03 AM
Yeah, I've been hearing about auto code generators replacing me for nearly 4 decades..
2020-04-08 02:37 AM
EDIT: Looks like it's a problem with SEGGER J-link. Sorry for that.
I'm using STM32H7B3I-DK.
The strange thing is that I left the problem for a day and with using the same code everything worked until I've played with DAC output.
The problem appears again. The debugger says:
T-bit of XPSR is 0 but should be 1. Changed to 1.
and then everything stops.
Not sure why it started working and even if I try code that worked before changing DAC output I get the same error.
Any ideas?