I have designed a custom board for a STM8S105C6T6 microcontroller intended for commercial use. I have coded the program and tested it using the stm8s discovery board.
Now I find myself not knowing what would be the best to mass program the microcontroller. I had thought about adding a port to the board that is connected to the swim interface so I can program them by hand, but that would be very tedious when scaling production. On the other hand, I do not want to order a pre-programmed chip because I would like to make modifications to the code once the PCB arrives.
Please, I would appreciate any input to help me decide what method is best in this scenario.