cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link to update

Pulsapharer
Associate II

I have a 3d printer with a Btt skr pro v1.2 motherboard. The Sd card slot is non functional so looking to update the firmware directly.

can I use a st-link v2 to upload the firmware from the pc to the motherboard?

 

the motherboard has a stm32 controller chip, but I don’t believe it has a bootloader!

8 REPLIES 8
AScha.3
Chief II

It has a booloader - but can you get it working ? Need to set boot0 hi ... do you have curcuit diagram?

+ Which cpu is it ?

If you feel a post has answered your question, please click "Accept as Solution".
Pulsapharer
Associate II

It states it has a 

ARM 32-bit Cortex-M4 CPU

Ok, so its : F407 , boot0 you can set at J1 , 1-2 .

And to connect : maybe try USB port, to connect with STM32CubeProgrammer (download, if you dont have it.), 

in DFU / USB mode.

+

But how to use this board, if sd-card not working ? I thought, gcode is loaded by sd-card ?

If you feel a post has answered your question, please click "Accept as Solution".
Pulsapharer
Associate II

So, just to clarify jumper 1 short across 1 and 2. When I plug in the st link into the pc do I connect the cables as per diagram on the outer case? Rst to rst, swdio to swdio, etc? Also, I send the geode files via Ethernet using an Arduino uno board with Octaprint

No - if you have a (working) st-link, you can connect to J44 , swd port.

no need to set boot jumper !

You only need connect : swd, swc, gnd .

set CubeProgrammer then to : st-link, connect normal,  software reset.

AScha3_0-1719603145161.png

You have to see : st-link serial....then try : connect.

get you connection ? Then can upload/flash new software.

If you feel a post has answered your question, please click "Accept as Solution".
Pulsapharer
Associate II

Do I need to have the skr motherboard powered ? 

No power, no fun. (But just the cpu, not the motors etc.)

Maybe (!) , just giving 3v3 from st-link is enough - try it. (to vcc 3.3v ) (dont connect 5V here ! Kill cpu ! )

AScha3_0-1719604542743.png

The pinout here...i cannot understand, something wrong: pin1: seems vcc 3v3, pin2 : swd , 3: gnd, 4 swc, 5 trst.

But left writing is totally different... so whats real ? Best: check -un-powered- with a DMM, where is gnd and 3v3.

To see: what writing is real.

If you feel a post has answered your question, please click "Accept as Solution".