Heat the oven to 200C (375F) with the cast iron pan in it.
In a bowl, combine chickpea flour, water, salt, rosemary and olive oil. You can use a food processor to speed up the process and make sure the batter doesn't have any clumps. Use the Pulse function a couple of times, do not over-process the batter.
Cover the bowl with a towel or a lid and let it sit for at least 30 minutes.
Using oven gloves or a towel, carefully remove the hot pan from the oven, grease it well with olive oil, pour the chickpea flour mix into the pan and return it to the oven.
Bake the socca in the oven for around 15-20 minutes, until it becomes well browned at the edges.
Serve socca with fresh greens, vegetables or your favorite sauce.