Hi,
I see that there are various examples of EtherCAT slave configurations for the GP EVM but not yet for the Lauchpad LP-AM243. Will these be coming soon?
Thanks,
Steve
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I see that there are various examples of EtherCAT slave configurations for the GP EVM but not yet for the Lauchpad LP-AM243. Will these be coming soon?
Thanks,
Steve
Hi Steve,
Yes, EtherCAT examples are enabled as part of July end release (beta).
You can access it via below links -
Package Location:
AM243x : https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/08_01_00_07/index_FDS.html
AM64x : https://software-dl.ti.com/mcu-plus-sdk/esd/AM64X/08_01_00_07/index_FDS.html
Key Additions in this Release:
Hope this helps!
Regards,
Prasad
Thank you Prasad - I will investigate and let you know how I get on.
Best regards, Steve
Hi Prasad, I can compile and run the code. However, I get a weird error. Any ideas?
Local Implementation Pruicss max =1 selected PRU:1 Did Map 0x30080000 len 0x2000 to 0x30080000 (dram0) Did Map 0x30082000 len 0x2000 to 0x30082000 (dram1) Did Map 0x300b4000 len 0x100 to 0x300b4000 (iram0) Did Map 0x300b8000 len 0x100 to 0x300b8000 (iram1) Did Map 0x30090000 len 0x10000 to 0x30090000 (shdram) Did Map 0x300a2000 len 0x400 to 0x300a2000 (control0) Did Map 0x300a4000 len 0x400 to 0x300a4000 (control1) Did Map 0x300a0000 len 0x2000 to 0x300a0000 (intc) Did Map 0x300a6000 len 0x2000 to 0x300a6000 (cfg) Did Map 0x300a8000 len 0x2000 to 0x300a8000 (uart0) Did Map 0x300ae000 len 0x2000 to 0x300ae000 (iep) Did Map 0x300b0000 len 0x2000 to 0x300b0000 (ecap0) Did Map 0x300b2000 len 0x400 to 0x300b2000 (mii_rt) Did Map 0x300b2000 len 0x1c00 to 0x300b2000 (mdio) Creating thread <Appl_LoopTask> at Prio 7 Did create thread <Appl_LoopTask> at Prio 7 with id 0x70108a48 Phy UnReset: 0.20 Phy UnReset: 0.73 pRegPerm = 0x30082000, dram1=0x30082000, offset = 0x00000000, size = 0x00001400 Phy Reset: 0.20 Phy Reset: 0.73 Phy UnReset: 0.20 Phy UnReset: 0.73 Configure Phy bits: PhyAddr:3, LinPol:HIGH, PhyAddr:15, LinPol:HIGH, (0x0) /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:143(PRU_PHY_detect).PHY0 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:151(PRU_PHY_detect).PHY1 not ok /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive No PHYs found !!! OSAL_error: 0x120003 EC is fatal=1, SRC:/opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_mdio.c:179
In other words, is /opt/jenkins/workspace/... the last builder of the sdk library - should I rebuild it?
Thanks,
Steve
Hi
We have few questions for you:
1. Can you confirm that you are doing SOC initialization using SBL NULL or load_dmsc.js script before running this application on R5F?
2. Did you try multiple times, and are you seeing the same failure every time?
3. Have you tried running any other example which uses Ethernet PHY?
Regards
Dhaval Khandla
Hi Dhaval,
Well, I don't know what I did but tonight it appears to be working.
Local Implementation Pruicss max =1 selected PRU:1 Did Map 0x30080000 len 0x2000 to 0x30080000 (dram0) Did Map 0x30082000 len 0x2000 to 0x30082000 (dram1) Did Map 0x300b4000 len 0x100 to 0x300b4000 (iram0) Did Map 0x300b8000 len 0x100 to 0x300b8000 (iram1) Did Map 0x30090000 len 0x10000 to 0x30090000 (shdram) Did Map 0x300a2000 len 0x400 to 0x300a2000 (control0) Did Map 0x300a4000 len 0x400 to 0x300a4000 (control1) Did Map 0x300a0000 len 0x2000 to 0x300a0000 (intc) Did Map 0x300a6000 len 0x2000 to 0x300a6000 (cfg) Did Map 0x300a8000 len 0x2000 to 0x300a8000 (uart0) Did Map 0x300ae000 len 0x2000 to 0x300ae000 (iep) Did Map 0x300b0000 len 0x2000 to 0x300b0000 (ecap0) Did Map 0x300b2000 len 0x400 to 0x300b2000 (mii_rt) Did Map 0x300b2000 len 0x1c00 to 0x300b2000 (mdio) Creating thread <Appl_LoopTask> at Prio 7 Did create thread <Appl_LoopTask> at Prio 7 with id 0x70108a48 Phy UnReset: 0.20 Phy UnReset: 0.73 pRegPerm = 0x30082000, dram1=0x30082000, offset = 0x00000000, size = 0x00001400 Phy Reset: 0.20 Phy Reset: 0.73 Phy UnReset: 0.20 Phy UnReset: 0.73 Configure Phy bits: PhyAddr:3, LinPol:HIGH, PhyAddr:15, LinPol:HIGH, (0x0) /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 3 alive /opt/jenkins/workspace/_ethercat_linux_release_V1.04.02/kb_stack/kb_pru_integration/phyLib/src/pru_phy.c:172 Phy 15 alive Phy 3 : Disable RGMII mode Phy 3 : Disable GBit ANEG Phy 15 : Disable RGMII mode Phy 15 : Disable GBit ANEG Phy 3 : Enable AutoMDIX Phy 3 : Restart ANEG Phy 3: BMSR post ANEG: 7949 ANEG:NComplete Link:No Phy 15 : Enable AutoMDIX Phy 15 : Restart ANEG Phy 15: BMSR post ANEG: 7949 ANEG:NComplete Link:No PHY Disable Magnetics PRU ESC: Rev 0590 | Bld 04F2 | INTC base: 0x300a0000 , id = 0x4e82a900 INTC.HIDISR addr: 0x300a0038 Creating thread <BEPDItask> at Prio 12 Did create thread <BEPDItask> at Prio 12 with id 0x700fc9f0 Creating thread <BESync0Task> at Prio 13 Did create thread <BESync0Task> at Prio 13 with id 0x700fe9f0 Creating thread <BESync1Task> at Prio 13 Did create thread <BESync1Task> at Prio 13 with id 0x701009f0 Creating thread <BELedTask> at Prio 10 Did create thread <BELedTask> at Prio 10 with id 0x701029f0
Hi, Dhaval
1.When I load_dmsc.js script before running this application on R5F, It shows that SOC initialization is normal and working.
2.I will try running any other example which uses Ethernet PHY, and then give you timely feedback on the results of your run.
Thanks !
Shaoxing,
Can you please start new thread if you still see issues running EtherCAT on your board?
I will close this thread as OP was able to run the example.
Regards,
Prasad