In the second chapter of Ancient Gardens (world 1), there is an unusable cannon that Beep-o says is broken “for now”.

[![Broken cannon](https://i.stack.imgur.com/KmEWH.jpg)](https://i.stack.imgur.com/KmEWH.jpg)

I tried coming back later, but even after beating the final boss the cannon is still broken.

How do I repair the cannon in Ancient Gardens?