Is it possible to generate the equivalent SPI sequence or script when the AD9361 is first initialized or setup with the Linux GUI.
It's not recommended and won't work reliably.
There are calibrations that that use read back results from other calibrations.
Thanks for the reply. Is there any other way to access the initialization sequence in SPI form?
What do you mean? You can always read back SPI registers using the driver API.
If you want a trace you can enable debug information in the driver (needs recompile).
This will give you all SPI reads and writes plus some function tracing information.
We might be able to help out more if we understood what you were trying to do.
We do not support SPI dumps, because - as Michael indicated - they are useless. You can not take a SPI dump from one part, and put it in a different part, and get the same results.
I have just realized that the SPI communication is handled by the APIs. Is it possible to view the API sequence of commands for initializing the AD9361.
For the no-os / bare metal examples - Dragos can point to an example.
If you are using the no-OS software, you will have to define the _DEBUG macro (no-OS/ad9361.c at master · analogdevicesinc/no-OS · GitHub) - all the information regarding the SPI transfers (the accessed register and the read/written data) will be printed on the serial terminal.
Retrieving data ...