MPC5744P Cant connect to MCU via Multilink FX

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

MPC5744P Cant connect to MCU via Multilink FX

3,651 Views
nekvt
Contributor III

Hello,

I would like to ask you for a help with MPC5744P. I have a custom board which I am trying to get working using MPC5744P. Unfortunately, when I am trying to connect to the MCU with PE Multilink Universal FX I am getting an error. (see the attached picture) I inspected the power supplies and every pin is getting the correct voltage (either 3V3 or 1V25). 1V25 is supplied by external voltage regulator and it is at the right voltage. RST pin is pulled up to 3V3 with a 10k resistor and the same is with the POR pin but both of those pins, are pulled by the MCU low at all times. BCTRL pin is also pulled low even when pulled up with 10k to 1V25.
Attached, you can see the configuration of the debug probe in S32 Design Studio.
Why is MCU on purpose pulling the lines low?
Thanks for any ideas in advance.
Best regards,
Tomas

0 Kudos
15 Replies

3,643 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, it seems familiar to me.

Pay attention to following thread at the very bottom:

https://community.nxp.com/t5/MPC5xxx/MCU-always-in-reset/m-p/1231382

 

Dont you have PORST and RESET lines interconnected?

 

0 Kudos

3,638 Views
nekvt
Contributor III

Hi,

thank you for your answer, but both of the lines are pulled up to a 3V3 power supply through a 10k resistor. They are definitely not interconnected. At least when I try measure a resistance between them in off state I get 1 megaOhm. 

See the schematic of the board attached, any ideas would be much appreciated.

Best regards,

Tomas

0 Kudos

3,623 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

You have a fairly fundamental mistake there. 

 

davidtosenovjan_0-1624453555277.png

davidtosenovjan_1-1624453582748.png

 

 

0 Kudos

3,611 Views
nekvt
Contributor III

Thank you very much for pointing that out. I fixed that, so now the VPP_TEST is tied to GND, but still the same behaviour appears. MCU is not starting, RST and POR pins are held low. So no luck on this front. 
Do you have any other ideas/suggestions? 

Thanks so much in advance.
Tomas

0 Kudos

3,604 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Don't you K20 in reset? Do you have some SW flashed in K20 device? I suppose this may keep MPC5744P in reset

davidtosenovjan_0-1624538276324.png

 

0 Kudos

3,602 Views
nekvt
Contributor III

The K20 was meant to be OpenSDA, but since DAPLink isnt compatible with power architecture, this idea was scraped. Right now, U13 is desoldered, so the JTAG input into the AND gate is pulled permanently high with 10k.

0 Kudos

3,597 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Have you measure power-up sequence along with PORST and RESET signal?

0 Kudos

3,583 Views
nekvt
Contributor III

Here is the power up sequence. The yellow line is input 3V3 power, green is 1V25 power line, blue is the PORST and orange is the RST line. PORST after the events ends at 138mV, RST ends up at 35mV. Seems like the MCU just doesnt want to start. Any ideas would be very appreciated.

Best regards,
Tomas

0 Kudos

3,565 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I don't know a reason why don't use standardized JTAG connector, anyway, 3.3V must be used there as on the screenshot below (MPC5644P_DEVKIT), you have there 5V:

davidtosenovjan_0-1624624132183.png

What about FAB pin, do you have it connected to the GND? Have you tried POR sequence without connected debugger?

0 Kudos

3,507 Views
nekvt
Contributor III

Hi,
I tried to measure the power up sequence without connected debugger and I got pretty much the same result as with one connected, see below. 
I noticed strange behavior on the power off, look at the image attached. When power is being switched off it seems like the MCU at some point releases the RST and PORST pin and then it discharges with the PS as they are pulled up to 3V3 which is yellow on that chart. Which I guess confirms, that MCU is holding these pins down deliberately. I am confused, why is this happening, MCU has the right power and everything.

0 Kudos

3,462 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

EXT_POR is supposed to be pulled-up by 4.7k, but you have there only 1M resistor on the buck regulator.

davidtosenovjan_0-1625655621182.png

davidtosenovjan_1-1625655661062.png

 

0 Kudos

3,507 Views
nekvt
Contributor III

I also noticed, that on TDI, TCLK and TMS I have 0,8V DC constantly. When I am trying to load SW (from S32 studio) there is no activity on TCLK (scope is not triggered when set to trip on 1V).

0 Kudos

3,535 Views
nekvt
Contributor III

Hi, it was mainly for space concerns, however it proved to be pain to deal with when debugging so next version will have the standardized connector. The 5V was used mainly for general power up of the board, also because we were not using standardized JTAG, but the 3V3 and 1V25 is made from 5V so CPU should be getting the power it requires.
FAB pin is tied to ground through that switch, the other boot selection pins are tied to 3V3 for now.
The power up sequence is measured without a debugger connected. I will try to measure the power up sequence with the debugger connected. 
PS: Last week I also posted another question here on the forums and I have not got an answer for that. Would you mind take a look at that as well? 
https://community.nxp.com/t5/MPC5xxx/DEVKIT-MCP5744P-connector-spacing/m-p/1296218#M18510

Thank you so much for you time and help.
Best regards,
Tomas

0 Kudos

3,597 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

BCTRL must be left open.

davidtosenovjan_0-1624539425983.png

 

0 Kudos

3,584 Views
nekvt
Contributor III

I removed the pull up rezistor and left BCTRL open, but unfortunately behaviour did not change. Although I read in the HW design guide that BCTRL can be tied to an PWR supply. See the attached screenshot.

0 Kudos