If carbon is burned its in the atmosphere presumably. Thats easily accessible as it will eventually get absorbed as terrestrial biomass. Charcoal economies are technologically simpler than coal economies.
Producing solar panels requires an advanced technical civilization being in place. You cannot jump from middle ages tech to producing solar panels with skipping dependence on fossil fuels in the intermediate steps.