IMX93-A55 and M33 started at the same time M core cannot control the GPIO

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

IMX93-A55 and M33 started at the same time M core cannot control the GPIO

跳至解决方案
3,164 次查看
ChumingYang
Contributor III

A core SDK version :6.1.55

M core SDK version:2.14

The first test:using flash.bin(make by make SOC=iMX9 flash_singleboot_m33) to start both A and M cores,then M core cannot control the GPIO(Test using M-core GPIO routine),However, other peripherals such as the SPI IIC work properly

The secord:using flash.bin(make by make SOC=iMX9 flash_singleboot) to start A cores,start M kernel using elf link file,then The M core can control GPIO normally

The third:In the uboot phase, load the firmware for gpio control (.bin format) to m33 and run m33 to control gpio normally

The above test methods are based on IMX93-EVK test,Do you have the general idea and solution of the positioning problem? Thank you

#IMX9352

0 项奖励
回复
1 解答
3,099 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @ChumingYang 

 

You are correct.

Zhiming_Liu_0-1713766853157.png

If yes, what can be judged by ATF module initialization success

-->You can try to read GPIO_BASE + 0x10/0x14/0x18/0x1c status.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
3,104 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The first test:using flash.bin(make by make SOC=iMX9 flash_singleboot_m33) to start both A and M cores,then M core cannot control the GPIO(Test using M-core GPIO routine),However, other peripherals such as the SPI IIC work properly

--> The difference between test1 and test2&3 is that, test1 will load M33 firmware before loading A55 firmware. Please check your M-core GPIO routine rules, the current M-core GPIO routine you use may need load A55 firmware before M33 core.

0 项奖励
回复
3,101 次查看
ChumingYang
Contributor III

I've confirmed your point by adding a 5 second delay to the M-core GPIO routine(before RGPIO_PININIT)

By reading the RM, I suspect that GPIO control in the M core is required after the initialization of the ATF security module in the A core is complete,Is this correct? If yes, what can be judged by ATF module initialization success

 

0 项奖励
回复
3,100 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @ChumingYang 

 

You are correct.

Zhiming_Liu_0-1713766853157.png

If yes, what can be judged by ATF module initialization success

-->You can try to read GPIO_BASE + 0x10/0x14/0x18/0x1c status.

0 项奖励
回复
3,093 次查看
ChumingYang
Contributor III

Thank you very much. I will continue to test in this direction. In addition, I am also very interested in the following questions

https://community.nxp.com/t5/i-MX-Processors/How-to-extend-the-buffer-size-of-A55-in-iMX9352-when-us... 

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1850298%22%20slang%3D%22ja-JP%22%20mode%3D%22CREATE%22%3EIMX93-A55%20and%20M33%20started%20at%20the%20same%20time%20M%20core%20cannot%20control%20the%20GPIO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1850298%22%20slang%3D%22ja-JP%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%A0%B8%E5%BF%83SDK%E7%89%88%E6%9C%AC%EF%BC%9A6.1.55%3C%2FP%3E%3CP%3EM%E6%A0%B8%E5%BF%83SDK%E7%89%88%E6%9C%AC%EF%BC%9A2.14%3C%2FP%3E%3CP%3EThe%20first%20test%EF%BC%9Ausing%20flash.bin%EF%BC%88make%20by%20%3CSPAN%3Emake%20SOC%3DiMX9%20flash_singleboot_m33%3C%2FSPAN%3E%EF%BC%89%20to%20start%20both%20A%20and%20M%20cores%EF%BC%8Cthen%26nbsp%3BM%20core%20cannot%20control%20the%20GPIO%EF%BC%88Test%20using%20M-core%20GPIO%20routine%EF%BC%89%EF%BC%8CHowever%2C%20other%20peripherals%20such%20as%20the%20SPI%20IIC%20work%20properly%3C%2FP%3E%3CP%3EThe%20secord%EF%BC%9Ausing%20flash.bin%EF%BC%88make%20by%26nbsp%3B%3CSPAN%3Emake%20SOC%3DiMX9%20flash_singleboot%3C%2FSPAN%3E%EF%BC%89%20to%20start%20A%20cores%EF%BC%8Cstart%20M%20kernel%20using%20elf%20link%20file%EF%BC%8Cthen%20The%20M%20core%20can%20control%20GPIO%20normally%3C%2FP%3E%3CP%3EThe%20third%EF%BC%9AIn%20the%20uboot%20phase%2C%20load%20the%20firmware%20for%20gpio%20control%20(.bin%20format)%20to%20m33%20and%20run%20m33%20to%20control%20gpio%20normally%3C%2FP%3E%3CP%3EThe%20above%20test%20methods%20are%20based%20on%20IMX93-EVK%20test%EF%BC%8CDo%20you%20have%20the%20general%20idea%20and%20solution%20of%20the%20positioning%20problem%3F%20Thank%20you%3C%2FP%3E%3CP%3E%23IMX9352%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1851368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AIMX93-A55%E5%92%8CM33%E5%90%8C%E6%97%B6%E5%90%AF%E5%8A%A8M%E6%A0%B8%E6%97%A0%E6%B3%95%E6%8E%A7%E5%88%B6GPIO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1851368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%B0%A2%E3%80%82%E6%88%91%E4%BC%9A%E7%BB%A7%E7%BB%AD%E6%9C%9D%E8%BF%99%E4%B8%AA%E6%96%B9%E5%90%91%E8%BF%9B%E8%A1%8C%E6%B5%8B%E8%AF%95%E3%80%82%E6%AD%A4%E5%A4%96%EF%BC%8C%E6%88%91%E8%BF%98%E5%AF%B9%E4%BB%A5%E4%B8%8B%E9%97%AE%E9%A2%98%E9%9D%9E%E5%B8%B8%E6%84%9F%E5%85%B4%E8%B6%A3%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors%2FHow-to-extend-the-buffer-size-of-A55-in-iMX9352-when-using%2Fm-p%2F1764431%2Femcs_t%2FS2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExQSFBUTEFUVTRDVlZ8MTc2NDQzMXxTVUJTQ1JJUFRJT05TfGhL%22%20target%3D%22_self%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors%2FHow-to-extend-the-buffer-size-of-A55-in-iMX9352-when-using%2Fmp%2F1764431%2Femcs_t%2FS2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExQSFBUTEFUVTRDVlZ8MTc2NDQzMXxTVUJTQ1JJUFRJT05TfGhL%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1851241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AIMX93-A55%E5%92%8CM33%E5%90%8C%E6%97%B6%E5%90%AF%E5%8A%A8M%E6%A0%B8%E6%97%A0%E6%B3%95%E6%8E%A7%E5%88%B6GPIO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1851241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F228137%22%20target%3D%22_blank%22%3E%40ChumingYang%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E4%BD%A0%E6%98%AF%E5%AF%B9%E7%9A%84%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_0-1713766853157.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_0-1713766853157.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F274860i294CD5FEA45B4724%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_0-1713766853157.png%22%20alt%3D%22Zhiming_Liu_0-1713766853157.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%E5%A6%82%E6%9E%9C%E6%98%AF%EF%BC%8CATF%E6%A8%A1%E5%9D%97%E5%88%9D%E5%A7%8B%E5%8C%96%E6%88%90%E5%8A%9F%E5%8F%AF%E4%BB%A5%E5%88%A4%E6%96%AD%E4%BB%80%E4%B9%88%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E--%26gt%3B%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%B0%9D%E8%AF%95%E8%AF%BB%E5%8F%96%3C%2FSPAN%3E%3CSPAN%3EGPIO_BASE%20%2B%3C%2FSPAN%3E%20%3CSPAN%3E0x10%2F%3C%2FSPAN%3E%20%3CSPAN%3E0x14%2F%3C%2FSPAN%3E%20%3CSPAN%3E0x18%2F%3C%2FSPAN%3E%20%3CSPAN%3E0x1c%20%E7%8A%B6%E6%80%81%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E