This firmware is precompiled with the correct settings (using 2nd uart).
Erasing and flashing using esptool:
esptool.py --chip esp8266 --before default_reset --after hard_reset --baud 230400 --port <port> write_flash --erase-all --flash_mode dio -fs 4MB -ff 40m 0x00000 boot_v1.7.bin 0x3FE000 blank.bin 0x3FC000 esp_init_data_default.bin 0x01000 user1.bin