Custom MCXA156VLH board always power-up in ISP mode

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

Custom MCXA156VLH board always power-up in ISP mode

1,165件の閲覧回数
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 件の賞賛
返信
14 返答(返信)

1,129件の閲覧回数
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,119件の閲覧回数
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,049件の閲覧回数
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,047件の閲覧回数
rj_engineer
Contributor III

Hi Alice,

 

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

0 件の賞賛
返信

992件の閲覧回数
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 件の賞賛
返信

979件の閲覧回数
rj_engineer
Contributor III

Hi Alice,

 

Please find attached the requested video.

0 件の賞賛
返信

956件の閲覧回数
rj_engineer
Contributor III
 
0 件の賞賛
返信

934件の閲覧回数
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 件の賞賛
返信

926件の閲覧回数
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 件の賞賛
返信

695件の閲覧回数
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 件の賞賛
返信

687件の閲覧回数
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 件の賞賛
返信

571件の閲覧回数
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 件の賞賛
返信

567件の閲覧回数
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 件の賞賛
返信

503件の閲覧回数
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 件の賞賛
返信