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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
642 次查看
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 项奖励
回复
1 解答
580 次查看
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 项奖励
回复
3 回复数
622 次查看
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 项奖励
回复
592 次查看
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 项奖励
回复
581 次查看
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 项奖励
回复