cancel
Showing results for 
Search instead for 
Did you mean: 

IAR debugger doesn't work with STM32H750B-DK board when use QSPI flash and internal/external SDRAM

CChen.16
Associate II

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. 

CChen16_0-1753825367963.png

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. 

 

 

2 REPLIES 2

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Thank you so much! I commented out the HAL_init() and SystemClock_Config(), that seems fixed the problem.