iMX93 read ADC using CM33

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

iMX93 read ADC using CM33

179 次查看
ptremante
Contributor I

Hi NXP Team,

I'm working with the imx93_evk_11x11 board and have built a custom image with LF 6.6.x kernel and the Scarthgap Yocto release.

My goal is to test adc1 on the CM33 core, so I downloaded the MCUXpresso SDK and built the `sar_adc/polling` example.

The problem occurs when I load the firmware using `remoteproc`:

echo -n adc_polling_cm33.elf > /sys/class/remoteproc/remoteproc0/firmware
echo -n start > /sys/class/remoteproc/remoteproc0/state

At that point, everything freezes, both the A55 and CM33 cores.
On the CM33 debug UART I only see the first message:
`ADC polling example`
…then the system hangs and I have to reboot the board.

I tested the same firmware from U-Boot and it works perfectly, so I suspect a conflict with some kernel configuration.
I also tried disabling the `adc1` node in the device tree, but the issue persists.

Has anyone successfully run the ADC examples on CM33 with this EVK?
Am I missing something that should be disabled on the A55 side?
Any help or suggestions would be greatly appreciated!

Thanks a lot!

Pasquale

 

0 项奖励
回复
1 回复

151 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

This could be caused by a peripheral conflict between Cortex-M and Cortex-A cores since are trying to access at the same peripheral simultaneously.

You can use this post as reference:

Test SAI3 while running M7 firmware with remoteproc

Best regards.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2203584%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%20CM33%20%E8%AF%BB%E5%8F%96%20iMX93%20ADC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2203584%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3E%E6%82%A8%E5%A5%BD%EF%BC%8CNXP%E5%9B%A2%E9%98%9F%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20i%3CSTRONG%3Emx93_evk_11x11%3C%2FSTRONG%3E%20%E6%9D%BF%EF%BC%8C%E5%B9%B6%E4%BD%BF%E7%94%A8%20%3CSTRONG%3ELF%206.6.x%20kernel%3C%2FSTRONG%3E%20%E5%92%8C%20%3CSTRONG%3EScarthgap%20Yocto%20%E7%89%88%E6%9C%AC%3C%2FSTRONG%3E%E6%9E%84%E5%BB%BA%E4%BA%86%E8%87%AA%E5%AE%9A%E4%B9%89%E9%95%9C%E5%83%8F%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84%E7%9B%AE%E6%A0%87%E6%98%AF%E5%9C%A8%3CSTRONG%3E%20CM33%3C%2FSTRONG%3E%20%E5%86%85%E6%A0%B8%E4%B8%8A%E6%B5%8B%E8%AF%95%3CSTRONG%3E%20adc1%3C%2FSTRONG%3E%20%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E4%B8%8B%E8%BD%BD%E4%BA%86%20MCUXpresso%20SDK%20%E5%B9%B6%E5%88%9B%E5%BB%BA%E4%BA%86%3CSTRONG%3E%20%60sar_adc%2F%E8%BD%AE%E8%AF%A2%60%3C%2FSTRONG%3E%20%E7%A4%BA%E4%BE%8B%E3%80%82%3C%2FP%3E%3CP%3E%E5%BD%93%E6%88%91%E4%BD%BF%E7%94%A8%20%60remoteproc%60%20%E5%8A%A0%E8%BD%BD%E5%9B%BA%E4%BB%B6%E6%97%B6%EF%BC%8C%E9%97%AE%E9%A2%98%E5%B0%B1%E5%87%BA%E7%8E%B0%E4%BA%86%EF%BC%9A%3C%2FP%3E%3CP%3Eecho%20-n%20adc_polling_cm33.elf%26gt%3B%20%2Fsys%2Fclass%2Fremoteproc%2Fremoteproc0%2Ffirmware%3CBR%20%2F%3Eecho%20-n%20start%26gt%3B%20%2Fsys%2Fclass%2Fremoteproc%2Fremoteproc0%2Fstate%3C%2FP%3E%3CP%3E%E8%BF%99%E6%97%B6%EF%BC%8C%3CSTRONG%3E%E4%B8%80%E5%88%87%E9%83%BD%3C%2FSTRONG%3E%E4%BC%9A%3CST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5%9C%A8%E3%80%82%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E6%88%91%E6%98%AF%E5%90%A6%E9%81%97%E6%BC%8F%E4%BA%86%20A55%20%E7%AB%AF%E5%BA%94%E7%A6%81%E7%94%A8%E7%9A%84%E6%9F%90%E4%BA%9B%E5%8A%9F%E8%83%BD%EF%BC%9F%3CBR%20%2F%3E%E5%A6%82%E6%9C%89%E4%BB%BB%E4%BD%95%E5%B8%AE%E5%8A%A9%E6%88%96%E5%BB%BA%E8%AE%AE%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E4%B8%8D%E8%83%9C%E6%84%9F%E6%BF%80%EF%BC%81%3C%2FP%3E%3CP%3E%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%B0%A2%EF%BC%81%3C%2FP%3E%3CP%3E%E5%B8%95%E6%96%AF%E5%A4%B8%E8%8E%B1%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2203877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20iMX93%20read%20ADC%20using%20CM33%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2203877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CP%3E%E4%BD%A0%E5%A5%BD%3C%2FP%3E%0A%3CP%3E%E8%BF%99%E5%8F%AF%E8%83%BD%E6%98%AF%20Cortex-M%20%E5%92%8C%20Cortex-A%20%E5%86%85%E6%A0%B8%E4%B9%8B%E9%97%B4%E7%9A%84%E5%A4%96%E8%AE%BE%E5%86%B2%E7%AA%81%E9%80%A0%E6%88%90%E7%9A%84%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E4%BB%AC%E8%AF%95%E5%9B%BE%E5%90%8C%E6%97%B6%E8%AE%BF%E9%97%AE%E5%90%8C%E4%B8%80%E4%B8%AA%E5%A4%96%E8%AE%BE%E3%80%82%3C%2FP%3E%0A%3CP%3E%E4%BD%A0%E5%8F%AF%E4%BB%A5%E7%94%A8%E8%BF%99%E7%AF%87%E6%96%87%E7%AB%A0%E4%BD%9C%E4%B8%BA%E5%8F%82%E8%80%83%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FTest-SAI3-while-running-M7-firmware-with-remoteproc%2Fta-p%2F2047745%22%20target%3D%22_blank%22%3E%E4%BD%BF%E7%94%A8%20remoteproc%20%E8%BF%90%E8%A1%8C%20M7%20%E5%9B%BA%E4%BB%B6%E6%97%B6%E6%B5%8B%E8%AF%95%20SAI3%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E