Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

AM263P4: Ethercat subdevice beckhoff ssc demo running from OSPI flash

Part Number: AM263P4
Other Parts Discussed in Thread: UNIFLASH, SYSCONFIG,

Hi all,

a customer has an issue running the Ethercat subdevice beckhoff ssc demo running from OSPI flash. Building and running it from SRAM (CCS load) works fine. We think there is some initialization missing.

In detailed we are having an issue with the AM263P4 Launch Pad Development board. The ESC does not seem to be active when I boot from Flash. If I scan for a device using TwinCAT nothing shows up, and using wireshark I do not see any packets coming from the device. I probed the MDIO bus and it looks like the ETH PHYs initialize properly. The ethernet connectors both show a solid green LED and the orange LED is off. My firmware works fine if I load the .out file using the CCS debugger and I can see the device in TwinCAT and both LEDs on the ethernet connector are on. My firmware is based on the example project in C:\ti\ind_comms_sdk_am263px_2026_00_00_06\examples\industrial_comms\ethercat_subdevice_beckhoff_ssc_demo. I am using the sysconfig file from that project with a few modifications to add UART communication. I am programming the flash with the .mcelf and .mcelf_xip images using the UART Uniflash command line tool following these instructions: https://software-dl.ti.com/mcu-plus-sdk/esd/AM263PX/latest/exports/docs/api_guide_am263px/TOOLS_FLASH.html and using the prebuilt SBL sbl_prebuilt/am263px-lp/sbl_ospi_multicore_elf.release.tiimage. I am wondering is this the correct SBL to use for my application? Are there any initialization steps in the CCS debugger .gel startup script that might be missing from either the bootloader or my application firmware?

Attached in the zip are the following files:

image.png

AM263P4_EtherCAT_Bringup.zip 

The AM263P4 Launchpad is in OSPI bootmode.

We have removed the XIP image but I still see the same behavior, It loads the application and everything looks pretty normal during app initialization but there isn’t any activity from the ESC when I scan on TwinCAT. I am using the UART serial to log some debug data I do see an error about Flash_norOspiPhyTune failure I think from the boot ROM could that be related? I have programmed the flash using both the UART boot mode with the uniflash python script and used JTAG with the uniflash GUI and I get the same issue both ways. 

Here is a boot console log, it looks normal.

image.png

However in this state the TwinCat cannot discover the ethercat subdevice.

What initialization could be missing?

 

Thanks!

--Gunter