1、was corrupt or of an unsupported format.
IARIdePm: the debugging session could not be started。
Either the debugger initialization failed, or else the file "D:\.....\xx.out" was corrupt or of an unsupported format.
There might be more information in de Debug Log window.
可能:
1、型号没选对。
options->General Options->Target drevice 型号选对了吗?
2、
IAR STM32: Failed to load flash loader的问题
其出错码包括:
The debugging session could not be started.
Either the debugger initialization failed,or else the file
......was corrupt or of an unsupported format.There might be more information in the Debug Log window
原因可能不一样,我碰到的是当我从从mainley下载其演示程序后(5.30版本),在IAR5.30.1版本上运行时出现的错误。
需要在其debug选项中将driver由st_link改成Third-party driver。然后在third-party driver选项卡中将IAR debuger driver关联到STM32DriverV5.dll(比如我的:C:\Manley\Drivers\STLink\STM32DriverV5.dll)
重新编译即可。