The basic_example.c in no-OS project
github.com/.../src
returns the following message through serial terminal.
AD7606X Reference Design - Parallel interface.
Initializing device AD7606B, num-channels 8 SDI lines 4
Notice: Parallel mode enabled, forcing SW mode
ad7606: device id mismatch, expected 0x01, got 0x00
ad7606 initialization failed
ERR: ../ad7606x-fmc/src/basic_example.c:78:main(): Error initializing.
In my analysis, the if block in ad7606.c generates an error.
if (no_os_field_get(AD7606_ID_DEVICE_ID_MSK, reg) != id) {
printf("ad7606: device id mismatch, expected 0x%.2x, got 0x%.2x\n",
id,
(int)no_os_field_get(AD7606_ID_DEVICE_ID_MSK, reg));
ret = -ENODEV;
goto error;
}
I am a bigginer of programming and FPGA.
Please teach me how to fix it.
[Environment]
github.com/.../hdl.git
github.com/.../no-OS
Vivado/Vitis 2023.2 on Ubuntu 22.04
EVAL-AD7606B-FMCZ on ZedBoard