Add some olive oil to a pot and cook the onions and carrots until the onions are soft and tender. Add the potatoes, corn, ham, spices, and chicken stock and simmer on the stove on medium low heat until the potatoes are tender. 30 minutes.