STM32/STM8: How do I come from evaluation board to my design?
I can make my own PCB with the same controller and the same pin assignment. Can I use exactly the same .BIN file to load it to my board through SWD (SWIM) interface?


Yes, assuming you use the same power supply scheme and oscillators (and other peripherals), how would anything in your microcontroller know the difference?


  What if I need to take slightly different controller? Or use another pins?


You'll have to adjust your code to initialize the new controller instead of the old one (often, that just boils down to either just changing a config header file, or re-generating the project from your IDE), and recompile.