For my hobby project, I'm intending to add a STM32F103C8T6 (and later STM407VET6 or ZET6) into an enclosure.
For worst case case, let's take the 407, the datasheet can be found here.
On page 80, there are stated some power dissipations (between 435 and 543 mW). Also some temperatures are shown on the page.
What I want to use in them (maybe spread over two devices, but let's assume I put everything in one STM32):
Would I get in trouble putting these STM32 in an enclosure ... I assume I need to add some holes possibly? What other measurements should I take to prevent them frying in their enclosure?
(note: I know I can probably calculate the exact power consumption, but I want to have a general idea about what I can expect, since I never have built a real project, and the only time I put an Arduino in an enclosure it got fried, but it was connected with a 12V adapter).