How to stop the state information output to the serial port 0?



  • I want to control UART device through serial 0 of the M5stack.
    But M5stack output string (status information?) to the serial 0 at the timing of power on and reset. This string cause error of the UART device. So I want to stop this output. The string is like following.


    ets Jun 8 2016 00:22:57

    rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0018,len:4
    load:0x3fff001c,len:1100
    load:0x40078000,len:9232
    load:0x40080400,len:6400
    entry 0x400806a8
    M5Stack initializing...OK


    Even if the program is just only initializing process, the string is output. I am very confusing that. How can I stop it?


    #include <M5Stack.h>
    //HardwareSerial Myserial(0);

    void setup() {
    // put your setup code here, to run once:
    M5.begin(true, false, true);
    serial.begin(115200);
    }

    void loop() {
    // put your main code here, to run repeatedly:
    delay (100);
    }