MPC5784G Core2 Not Working without RESET

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5784G Core2 Not Working without RESET

1,478件の閲覧回数
Charith
Contributor I

Hi, 

I am using MPC5748G Controller, where I am using Core 2 for programming TFT Display, the problem I am facing is display does not come up until I RESET the Microcontroller using the SW1 on the hardware, but core 1 will work without RESET as soon as powered up. Please suggest if there is any solution for this.

Thanks

0 件の賞賛
返信
3 返答(返信)

1,454件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Well that wont be necessary. I am interested only on how do you start core2.

Below is the example how it should looks like, as you see, no reset is needed. In fact reset will put core2 into reset state.

What you are describing is not possible to achieve from HW standpoint concept of this micro.

Best regards,

Peter

 

void Core_Boot (void)
{
/* ~~~~~~~~~~~~~~~~~~~~~~~ Configure Cores ~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Enable Cores - Will start on next mode transistion */

//MC_ME.CCTL1.R = 0x00FE; // (z4a) - boot core_0 is active
MC_ME.CCTL[2].R = 0x00FE; // (z4b) - core_1 is active
MC_ME.CCTL[3].R = 0x00FE; // (z2) - core_2 is active

/* Set Start address for other cores: Will reset and start */
/* Flash addresses */
MC_ME.CADDR[2].R = 0x00F90001; // core_1 (z4b) boot address
MC_ME.CADDR[3].R = 0x00F9C001; // core_2 (z2) boot address

/****************************** Preform mode change **************************/

/* Mode change Re-enter the drun mode, to start cores */
MC_ME.MCTL.R = 0x30005AF0; /* Mode & Key */
MC_ME.MCTL.R = 0x3000A50F; /* Mode & Key inverted */

while(MC_ME.GS.B.S_MTRANS == 1); /* Wait for mode entry complete */
while(MC_ME.GS.B.S_CURRENT_MODE != 0x3); /* Check DRUN mode entered */

}//Core_Boot

 

0 件の賞賛
返信

1,469件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Could you please share how do you start core2?

Best regards,

Peter

0 件の賞賛
返信

1,465件の閲覧回数
Charith
Contributor I
Should I send Startup Code.
0 件の賞賛
返信