GPIO glitch during the bootup or power-on in IMX8M

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

GPIO glitch during the bootup or power-on in IMX8M

803件の閲覧回数
sunile
Contributor II

I'm using a customized IMX8M board and using the GPIOs listed below.

1. GPIO BANK 3 -  GPIO 22

2. GPIO BANK 3 - GPIO 23

3. GPIO BANK 1 - GPIO 15

During the boot process, I observe  glitches on these gpio pins(where voltage raises nearly to 2v) and I can see  same behavior is  across all three gpios.

This behavior is seen with boot loader software and without any software running. I have attempted to configure these GPIO pins in u-boot-spl. However, the glitches occur much earlier in the boot process, within the first 5 milliseconds.

I have included measurements of the GPIOs with a 12V VCC supply. PFA. The GPIOs are represented in red, while the VCC is shown in yellow.

sunile95_0-1694087908185.jpegsunile95_1-1694087916451.jpeg

 

I couldn't get a clear idea whether the GPIO glitch happened because of the boot ROM code or with hardware. Any help would be appreciated.

Thanks in Advance.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

703件の閲覧回数
sunile
Contributor II

Hi Chavira,

I'm using IMX8MM.
I have added the following code in the function "board_init_r" in the file common/spl/spl.c.

gpio_request(IMX_GPIO_NR(3, 22),"rGPIO");
gpio_direction_output(IMX_GPIO_NR(3, 22), 0);

When I added the above changes, I observed GPIO sets after 500ms. However, Our requirement is to set GPIO very early during boot up and resolve the glitch. Can you help me here how to set GPIOs very early in the boot stage?

I have attached the schematics of one GPIO connected to the relay.

sunile_1-1694166417243.png

 

 

Thanks & Regards 

Sunil



 

0 件の賞賛
返信

693件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

Hi @sunile!


I think the problem is not the iMX8MM.

For Relay control I think is better an optocoupler instead of a transistor to maintain isolated the control of the power control.

Please remove the R70310 and do the measurement on P70329 again if the problem persists let me know!

Best Regards!

Chavira

0 件の賞賛
返信

762件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

Hi @sunile!

Thank you for contacting NXP Support!

Do you refer to iMX8MM or iMX8MN?

Can you share the configuration of those pins?

Can you share your schematic to see how are connected those pins?

I recommend checking our evk and trying to connect in the same way to avoid the problems or following our Hardware design guide for iMX8M.

Best Regards!

Chavira

0 件の賞賛
返信