Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to program the STM32F042K6T6 micrcontroller? (LQFP32)

Status
Not open for further replies.
Z

zenerbjt

Guest
Dear Engineers,
We need to program the STM32F042K6T6 microcontroller. (LQFP32 footprint)

STM32F042K6T6 datasheet:
https://www.st.com/resource/en/datasheet/stm32f042k6.pdf

Do you know to which pins should the programmer be connected?
Also, do you know if there are standard programming connectors/applicators for it? (eg sprung pin arrays). Is there, say, a "Pickit2" type thing for the STM32F042K6T6?
We have been asked to put SMD pads of 1.27mm pitch on the PCB in two rows of three….but wonder which pad to connect to which pin on the micro?
 
Last edited by a moderator:

Most people are using SW debug port with ST-Link tool for programming and debugging during development. Final production image can be also loaded via available boot loader channels, see datasheet.
 
Last edited:
Thankyou
The ST-LINK user manual shows a number of connectors for it on page 6. However, it does not give that part number for the 5way connector…just says its made by ERNI.com. Do you know its part number?

Also, we have no room on our target board for a header or programming connector….so we only have room for bare SMD or PTH programming pads. Does the ST-LINK come with any pogo pin connectors for such a set up?



ST-LINK programmer

https://www.st.com/resource/en/user...mer-for-stm8-and-stm32-stmicroelectronics.pdf

...................................................................................
The below programming lead looks like what they must have been using on the PCB that i am updating...i can see 6 pads on the pcb and this connector looks like it contacts to such a SMD pad array.....but i cant find the part number or datasheet for the below...do you know it?

Programming lead
https://www.tag-connect.com/product/tc2030-swim-nl

....i am guessing that the long grey pins are sprung locators which get pressed in...and the gold pins are presumably pogo pin programming pin connectors?
--- Updated ---

The missing info needed is what pin on the ST-LINK programmer connects to what pin on the STM32F042K6T6 microcontroller?
Also, what is the part number of the connector on the ST-LINK programmer?
 
Last edited by a moderator:

Tag-Connect is possible solution if you want to save a programming connector on your board. But the linked SWIM type is for STM8, you would need to make your own adapter that connects the SWD lines, GND, VDD and NRST of STM32 debug connector.

Or place a small pin header 1.27 or 2mm grid, with 5 or 6 pins.
 
Thanks, unfortunately we cant do that as it could only go on the bottom side, and that will be flush up against a flat surface.
"Tag-connect" sounds interesting...but all the Tag connectors have grey locator pins which go right through the board...we can't have this because there is a micro on the opposite side of the board to where the programming pads will be.
--- Updated ---

Please, do you think that the attached is the pinout for programming the STM32F042K6T6 micro from the ST LINK/V2 programmer?
 

Attachments

  • ST LINK V2 programmer.jpg
    ST LINK V2 programmer.jpg
    47 KB · Views: 173
Last edited by a moderator:

Hi,

Please, do you think that the attached is the pinout for programming the STM32F042K6T6 micro from the ST LINK/V2 programmer?

no, this pins are used for the STM8, a 8 bit microcontroller.

BR
 
Hi,

no, pin 1 is in the lower left of your attached image. See Fig. 10 in the User manual (UM1075).

BR
--- Updated ---

... lock at the notch in the middle.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top