Custom MCXA156VLH board always power-up in ISP mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Custom MCXA156VLH board always power-up in ISP mode

1,209 次查看
rj_engineer
Contributor III

Following the MCXA14x/15x hardware design guide and FRDM-MCXA156 schematics, we designed a board with the MCXA156VLH. However, the MCU always enter ISP after power-up ignoring the ISP_MODE pin logic level.

 

Here are the relevant schematics :

mcu_schematic.pngmcu_isp_reset_schematic.png

We checked multiple times that the ISP_MODE pin is P3_29 on MCXA156VLH (the P0_6 pin is only routed to a pull-up).

Here are our observations :

  • The ISP_MODE pin is at 3V3 after Power-up
  • The MCU enters Master boot after a warm reset (button, debug, blhost)
  • The ISP_MODE stays at 3V3 after soft reset
  • We see the normal rise and fall (capacitor charging) on the RESET and ISP_MODE pins during power-up and button press
  • interestingly, connecting the PE-Micro Multilink universal debug probe (even not powered) launch the user code (we suspect a reset)

We would greatly appreciate if you could give us any advice on the source of this error.

 

Sincerely,

标签 (2)
标记 (2)
0 项奖励
回复
15 回复数

1,173 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @rj_engineer 

If there is no valid image in the internal flash, the MCU will enter ISP mode after a reset.
Please first download a valid image to the flash for testing.
If it still fails to operate normally, please send your schematic in PDF format. Additionally, please tell me how do you determine whether it has entered ISP mode.
Thank you. 
 

BR

Alice

0 项奖励
回复

1,163 次查看
rj_engineer
Contributor III

Hello Alice,

  1. Using MCUXpresso IDE (and a debug probe), i flashed the SDK "dev_cdc_vcom_bm" and can interact with the board through serial terminal. That's why, i consider having a valid image. However, after power-cycling, the board enters in ISP mode.
  2. I determine being in ISP because i can use blhost to interact with the board without a debugger.
  3. Please find attached the relevant schematic in PDF format as well as the layout just in case
0 项奖励
回复

1,093 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi @rj_engineer 

 

Please remove the TVS connected to ISP pin to have a try. 

Alice_Yang_1-1757060425377.png

 

BR

Alice

 

0 项奖励
回复

1,091 次查看
rj_engineer
Contributor III

Hi Alice,

 

I removed the TVS and the behaviour remains the same, the board power-up in ISP mode.

0 项奖励
回复

1,036 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi @rj_engineer 

"

  1. Using MCUXpresso IDE (and a debug probe), i flashed the SDK "dev_cdc_vcom_bm" and can interact with the board through serial terminal. That's why, i consider having a valid image. However, after power-cycling, the board enters in ISP mode.
  2. I determine being in ISP because i can use blhost to interact with the board without a debugger.

"

->> Please create a video that demonstrates all the steps. Use the led_blinky demo (do not use USB cdc demo), and verify whether the LED continues blinking after power-cycling the board.

 

Thank you.

 

BR

Alice

0 项奖励
回复

1,023 次查看
rj_engineer
Contributor III

Hi Alice,

 

Please find attached the requested video.

0 项奖励
回复

1,000 次查看
rj_engineer
Contributor III
 
0 项奖励
回复

978 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi @rj_engineer 

Thanks for your sharing. 

It is strange,. Please measure and monitor the ISP pin, and also record a video of the process. Thank you.

 

BR

Alice

0 项奖励
回复

970 次查看
rj_engineer
Contributor III

Hi Alice,

Please find attached the video with the following steps :

  1. Activate the trigger of the oscilloscope on the ISP pin
  2. Power-up the board
  3. Observe the ISP rise curve
  4. Activate the trigger of the oscilloscope on the ISP pin
  5. Reset the board by shorting the Reset pin with Ground
  6. Observe the ISP rise curve (a mistake might have shorted the ISP pin too)
  7. Observe the LED blinking as the board left the ISP mode due to reset
  8. Activate the trigger of the oscilloscope on the ISP pin
  9. Press the ISP button (ISP short to ground) and release it (ISP back to 3V3)
  10. Observe the ISP rise curve

Note : the oscilloscope is at 1V per square and 200us per square

0 项奖励
回复

739 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi @rj_engineer 

Thanks for your reply.

From your description, if the LED is blinking, I believe the board is working properly and has not entered ISP mode.

Alice_Yang_0-1757646629208.png

However, if I misunderstood and your board does enter ISP mode upon reset, I suspect that when you connected the RESET pin to GND, you may have also accidentally connected the ISP pin to GND.

You can try measuring both the ISP pin and RESET pin at the same time to check the state of the ISP pin during reset.

Thank you.

 

BR

Alice

 

0 项奖励
回复

731 次查看
rj_engineer
Contributor III

Hi Alice,

 

It is the opposite, the board enters ISP mode at power-up and enter normal mode (master boot) after a reset.

 

Please find attached the ISP (yellow) and RESET (green) curve on power-up and after a software reset (blhost reset)

0 项奖励
回复

615 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @rj_engineer 

From the image in your attachment, there are no issues with the RESET and ISP pins.
If there is no valid image in the flash, the device will enter ISP mode when powered on.

 

BR

Alice

0 项奖励
回复

611 次查看
rj_engineer
Contributor III

Hi alice,

The image in the MCU is directly flashed by MCUXpresso Led_Blinky_example. I don't understand how it couldn't be valid.

 

An additional detail is that i use the OP29K revision of the MCXA156VLH.

0 项奖励
回复

547 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @rj_engineer 

Thanks for your reply.

 

Yes, my FRDM-MCXA156 also uses the OP29K revision.

 

Do you have an FRDM-MCXA156 board? Does it work properly?

 

I've had you try all the possibilities I can think of, and I really don't know why this is happening. It might still be that the ISP pin is being pulled low during power supply. This is the only way to enter ISP mode when there's a valid image in the flash.

 

BR

Alice

 

0 项奖励
回复

40 次查看
rj_engineer
Contributor III

Hi Alice,

 

We have found the root of our problem.

 

The P0_6 pin was pulled-down at boot by a 10k resistor. Removing the resistor make the board boot normally (led blinking), soldering it back make the board boot in ISP (led not blinking).

 

What puzzles us is that the "MCX A156, A155, A154, A146, A145, A144
Reference Manual" and the "UG10151 MCXA14x/15x Hardware Design Guide" clearly states that the ISP pin is P3_29 for LQFP64 and lower pin count (obviously including our MCXA156VLH OP29K), The P0_6 pin act as isp only for higher pin counts.

 

Page 123 of the reference manual :

RM_isp_pin.png

Page 9 of the hardware guidelines : 

Hardware_guide_isp_pin.png

 

Can you confirm that this behaviour is abnormal?

0 项奖励
回复