to get to the cannon MAKE SURE YOU HAVE THE SHELL SUIT, go to the middle castle, go to the part where the pipe shoots you up through the outlined coins, get to the ledge.
then slide down the wall and go in the press up door. if you go a little up and further right past the star coin you go in a...