While using my Makita 18V-compatible mini chainsaw, smoke started coming out of the body and it completely died.
On a Chinese site, I happened to find a 21V RS550 motor sold for chainsaw repairs that looked nearly identical on the outside. Even though I couldn't tell if all the specs were an exact match, I decided to order it anyway. (Note: RS550 motors vary in voltage, RPM, and gear tooth count, so make sure to pick one that matches your original.)
A few notes from the repair (see photos):
Motor comparison: Left is the failed original motor, right is the new 21V replacement. Visually they look almost identical, except that when I opened the housing, the motor cover was blocking the cooling vents, which may have contributed to overheating.
Disassembly: You need to remove a snap ring (circlip) to take out the motor unit.
Wiring polarity: Make sure to match the original polarity. On my chainsaw, I had to connect the black wire to the motor's red terminal, and the red wire to the black terminal.
Reassembly: Applied fresh grease to the meshing gears before putting everything back together.
Purchased RS550 Specification : DC 21V 28,000rpm 14-tooth gear
Applications : Bosch, DeWalt, Makita / drills, wrenches, logging saws, chainsaws