Heat the olive oil in a large soup pot. Add the garlic, onion, and carrot; cook 2-3 minutes, or until soft. Add the Canadian bacon; cook 5 minutes. Stir in the tomatoes, beans, rosemary, thyme, and red pepper flakes. Bring to a boil, pressing on the tomatoes with a heavy spoon to help them break down.