karthi-96

AD9361 device initialization error in no os driver

Discussion created by karthi-96 on May 4, 2018

How to set the value for "GPIO_RESET_PIN " in parameter.h of no OS driver. I have set the value as '0' as i thought it is the reset signal for the AD9361.We use zed board with FMCOMMS2 board. When we run in hardware, it gave the error as "un supported product ID" while executing the  "ad9361_init(&ad9361_phy, &default_init_param);" command in main.c.

I have attached below the error message snapshot. 

Also how we have to map the GPIO pins  given in the following code of no OS driver(xgpiops.h) with that of the device in the board used(like zed board, picozed board )

-------------------------------------------------------------------------------------- 

#define XGPIOPS_BANK0 0 /**< GPIO Bank 0 */
#define XGPIOPS_BANK1 1 /**< GPIO Bank 1 */
#define XGPIOPS_BANK2 2 /**< GPIO Bank 2 */
#define XGPIOPS_BANK3 3 /**< GPIO Bank 3 */

#define XGPIOPS_MAX_BANKS 4 /**< Max banks in a GPIO device */
#define XGPIOPS_BANK_MAX_PINS 32 /**< Max pins in a GPIO bank */

#define XGPIOPS_DEVICE_MAX_PIN_NUM 118 /*< Max pins in the GPIO device
* 0 - 31, Bank 0
* 32 - 53, Bank 1
* 54 - 85, Bank 2
* 86 - 117, Bank 3
*/

----------------------------------------------------------------------------------------------------------

In zed board-FMcomms2 board, Ad9361 reset pin is connected to bank 35(pin number A16).

Thank you

Attachments

Outcomes