Post Go back to editing
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Missing files in the ADIN6310 driver software

Thread Summary

The user encountered issues building the ses-tsn-configuration-app for the ADIN6310 device over SPI in a Yocto environment, specifically due to missing header files (REG_registrar.h and SHL_command_line_interface.h). The final answer indicates that the ses-example-app builds successfully and the issue with ses-tsn-configuration-app is a type mismatch in the sr_get_items() function, which can be resolved by changing the type of valueCnt from int to size_t. The user is targeting an i.MX8 processor and will revisit the issue with the new hardware.
AI Generated Content
Category: Software
Software Version: ADIN6310SWDR-Rel5.1.0

Hi,

I am trying to control the ADIN6310 device over SPI from a processor running embedded linux. I was following UG2287 which led me to download ADIN6310SWDR-Rel5.1.0 and try to build the ses-example-app and ses-tsn-configuration-app into my yocto environment with the SPIDEV switch set. 

I initially attempted to follow the README but had to adjust bitbake recipes a little bit to make sure CMAKE was seeing all the source files… Unfortunately, I am still struggling to get it to build as it seem there are some header files (REG_registrar.h & SHL_command_line_interface.h) missing whichsome of the other source files refer to. 

Has anyone had any success with this driver software or know where these missing header files come from?

Thanks

Steve

Edit Notes


[locked by: CatherineR at 8:39 AM (GMT -4) on 7 Aug 2026]
Parents
  • Hi Steve,

    Apologies for the delayed response.

    Thank you for sharing the logs and the additional details. We really appreciate the information, and it’s good to know that the ses-example-app build is ok. We are currently reviewing the provided logs and will get back to you once the analysis is complete or if we identify any findings in the meantime.

    The driver library files (.c and .h) are part of the deliverables and are located in the adinx310_tsn_driver_library...\src folder. It also appears that you have copied all the driver contents correctly, as shown in the attached picture.

    Regards,
    Himanshu

  • Hi Steve,

    I wanted to check whether you are still facing the issue while building the Yocto image. I reviewed the attached log file and noticed the following error:

    • sysrepo-glue-srv/src/SRG_frer.c: error: passing argument 6 of 'sr_get_items' from incompatible pointer type
    • Specifically, sr_get_items(..., &valueCnt) is using an int *, whereas the API expects a size_t *, as indicated in sysrepo.h (also visible in the log).

    Therefore, the root cause appears to be a type mismatch for valueCnt in the sr_get_items() call. Could you please update the type accordingly and try building again?

    We have not encountered this issue on our side, and I am not sure if this behavior is specific to the selected host platform platform.


    Regards, 
    Himanshu

  • Hi Himanshu,

    This issue still exists but I am a bit tied up on other work at the moment, so I shall come back to this later.

    Regards

    Steve

  • HI Steve,

    Did you manage to return to work on this? Do you still have issue configuring?

    Let us know if we can help further. 

    Best regards,

    Catherine

Reply Children
  • Hi Catherine,

    New target hardware has just arrived so I shall be trying this out on this target platform in the coming weeks. I think because I had the sesexampleapp working before then this will be sufficient for our use-case and I do not need to continue with the build attempt of the sestsnconfigurationapp. So, I think we can probably closed this issue and I can always refer to it in future if any related issues are preventing me progressing.

    Thanks

    Steve

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.