How to program Due serial ports

Prior compiling your sketch, select the correct board in Menu>Tools>Boards (Arduino Due) !