Crash on write to USBC_UOG2_PORTSC1

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

Crash on write to USBC_UOG2_PORTSC1

Jump to solution
727 Views
davidjaouen
Contributor III

Hi,

I'm porting MQX4.2 to the i.MX6SX. I'm trying to make the USB v2 stack working.

When executing the usb_ehci_init() function in ehci_host.c, the cortex-M4 crashes when it tries to

write 0x10001000 in the USBC_UOG2_PORTSC1 register(@0x42184384).

Any idea why the M4 crashes?

Regards,

David Jaouen

Labels (1)
Tags (1)
0 Kudos
1 Solution
597 Views
igorpadykov
NXP Employee
NXP Employee

Hi David

one can check if clock is enabled in CCM_CCGRn

registers and permissions from RDC side.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
598 Views
igorpadykov
NXP Employee
NXP Employee

Hi David

one can check if clock is enabled in CCM_CCGRn

registers and permissions from RDC side.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
597 Views
davidjaouen
Contributor III

Hi Igor,

Thanks for your answer. The USB PLL was not enabled so...

Regards,

David

0 Kudos