Severson-Group / AMDC-Firmware

Embedded system code (C and Verilog) which runs the AMDC Hardware
http://docs.amdc.dev/firmware
BSD 3-Clause "New" or "Revised" License
31 stars 5 forks source link

Change code in main.c so that it works for AMDC REV D #254

Closed Anvar-Khamitov closed 2 years ago

Anvar-Khamitov commented 2 years ago

The AMDC code had an error "ERROR: Vivado hardware target is REV E, but usr/user_config.h target is REV D!". After talking to Nathan, the following line #if (USER_CONFIG_HARDWARE_TARGET == AMDC_REV_D) && (XPAR_AMDC_EDDY_CURRENT_SENSOR_NUM_INSTANCES != 2) has to be changed to #if (USER_CONFIG_HARDWARE_TARGET == AMDC_REV_D) && (XPAR_AMDC_EDDY_CURRENT_SENSOR_NUM_INSTANCES != 1) in the main.c file to solve this issue.

npetersen2 commented 2 years ago

Thanks @Anvar-Khamitov for finding this.

I'll fix this right away and merge and release so it doesn't affect anyone else.