Serial monitor not working on firmware builds from github

Hi all,

Recently I starting to look at the ardupilot code from github. I’m struggling with a few issues.

The latest code from master was failing to compile. Fortunately I could work around it.
After making a succesfull build I couldn’t get the serial monitor working. I enabled CLI by the following code:

#if (CONFIG_HAL_BOARD == HAL_BOARD_APM2 || CONFIG_HAL_BOARD == HAL_BOARD_APM1)
//# define CLI_ENABLED           DISABLED            // disable the CLI (command-line-interface) to save 21K of flash space
#endif

and I disabled some features

//#define LOGGING_ENABLED       DISABLED            // disable dataflash logging to save 11K of flash space
#define GPS_PROTOCOL          GPS_PROTOCOL_UBLOX  // hard code GPS to Ublox to save 8k of flash
#define GPS_PROTOCOL          GPS_PROTOCOL_MTK19  // hard cdoe GPS to Mediatek to save 10k of flash
#define MOUNT                 DISABLED            // disable the camera gimbal to save 8K of flash space
//#define AUTOTUNE_ENABLED      DISABLED            // disable the auto tune functionality to save 7k of flash
#define OPTFLOW               DISABLED            // disable optical flow sensor to save 5K of flash space
#define AC_FENCE              DISABLED            // disable fence to save 2k of flash
#define CAMERA                DISABLED            // disable camera trigger to save 1k of flash
//#define CONFIG_SONAR          DISABLED            // disable sonar to save 1k of flash

I couldn’t get the serial monitor working. I thought after that that maybe the branch of the code might be the problem so I checkout tag: https://github.com/diydrones/ardupilot/tree/ArduCopter-3.1.0-rc8.
No difference :frowning:

To make sure that it wasn’t a bug within the osx version of the Arduino IDE, I restored the original firmware within APM planner. After restoring the original the firmware, the serial monitor within the Arduino IDE was working again.

BTW I also tried to get terminal with APM planner working with the code from the master branch and tag 3.1.0-RC8 but then didn’t work either.

What am I doing wrong? How can I get the serial monitor working with the ardupilot code?

Already thanks in advance.

My configuration:

  • 3DR Quad APM 2.6 (with Electronics kit)
  • Arduino IDE Mac 1.0.3
  • OSX Mavericks (10.9.2)

I guess I solved the problem, the settings below seem to work with latest master code

// uncomment the lines below to save on flash space if compiling for the APM using Arduino IDE.  Top items save the most flash space
//#if (CONFIG_HAL_BOARD == HAL_BOARD_APM2 || CONFIG_HAL_BOARD == HAL_BOARD_APM1)
 #define CLI_ENABLED           ENABLED            // disable the CLI (command-line-interface) to save 21K of flash space
//#endif
//#define LOGGING_ENABLED       DISABLED            // disable dataflash logging to save 11K of flash space
#define GPS_PROTOCOL          GPS_PROTOCOL_UBLOX  // hard code GPS to Ublox to save 8k of flash
//#define GPS_PROTOCOL          GPS_PROTOCOL_MTK19  // hard cdoe GPS to Mediatek to save 10k of flash
#define MOUNT                 DISABLED            // disable the camera gimbal to save 8K of flash space
#define AUTOTUNE_ENABLED      DISABLED            // disable the auto tune functionality to save 7k of flash
#define OPTFLOW               DISABLED            // disable optical flow sensor to save 5K of flash space
#define AC_FENCE              DISABLED            // disable fence to save 2k of flash
#define CAMERA                DISABLED            // disable camera trigger to save 1k of flash
#define CONFIG_SONAR          DISABLED            // disable sonar to save 1k of flash