AnsweredAssumed Answered

Configuration ad9371 with RadioVerse

Question asked by DmitriiS on Jan 25, 2018
Latest reply on Feb 13, 2018 by DmitriiS

Hello!

We are using RadioVerse for generate configuration C and pyton scripts.
We are using instruction from https://wiki.analog.com/resources/eval/user-guides/mykonos/no-os-setup
1) Download AD9371/AD9375 No-OS Software from https://github.com/analogdevicesinc/no-OS/tree/2016_R2/ad9371/sw
1.1) Extract archive to sw folder
2) Download API Source Code mykonos_api_source_1.5.2.3566.zip from from http://www.analog.com/en/design-center/landing-pages/001/transceiver-evaluation-software.html
2.2) Extract archive and copy the ad9528 and mykonos folders to sw folder
3) generate the profile and copy 1_ad9528init.c , 1.c , 1.h files to sw/init folder

So see below our tree.
rouben@arm039:~/ad9371/ad9371_2016_R2/sw$ tree
.
├── common.c
├── common.h
├── headless.c
├── mykonos_m3.h
├── Makefile
├── ad9528
│ ├── ad9528.c
│ ├── ad9528.h
│ └── t_ad9528.h
├── init
│ ├── 1_ad9528init.c
│ ├── 1.c
│ └── 1.h
├── mykonos
│ ├── mykonos.c
│ ├── mykonos_debug
│ │ ├── mykonos_dbgjesd.c
│ │ ├── mykonos_dbgjesd.h
│ │ └── t_mykonos_dbgjesd.h
│ ├── mykonos_gpio.c
│ ├── mykonos_gpio.h
│ ├── mykonos.h
│ ├── mykonos_macros.h
│ ├── mykonosMmap.c
│ ├── mykonos_user.c
│ ├── mykonos_user.h
│ ├── mykonos_version.h
│ ├── t_mykonos_gpio.h
│ └── t_mykonos.h
└── platform_altera
├── adc_core.h
├── clkgen_core.c
├── clkgen_core.h
├── dac_core.h
├── jesd_core.h
├── parameters.h
├── platform_drivers.c
└── platform_drivers.h
Note 1 : We are using only platform_altera
Note 2 : jesd_core.c, adc_core.c, dac_core.c files were excluded from building process.
because we use custom jesd, adc-analiser and sinthesizer

 


I have two questions.


Question 1:
Please, see below the log of compiling the no-OS-2016_R2 branch for ad9371

-------------------------------------------------------------------------
arm-linux-gnueabihf-gcc -Wall -Wextra -I./ -I./platform_altera -I./ad9528 -I./mykonos -I./init -Os -ffunction-sections -fdata-sections ./headless.c ./common.c ./platform_altera/clkgen_core.c ./platform_altera/platform_drivers.c ./ad9528/ad9528.c ./mykonos/mykonos_gpio.c ./mykonos/mykonos_user.c ./mykonos/mykonos.c ./mykonos/mykonosMmap.c ./init/1.c ./init/1_ad9528init.c -Wl,--gc-sections -L. -o ad9371_altera.elf
./init/1.c:506:1: warning: missing initializer for field ‘spiClkFreq_Hz’ of ‘spiSettings_t’ [-Wmissing-field-initializers]
};
^
In file included from ./mykonos/t_mykonos.h:22:0,
from ./init/1.c:28:
./common.h:75:11: note: ‘spiClkFreq_Hz’ declared here
uint32_t spiClkFreq_Hz; ///< SPI Clk frequency in Hz (default 25000000), platform will use next lowest frequency that it's baud rate generator can create */
^
./init/1_ad9528init.c:41:1: warning: missing initializer for field ‘bypassPll1’ of ‘ad9528pll1Settings_t’ [-Wmissing-field-initializers]
};
^
In file included from ./init/1_ad9528init.c:13:0:
./ad9528/t_ad9528.h:112:13: note: ‘bypassPll1’ declared here
uint8_t bypassPll1;
^
-------------------------------------------------------------------------
In the generated files 1_ad9528init.c 1.c 1.h there are 2 missed data.
In the ad9528pll1Settings_t clockPll1Settings structure the value of "bypassPll1" filed is missed.
In the static spiSettings_t mykSpiSettings structure the value of "spiClkFreq_Hz" field is missed.
What data shall be used for these fields ?

 

Question 2:
I see that many main ad9371 parameters (rxProfiles, txProfiles, rf frequencies, etc...) in pyton script from RadioVerse.
How can I use pyton script with C driver to set this parameters?

Outcomes