Has anyone used the AnalogDiscovery3 attached to a SoC (zynq mpsoc) dev board running a custom Linux?
Would Copying the .so files over to the board, then cross compile the application using the dwf.h/.so files work?
Thanks to anyone who has done this before and can share some results.
------
What I've seen thus far; there is a lack of information or steps to actually build a linux application using the dwf.
It appears that one needs the "Adept for Linux Runtime" as well here. Trying to download this emails you a link which is blocked by my org since it can't verify the security certs.
./bin/aarch64-linux-gnu-gcc -lm -lrt -lpthread -ldl -LC:\work\digilent\lib -ldwf -o ../ad3_testbench.elf ad3_helper.c.o ad3_testbench.c.o axi4Lite.c.o linuxinitialize.c.o ert_main.c.o -lm -lm
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdmgr.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdmgt.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdjtg.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdstm.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdpti.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libjtsc.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgDisable'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtConfigureFPGA'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrSetTransTimeout'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgEnable'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscInit'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgGetTdoBits'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrIsClientAuthenticationEnabled'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtSetParam'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrEnumDevicesEx'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgSetSpeed'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmDisable'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrFreeDvcEnum'
C:\work\digilent\lib/libdwf.so: undefined reference to `logf@GLIBC_2.27'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtPowerSwitch'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrStopEnum'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrSetFsadm'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscTerm'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmIO'
C:\work\digilent\lib/libdwf.so: undefined reference to `DptiDisable'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscProgramDvc'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgPutTdiBits'
C:\work\digilent\lib/libdwf.so: undefined reference to `DptiEnableEx'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtQueryDone'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrSetSysInfo'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrOpen'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgPutTmsTdiBits'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmEnable'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrGetLastError'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtParamSize'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscGetJtdvc'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrGetEnumCount'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrGetEdvc'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrGetSysInfo'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmTransfer'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmIO32'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrStartEnum'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscSetConfigFile'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscInitScanChain'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscGetScdvcCount'
C:\work\digilent\lib/libdwf.so: undefined reference to `DptiIO'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrClose'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtGetParam'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrSetNetworkConnTimeout'
collect2.exe: error: ld returned 1 exit status
gmake: *** [../ad3_testbench.elf] Error 1
So I need the Adept libs to link here as well as put them on the target board.
Question
skuznicki
Has anyone used the AnalogDiscovery3 attached to a SoC (zynq mpsoc) dev board running a custom Linux?
Would Copying the .so files over to the board, then cross compile the application using the dwf.h/.so files work?
Thanks to anyone who has done this before and can share some results.
------
What I've seen thus far; there is a lack of information or steps to actually build a linux application using the dwf.
It appears that one needs the "Adept for Linux Runtime" as well here. Trying to download this emails you a link which is blocked by my org since it can't verify the security certs.
./bin/aarch64-linux-gnu-gcc -lm -lrt -lpthread -ldl -LC:\work\digilent\lib -ldwf -o ../ad3_testbench.elf ad3_helper.c.o ad3_testbench.c.o axi4Lite.c.o linuxinitialize.c.o ert_main.c.o -lm -lm
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdmgr.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdmgt.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdjtg.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdstm.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libdpti.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
c:/progra~3/matlab/suppor~1/r2023a/3p778c~1.ins/linaro~3.ins/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: warning: libjtsc.so.2, needed by C:\work\digilent\lib/libdwf.so, not found (try using -rpath or -rpath-link)
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgDisable'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtConfigureFPGA'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrSetTransTimeout'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgEnable'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscInit'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgGetTdoBits'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrIsClientAuthenticationEnabled'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtSetParam'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrEnumDevicesEx'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgSetSpeed'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmDisable'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrFreeDvcEnum'
C:\work\digilent\lib/libdwf.so: undefined reference to `logf@GLIBC_2.27'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtPowerSwitch'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrStopEnum'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrSetFsadm'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscTerm'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmIO'
C:\work\digilent\lib/libdwf.so: undefined reference to `DptiDisable'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscProgramDvc'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgPutTdiBits'
C:\work\digilent\lib/libdwf.so: undefined reference to `DptiEnableEx'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtQueryDone'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrSetSysInfo'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrOpen'
C:\work\digilent\lib/libdwf.so: undefined reference to `DjtgPutTmsTdiBits'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmEnable'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrGetLastError'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtParamSize'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscGetJtdvc'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrGetEnumCount'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrGetEdvc'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrGetSysInfo'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmTransfer'
C:\work\digilent\lib/libdwf.so: undefined reference to `DstmIO32'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrStartEnum'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscSetConfigFile'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscInitScanChain'
C:\work\digilent\lib/libdwf.so: undefined reference to `JtscGetScdvcCount'
C:\work\digilent\lib/libdwf.so: undefined reference to `DptiIO'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrClose'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgtGetParam'
C:\work\digilent\lib/libdwf.so: undefined reference to `DmgrSetNetworkConnTimeout'
collect2.exe: error: ld returned 1 exit status
gmake: *** [../ad3_testbench.elf] Error 1
So I need the Adept libs to link here as well as put them on the target board.
Add to question
Link to comment
Share on other sites
15 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now