cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error: The selected device does not match the target device

chayut ora
Associate
Posted on January 09, 2017 at 04:09

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 #iar
6 REPLIES 6
Imen.D
ST Employee
Posted on January 09, 2017 at 10:16

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee
Posted on January 11, 2017 at 16:05

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on January 24, 2017 at 23:21

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!

Christoph Eschenbach
Associate III
Posted on January 26, 2017 at 10:24

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.

Imen.D
ST Employee
Posted on January 28, 2017 at 01:41

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on January 28, 2017 at 01:10

IAR has released 7.80.4 which fixed this issue for me.