cancel
Showing results for 
Search instead for 
Did you mean: 

How to download and debug the stm32h750dk online application(out of box source code) with QSPI flash on IAR?

alivexiaoluo
Associate III

Hi,I am a new developer of stm32h750dk and not familiar with IAR.

OS:Windows 10

IDE:IAR 8.42.2

Tools:ST-link V3 on stm32h750dk board.

I generate stm32h750dk online application on touchGFX designer 4.12.3.

​I know the flash on chip is designed for bootloader, and the code stored in QSPI Flash.

I know how to download the online application hex file to stm32h750dk on stm32Cube Programmer.

I do not know how to download and debug the source code to the QSPI Flash via IAR.

I want to know if any instructions for download and debug the source code in QSPI Flash via IAR.

The settings of the IAR below.

0690X00000DXG5AQAX.png

0690X00000DXG5KQAX.png

0690X00000DXG5PQAX.png

0690X00000DXG5jQAH.png

0690X00000DXG6NQAX.png

It compiles ok, but download failed, it show me that.

0690X00000DXG6cQAH.png

Thanks for your attention.

1 ACCEPTED SOLUTION

Accepted Solutions
Alexandre RENOUX
Principal

Hi,

The way to debug using IAR is to build your project on IAR, then using STM32CubeProgrammer download the generated .hex into your board making sure you selected the right external loader.

When the download is successful, disconnect your board from STM32CubeProgrammer and try to run debug mode on IAR.

IAR usually can only download code and data into the internal memories (from what I experienced). Therefore, if you use external Flash for example and you have assets that are supposed to be stored in an address space linked to the external flash accessed via QuadSPI, IAR will not be able to download these assets into the board. That is why we use STM32CubeProgrammer because this software can program both internal and external memories.

Hope it will help somehow,

/Alexandre

View solution in original post

10 REPLIES 10

Not an IAR user, but check if there is a DISCO rather than EVAL external flash loader algorithm. The boards are usually wired differently.​

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

Hi,

Please be aware that some patches (board scripts) are needed to use properly IAR with the H7 family, could you please confirm that you installed the following :

STM32Cube\Repository\STM32Cube_FW_H7_V1.6.0\Utilities\PC_Software\IDEs_Patches\EWARM\EWARMv8_STM32H7xx_Support_V1.1.zip

Best regards,

Alexandre RENOUX
Principal

Hi,

The way to debug using IAR is to build your project on IAR, then using STM32CubeProgrammer download the generated .hex into your board making sure you selected the right external loader.

When the download is successful, disconnect your board from STM32CubeProgrammer and try to run debug mode on IAR.

IAR usually can only download code and data into the internal memories (from what I experienced). Therefore, if you use external Flash for example and you have assets that are supposed to be stored in an address space linked to the external flash accessed via QuadSPI, IAR will not be able to download these assets into the board. That is why we use STM32CubeProgrammer because this software can program both internal and external memories.

Hope it will help somehow,

/Alexandre

There is no DISCO in flashloader folder,thanks for your attention.

Hi,Nicolas SANTINI

I installed the support package,but still can not download the source code to QSPI Flash.

Alexandre RENOUX is the right answer,I can download the compile file by stm32cube programmer and use the debug without downloading on IAR to debug the source code.

Thanks for your attention.​

Hi,Alexandre RENOUX

I can download the compile file by stm32cube programmer and use the debug without downloading on IAR to debug the source code now.

I find an article that show me how to download and debug his project via IAR,but he didn't open his source code.I am tring to connect him.

Article link:https://blog.csdn.net/weixin_41608804/article/details/100728879

Thanks for your attention.

Like this one?

STM32Cube_FW_H7_V1.5.0\Utilities\PC_Software\IDEs_Patches\EWARM\arm\config\flashloader\ST\FlashSTM32H750B_QSPI-DISCO.flash

STM32Cube_FW_H7_V1.5.0\Utilities\PC_Software\IDEs_Patches\EWARM\arm\config\flashloader\ST\FlashSTM32H750B_QSPI-DISCO.out

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

>>I installed the support package, but still can not download the source code to QSPI Flash.

Unpack the patches, or look where you put them

...\EWARM\arm\config\flashloader\ST\FlashSTM32H750B_QSPI-DISCO.flash / .out

Object/executable code, not "source" code

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

Hi clive1,

I unpack the patches and copy ​FlashSTM32H750B_QSPI-DISCO.flash and FlashSTM32H750B_QSPI-DISCO.out file to C:\ProgramFile(x86)\IAR Systems\Embedded Workbench8.4\arm\config\flashloader\ST.

Also I choose the FlashSTM32H750B-DISCO.Board (path:STM32Cube\Repository\STM32Cube_FW_H7_V1.6.0\Utilities\PC_Software\IDEs_Patches\EWARM\EWARMv8_STM32H7xx_Support_V1.1\arm\config\flashloader\ST ) on options->Debugger->Downloader.

The settings is that.

0690X00000DXJMiQAP.png

I can download and debug the source code via IAR now.

I want to know if the settings is the same or not for user custom board with the same address for QSPI Flash,but the QSPI Flash is different from the QSPI Flash(Mircon MT25QL512ABB) on stm32h750dk.

In other words,I concern if the settings is useful when i use other QSPI Flash on custom board?

Thanks for your attention.​