AMDS devices 2-4 are only available on REV E, so this should have a ifdef:
#if USER_CONFIG_ENABLE_MOTHERBOARD_AUTO_TX == 1
// Request motherboard to send its latest ADC sample data back to the AMDC
//
// NOTE: this is specifically before the while loop below so that the new
// data arrives before it is needed in the next control loop.
motherboard_request_new_data(MOTHERBOARD_1_BASE_ADDR);
#if USER_CONFIG_HARDWARE_TARGET == AMDC_REV_E
motherboard_request_new_data(MOTHERBOARD_2_BASE_ADDR);
motherboard_request_new_data(MOTHERBOARD_3_BASE_ADDR);
motherboard_request_new_data(MOTHERBOARD_4_BASE_ADDR);
#endif
#endif
Per @DivyaMendpara, she found that when building the
app_cpu1
project for REV D hardware with AMDS support and auto TX data enabled, the build fails.Here is the issue:
https://github.com/Severson-Group/AMDC-Firmware/blob/4dcb288f51b6879c003468ef5844b102ed3c6372/sdk/app_cpu1/common/sys/scheduler.c#L217-L226
AMDS devices 2-4 are only available on REV E, so this should have a ifdef: