2025-07-29 3:13 PM
Hi,
Is anybody use IAR with STM32H750B-DK board? I am new to STM32H750 and the discovery board.
I am trying to run the FreeRTOS_ThreadCreation sample code using IAR embedded workbench with I-jet debugger, with configuration of XIP_QSPI_InternalSRAM.
I first load the boot code from ExtMem_boot project to the internal flash memory. Then load the project of FreeRTOS_ThreadCreation to QSPI flash memory at 0x90000000. The code was loaded correctly, and I was able to step into the code at beginning. But the code always crashed at SystemClock_Config() -> HAL_RCC_ClockConfig() -> tickstart = HAL_GetTick(). After that the CPU cannot stopped.
But after all these steps, if I power down and power on the board, I actually saw the LEDs blinked as they are supposed to, so code in the QSPI flash memory is running correctly.
What is wrong with the I-jet then?
Thanks for any ideas, thoughts, suggestions.
2025-07-29 3:35 PM
I'd probably avoid changing clocks and external interfaces whilst they are running.
I'd recommend bringing everything up in a loader living in Internal Flash, and then NOT REPEATING that in the code running in QSPI FLASH whilst executing there.
2025-07-29 4:12 PM
Thank you so much! I commented out the HAL_init() and SystemClock_Config(), that seems fixed the problem.