I am facing  error in launching while attaching USB Mutilink . Development board is MPC5674XEVBFXMB , adapter board is MPC5674ADAT516.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am facing  error in launching while attaching USB Mutilink . Development board is MPC5674XEVBFXMB , adapter board is MPC5674ADAT516.

1,391 Views
akshatnegi
Contributor II

I am facing  error in launching while attaching USB Mutilink . Development board is MPC5674XEVBFXMB , adapter board is MPC5674ADAT516. For understanding attached is the screenshot of the error and setup

Labels (1)
0 Kudos
9 Replies

1,180 Views
akshatnegi
Contributor II

Following are the answers to the questions you asked :

1) Which microcontroller you use? MPC5674F or MPC5674R? : MPC5674F

2) Which version of Code Warrior you use? Version : 10.6.4

3) When you power up the board, are both LED diodes on Multilink ON? Yes

4) Do you have installed PE Micro drivers on your operating system? (Can be downloaded from following URLhttp://www.pemicro.com/support/download_processor.cfm ) The PE Micro drivers are installed already.

5) Are you able to connect to another board? : We have only 1 board.

  6) Do you have another debug probe to check, if MPC5674ADAT516 is OK? : No.

Regards

Akshat

0 Kudos

1,180 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

I tested on my board and it works correct, so I am not able to replicate the issue.

1) Have you ever been able to connect to the board? Did you flash there any code before?

2) Have you modify Shadow flash memory? I ask because the censorship.

3) Please measure supply voltage and also reset line after power on reset and send me the screen.

4) Write me, which cut of MCU you use.

Regards,

Martin

0 Kudos

1,180 Views
snehakalkhair
Contributor III

Hi Martin,

Is it possible that since the Freescale Code Warrior license has expired the JTAG is not working??

0 Kudos

1,180 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

no it is not possible. When the license expired, CW is switched to evaluation version. Look at the following URL to check, which features are available.

CodeWarrior for Microcontrollers-Eclipse IDE|NXP

Regards,

Martin

0 Kudos

1,180 Views
snehakalkhair
Contributor III

Hi Martin,

Will you please help me the flash erase process for MPC5674F. I have the following code to erase the flash but i get the Device is censored error.

Please suggest .

#include "MPC5674F.h"

unsigned int test(void)

{

  /* unlock M0 in flash array B */

  FLASH_B.LMLR.R = 0xA1A11111;

  FLASH_B.LMLR.R = 0x001203FF;

  FLASH_B.SLMLR.R = 0xC3C33333;

  FLASH_B.SLMLR.R = 0x001203FF;

 

  /* erase M0 */

  FLASH_B.MCR.B.ERS = 1;

  FLASH_B.LMSR.R = 0x00010000; /* select M0 only */

  *(unsigned int *)0x000C0000 = 0xFFFFFFFF; /* interlock write */

  FLASH_B.MCR.B.EHV = 1; /* start erase */

  while(FLASH_B.MCR.B.DONE == 0){};  /* wait for done */

  FLASH_B.MCR.B.EHV = 0;

  FLASH_B.MCR.B.ERS = 0; 

  if(FLASH_B.MCR.B.PEG == 0)

  return 1; /* return error if PEG was not set */

  /* program M0 (one word only) */

  FLASH_B.MCR.B.PGM = 1; 

  *(unsigned int *)0x000C0000 = 0xAABBCCDD; /* interlock write */

  FLASH_B.MCR.B.EHV = 1; /* start programming */

  while(FLASH_B.MCR.B.DONE == 0){};  /* wait for done */

  FLASH_B.MCR.B.EHV = 0;

  FLASH_B.MCR.B.PGM = 0; 

  if(FLASH_B.MCR.B.PEG == 0)

  return 2; /* return error if PEG was not set */

  /* and erase M0 again */

  FLASH_B.MCR.B.ERS = 1;

  FLASH_B.LMSR.R = 0x00010000; /* select M0 only */

  *(unsigned int *)0x000C0000 = 0xFFFFFFFF; /* interlock write */

  FLASH_B.MCR.B.EHV = 1; /* start erase */

  while(FLASH_B.MCR.B.DONE == 0){};  /* wait for done */

  FLASH_B.MCR.B.EHV = 0;

  FLASH_B.MCR.B.ERS = 0; 

  if(FLASH_B.MCR.B.PEG == 0)

  return 3; /* return error if PEG was not set */   

 

  return 0;

}

int main(void) { 

  volatile unsigned int error = 0;

  error = test();   

 

  for (;;) {

  }

}

0 Kudos

1,180 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

that's the piece of code which I shared in another thread. It's my tested code which works.

Did you attempt to modify also the shadow flash? What did you do before you get this problem? If shadow flash is erased and censorship information is not restored appropriately then the device is locked forever and it must be replaced. Take a look at this application note:

http://www.nxp.com/files/32bit/doc/app_note/AN3787.pdf

Regards,

Lukas

0 Kudos

1,180 Views
snehakalkhair
Contributor III

Hi Lukas,

I just tried flashing the above code.

I didnt erase the shadow flash as per my information. Actually my Code Warrior eval copy had expired after which we were unable to execute any programs on MPC5674F. Then we tried reinstalling CW on another system and try whether it works but it didnt. The empty project executes successfully on MPC5676R.

So i dont understand what exactly the problem is now.

I get the following error :

pastedImage_0.png

Please help.

0 Kudos

1,180 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Have you followed Stanislav's recommendations?

https://community.nxp.com/message/816700?et=watches.email.thread#comment-816700

It looks like there's some problem with connection. Try to push the ZIF socket down, slightly "shake" the MCU in the socket and try it again. Sometimes it helps.

Lukas

0 Kudos

1,180 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

could you please clarify following points:

1) Which microcontroller you use? MPC5674F or MPC5674R?

2) Which version of Code Warrior you use?

3) When you power up the board, are both LED diodes on Multilink ON?

4) Do you have installed PE Micro drivers on your operating system? (Can be downloaded from following URL http://www.pemicro.com/support/download_processor.cfm )

5) Are you able to connect to another board?

6) Do you have another debug probe to check, if MPC5674ADAT516 is OK?

Regards,

Martin

0 Kudos