Hello,
I am trying to configure the ADIN3310 Ethernet switch using the SPI interface. I built the **ses-example-app** through cross-compilation on my Ubuntu host system, targeting a custom board based on the Kria K26 SoM running PetaLinux.
After successfully building the application, I transferred the executable to the target board and attempted to run it with the following command:
sudo LD_LIBRARY_PATH=/home/petalinux/adin3310/deploy_libs ./ses-example-app -f example-eval-6310.xml -g /dev/gpiochip0:5 -p /dev/spidev3.0 -m sysrepo-glue-srv/modules/ -s 1 -i production -l
The application starts but fails during initialization with the following output:
Interface Information:
-- /dev/spidev3.0, /dev/spidev1.0
Board settings file is located at example-eval-6310.xml
Yang modules folder sysrepo-glue-srv/modules/
libyang[0]: Value "00" was not found in the dictionary.
libyang[1]: String "00" not freed from the dictionary, refcount 1
Device MAC: 00:E0:22:12:34:56
Init with device on: /dev/spidev3.0 ready_pin:/dev/gpiochip0:5 speed:16000000
SES AddDevice error -1
The failure occurs during the device initialization step (SES AddDevice error -1). SPI pin strapping is configured correctly, but no pulses are observed on Timer0. A dummy MAC address is used in the XML file. I am not sure whether this is related to SPI communication, GPIO configuration, device tree settings, or the libyang/sysrepo setup.
Could you please help identify what might be causing this issue and what I should check or modify to resolve it?
Thank you.