cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error: Failed to read CPUID for Cortex device

pradp
Associate II
Posted on July 08, 2011 at 11:46

I am using

Micro controller: STM32F103RCT6TR

IDE: IAR Embedded workbench

Debugger: J-Link ARM  

When I burn it I am getting this error

TotalIRLen = ?, IRPrint = 0x..000000000000000000000011

Fatal error: Failed to read CPUID for Cortex device   Session aborted!

Can anyone help me?

Thank you,

13 REPLIES 13
rosarium
Associate II
Posted on July 08, 2011 at 13:27

did you set the proper device as the target at

Projects/options/general options/ target in IAR project workspace.

Posted on July 08, 2011 at 15:16

Is this on a board you created, or a commercial eval board?

Check the wiring, and connection, of the JTAG port.

Check if you want to use SWD vs JTAG signalling.

Check you have current drivers and firmware from SEGGER.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
rosarium
Associate II
Posted on July 08, 2011 at 18:19

which version IAR are you using???

pradp
Associate II
Posted on July 11, 2011 at 06:39

 

did you set the proper device as the target at?

For this Micro controller: STM32F103RCT6TR

I am using ST STM32F10xxC as my target

 

which version IAR are you using???

IAR 6.20, J-Link 4.28

pradp
Associate II
Posted on July 11, 2011 at 06:52

I get this error

Fatal error: Wrong AHB ID (15:3). Expected 0x04770001 (Mask 0x0FFFFF0F), Found 0x92400000   Session aborted!

When it asks do u want to continue, if i say yes, this error pops up

Fatal error: Failed to read CPUID for Cortex device   Session aborted!

 

pradp
Associate II
Posted on July 11, 2011 at 08:44

 

Is this on a board you created, or a commercial eval board?

this is the board created not a commercial eval board, I also have a commercial board on which it is working perfect.

Check the wiring, and connection, of the JTAG port?

 

Wiring and connection are proper.

Check if you want to use SWD vs JTAG signalling.

I wanted JTAG, but both are not working

Check you have current drivers and firmware from SEGGER.

 

As it is working on the eval board properly, I feel drivers are installed properly.

rosarium
Associate II
Posted on July 11, 2011 at 09:36

did you copy intrinsics.h at

C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c

if not find here attachde the file and copy it to the path above.

________________

Attachments :

intrinsics.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I1EC&d=%2Fa%2F0X0000000bk9%2FViVMTNDLjIXBU453RJUQkl1Y0Zi3Z_.btCSQD32eczk&asPdf=false
pradp
Associate II
Posted on July 11, 2011 at 10:20

I have included this header files

#include <assert.h>

#include <math.h>

#include <stdio.h>

#include <string.h>

#include <ctype.h>

#include <stdlib.h>

#include <string.h>

#include <intrinsics.h>

#include ''stm32f10x.h''

#include ''arm_comm.h''

pradp
Associate II
Posted on July 11, 2011 at 10:21

Add my test program is this

int main()

{

 

  unsigned short int a=5;

  while(1)

  {

    a++;

    a--;

  }

  //return 0;

}