Error while uploading: missing 'recipe.cpp.o.pattern' config

Right port and board selected? You haven’t answered if you modified the boards.txt file.