ethernet working on core m4

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

ethernet working on core m4

跳至解决方案
2,817 次查看
panezion
Contributor II

hi, I'm pretty new in embedded world. I've got a evk board on my hand with a cpu of type "imx8m". I've checked out all the files in mcuexpresso version  2.7 and found no files named like "fsl_fec" "fsl_enet" or any examples implement phy in cm4 world. 

my question is "is it possible for phy working on m4 core" if so, is there any brief tutorial I can follow 

best regards 

pan 

1 解答
2,214 次查看
kunalkotecha1
Senior Contributor II

Hi panezion@gmail.com,

Referring to the R.M, we can see that most peripherals are shared among both the core A7 and M4. RDC will be the one managing the access of peripherals between both the cores.

Yes, it is possible to use Ethernet on M4 core.However, the current SDK does not have support for Ethernet driver.

Regards,

Kunal

在原帖中查看解决方案

8 回复数
2,215 次查看
kunalkotecha1
Senior Contributor II

Hi panezion@gmail.com,

Referring to the R.M, we can see that most peripherals are shared among both the core A7 and M4. RDC will be the one managing the access of peripherals between both the cores.

Yes, it is possible to use Ethernet on M4 core.However, the current SDK does not have support for Ethernet driver.

Regards,

Kunal

2,214 次查看
panezion
Contributor II

I’ve finished the development of Ethernet driver and build an ETHERCAT stack over it. It just worked well. Thank you again for your help

1,957 次查看
stefanogurrieri
Contributor II

Hello,

could you please add a bit of information or some kind of note here, that could be helpful to anyone going through this kind of use case?

We need the same thing, ethercat over ethernet on M4 core. Not necessary on A53.

 

Thanks in advance!

Stefano

0 项奖励
回复
2,214 次查看
kunalkotecha1
Senior Contributor II

Hi panezion@gmail.com,

Glad you have developed the ethernet driver. Thanks for letting us know. Have you taken the ethernet driver reference from the linux kernel source and ported the same on FreeRTOS? Can you please add an information or some kind of note here, that could be helpful to anyone going through this kind of use case?

Regards,

Kunal

2,214 次查看
panezion
Contributor II

Hi, 

I ran into a other problem. after I build the EtherCAT stack on M4 core and the motion control app on Linux side and try to combine these two together. It seems thad I can't boot these two together. The problem seems caused by two core touches the ENET while booting together. So I tried to use the RDC(kRDC_Periph_ENET1) to lock the ENET and remove the device tree node which matches "*fec*" or "*enet*" and still the linux side touches the enet register and caused ----"Synchronous Abort" handler, esr 0x96000210"---- all the time.

Could you give me some hint about it ? 

Thank you so much

0 项奖励
回复
2,214 次查看
panezion
Contributor II

Thank you so much for replying. It's helpful

2,214 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello xiang,

You can not use the same Ethernet interface with different OSes.
You need to drive Ethernet from one OS and access it from another using something like messaging unit.
However it is not a good idea. This way you loose speed and realtime.

 

If you mean i.MX8 processor not i.MX8M please note that it has 2 Ethernet interfaces.

So yo can use one with RTOS runing on M4 core and another with Linux runing on A ones.

Regards

2,214 次查看
panezion
Contributor II

thank you.

sorry  for not making it clear.

I'm  not going to share the phy with m4 core. I just want it work on m4 but not on CortexA53 core.

can I just delete it from the device tree and use it on m4 core side?

beat regards 

pan

0 项奖励
回复