iMX8XQXP clock management

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

iMX8XQXP clock management

549 Views
rsk_11
Contributor III

I am using iMX8XQXP MEK.
I am new to SCU firmware and have following doubts.

It is mentioned that all subsystem PLLs and clocks are managed by SCU.
I want to use M4 Core peripherals( Uart, ADC etc), for this will I need to make any change in SCU firmware?
Or do I only need to call SCFW API from my M4 Core Application?

Ain't the subsystem PLLs and clocks enabled by default by SCU?

 

Regards,

0 Kudos
3 Replies

543 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ruchi

 

>want to use M4 Core peripherals( Uart, ADC etc), for this will I need to make any change

>in SCU firmware? Or do I only need to call SCFW API from my M4 Core Application?

 

SCU firmware APIs are exported to M4 MCUXpresso SDK_MEK-MIMX8QX with

scfw_export_freertos.tar.gz package included in SCFW Porting Kit​ 1.10.0

Examples included in M4 MCUXpresso SDK_MEK-MIMX8QX, have for example functions in

../driver_examples/lpuart/polling/clock_config.c, emulating SCU APIs.

For SCFW clock usage one can look at sect.7.2 Clock Management

System Controller Firmware Porting Guide (sc_fw_port.pdf) included in SCFW Porting Kit​.

M4 MCUXpresso SDK_MEK-MIMX8QX can be obtained on   https://mcuxpresso.nxp.com/en/welcome

 

>Ain't the subsystem PLLs and clocks enabled by default by SCU?

 

yes

 

Best regards
igor

0 Kudos

532 Views
rsk_11
Contributor III

Thanks for information.

To be specific, I want to enable uart on M4 Core.

To do so, I will have to use SCFW APIs in my M4 core application to communicate with SCU.
I need to use API calls to power on respective uart and enable its clocks.

And need to repeat this for any other peripheral i want to use in M4 core.

Is that correct?

0 Kudos

523 Views
igorpadykov
NXP Employee
NXP Employee

>To be specific, I want to enable uart on M4 Core.

 

there is such example of Local LPUART for M4 Core0 in ..driver_examples/lpuart  folder

in M4 SDK_MEK-MIMX8QX available on https://mcuxpresso.nxp.com/en/welcome

 

Best regards
igor

0 Kudos