Anytime I swap firmware I use esptool to do a complete erase of the chip. The command is easy > esptool.py erase_flash
Something that might help with the new mqtt binding.