2017-01-08 07:09 PM
Hi community,
I am using STM32F103C8. with IAR ARM v7.80.3. When I tried to debug my project with STLINK (FW: V2J28S7), I got this error
[Mon Jan 09, 2017 13:50:25: Fatal error: The selected device does not match the target device Session aborted! ]
In IAR project setup, target device is set to 'ST STM32F103C8' which is exact to the chip on the board. However what STLink detects (when using ST-LINK utility) and it shows :
'Device: STM32F 10xx Medium-density
Device ID:0x410
Revision ID X
Flash size 64KB'
Is it possible that debug is aborted because the ST-LINK failed to detect exact model of the board? In old version of IAR, i could select generic '
STM32F10xx', instead of specific model 'ST STM32F103C8'
Thanks,
Chayut
#st-link #stm32 #iar2017-01-09 01:16 AM
Dear
Orapinpatipat.Ch
,Thanks for highlighting yourissue. This isthe same problemas mentioned in this
https://community.st.com/0D50X00009XkaEESAZ
. So, you can try with old version of IAR ARM as v7.1. I would recommend you to contact IAR ARM for support (david_iar
). Maybe they can help you better.Best Regards
Imen
2017-01-11 07:05 AM
Hi
Orapinpatipat.Ch
,Maybe you can try the new patch for
http://supp.iar.com/Updates/?product=EWarm
as given in this thread (https://community.st.com/0D50X00009XkaEESAZ
) Please try then keep us informed about your updates.Regards
Imen
2017-01-24 03:21 PM
Hi,
I'm still having the same problem listed above even though I downloaded t
he patch for 7.80.3 on the IAR page. Is there any clue about the solution?
Fatal error: The selected device does not match the target device Session aborted!
2017-01-26 01:24 AM
I had the same problem on STM32F769 -DISCO.
I try Project->Options->General Options->Target->Processor variant and changed to Core M7
This worked for me.
Maybe the wrong flashloader file is used too. Had this on DISCO too.
2017-01-27 04:41 PM
Hi,
You should use the last version
http://supp.iar.com/Updates/?product=EWarm
which contains fix for debugger connection when using some ST devices as ST-Link.Please keep us informed about your update.
Imen
2017-01-27 05:10 PM
IAR has released 7.80.4 which fixed this issue for me.