Issue with StandardFirmata and Arduino Mega 2560

Which version of Firmata are you using? You can change the number of pins known to be analog pins in some versions.