2017-03-04 07:59 AM
Hi,
I've developp a small product based on STM32L051, and we have to start production, 100 product for the moment.
What is the best way to program STM32 after PCB mounting :
- using STlink tool, connect each board and download hex file
- using 5 or 10 Stlink in paralell?
What about about powering for programming? is it possible to use Power Pin from STlink tool because the battery isn't on the board in the factory?
Best regards
#stlink #production #flash-programming #stm32l02017-03-04 08:20 AM
ST Link monitors the target MCU supply instead of providing one.
For programming devices, ST Link or Bootloader are the simple one by one programming.
There should be professional programmers or maybe gang programmers to get more confortable.
A quick search bumps for example to this
http://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320165&productTab=1
Alternate scheme would probably be IAP (in application programming).
2017-03-04 10:21 AM
The serial based System Loader scales very cheaply/effectively. If you have a header that connects the USART, power and boot pins, all the better. Usual best to make these choices when first designing the board/schematic.
How you power it is going to depending on the circuit/connectivity. The external ST-LINK expects it's drivers to be powered by the Target
2017-03-06 01:01 AM
To complement Clive's comment, for high volume production, similarly to Adafruit board testing/programming, using a SWD contacts for pogo (probe pins with springs) such as
would avoid the cost of a connector and enable high throughput.2017-12-20 11:10 PM
What connections do you suggest for just programming using UART?
2017-12-21 05:51 AM
Check the app note, but USART1 on PA9/PA10 is typically at least one of the ports used by the System Loader.