Generating ideas and doing background research are best done together.
Background research lays a foundation for understanding the broader context, controversies, prominent ideas, and sub-topics of a particular area. It provides a basis from which ideas can be generated and questions asked.
Background research can help guide further reading and build your understanding of specific issues. It can ultimately make developing a workable topic much easier.