I had no problems compiling previous versions, like ArduCopter 2.9.1, but with this version I get the message “CONFIG_HAL_BOARD must be defined to build ArduCopter”. I noticed in the APM_Config.h file it says:
“If you used to define your CONFIG_APM_HARDWARE setting here, it is no longer valid! You should switch to using a HAL_BOARD flag in your local config.mk.”
But I can’t find any config.mk file. Do I have to create this file myself?
I believe that you have to use a special version of the Arduino IDE to compile the Ardupilot code: ardupilot.com/downloads/?did=45 that works with the Hardware Abstraction Layer (HAL).
Don’t forget to select the correct board from the Ardupilot tab in the IDE header and then restart the IDE for the change to take affect.
TCIII ArduRover2 Developer
Did you select the correct board (APM1.x. APM2.x, PX4) from the Ardupilot tab in the IDE header and then restart the IDE for the change to take affect before trying to compile?