cancel
Showing results for 
Search instead for 
Did you mean: 

Programming STM32L0 in production

stephane239955
Associate II
Posted on March 04, 2017 at 16:59

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 #stm32l0
5 REPLIES 5
S.Ma
Principal
Posted on March 04, 2017 at 17:20

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). 

Posted on March 04, 2017 at 19:21

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal
Posted on March 06, 2017 at 10:01

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

http://www.tag-connect.com/

would avoid the cost of a connector and enable high throughput.
Posted on December 21, 2017 at 07:10

What connections do you suggest for just programming using UART?

Posted on December 21, 2017 at 13:51

Check the app note, but USART1 on PA9/PA10 is typically at least one of the ports used by the System Loader. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..