Did you select the DUE board in Menu>Tools>Type of board>Arduino DUE(Programming Port) or Arduino DUE(Native USB Port) ?