[i.MX8qxp][SCFW] How to read ADC value in SCFW?

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

[i.MX8qxp][SCFW] How to read ADC value in SCFW?

Jump to solution
769 Views
WolsYang
Contributor IV

Hi NXP,

Is that able to read ADC pin value in SCFW?

Like I can ready ADC_IN0 value in Linux.

0 Kudos
Reply
1 Solution
707 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @WolsYang,

I hope you are doing well.

ADC driver support is not available in SCFW.

One can refer to imx-scfw-porting-kit-1.15.0/packages/imx-scfw-porting-kit-1.15.0/src/scfw_export_mx8qx_b0/platform/board/pmic.h to read PMIC Voltage using I2C.


Thanks & Regards,
Dhruvit Vasavada

View solution in original post

0 Kudos
Reply
3 Replies
749 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @WolsYang,

I hope you are doing well.
 
The System Controller Firmware (SCFW) is a low-level system function that runs on a dedicated Cortex-M core(SCU) to provide power, clock,
resource management, System Initialization, System Controller Communication, etc.
 
SCFW can be used to assign resources(pad, clock, power, memory ) to a particular core.
The SC is not intended for use as a general-purpose M4 complex.
 
Can you please describe the reason behind reading ADC value in SCFW?
 
One can use User CM4 Complexes to read ADC_IN0 value in CM4 using MCUXpresso SDK.
Please refer to the example at SDK_2_9_0_MEK-MIMX8QX/boards/mekmimx8qx/driver_examples/lpadc/ for reading ADC value in the CM4 core.
 
Thanks & Regards,
Dhruvit Vasavada.
0 Kudos
Reply
719 Views
WolsYang
Contributor IV

Hi @Dhruvit :

Sorry for the late reply.

We hope we can detect the power source is enough and then turn on the A-core.

Like if a power input is less than 9v should not turn on Linux

0 Kudos
Reply
708 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @WolsYang,

I hope you are doing well.

ADC driver support is not available in SCFW.

One can refer to imx-scfw-porting-kit-1.15.0/packages/imx-scfw-porting-kit-1.15.0/src/scfw_export_mx8qx_b0/platform/board/pmic.h to read PMIC Voltage using I2C.


Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply