STM32 programming

Please could someone help!

I have a 3d printer which I cannot update using the SD card.
Can I use Arduino to program the board direct using a mega2560 ?
Or do I need something else?

The mobo is a btt skr pro v1.2

Can you use the mega2560 as a programmer?

Any advice would be greatly appreciated

Have you already checked this out? https://www.instructables.com/How-to-Program-a-3D-Printer-With-Marlin-and-Arduin/

If i connect the Mega 2560 to the pc and upload the sketch(Marlin) to the Mega 2560 board with the port set to the Mega 2560 and the Board set to the Mega also.
After doing this ive noticed it only offers ST-Link as a Programmer?
Do i click upload using programmer? (with board set to: generic stm32f4 series)
Would this work on the STM32f4 chip on board the SKR Pro 1.2?
connections as:-
Mega / SKR Pro
d10 to Reset
5v to 5v
gnd to gnd
d50 to MISO
d51 to MOSI
d52 to SCK

also, do i need to place a 10microfarad capacitor across reset and gnd?

Thank you for any advice you can kindly offer

That will program the Marlin software to the Mega, not to the STM.

You will need to program the Mega with programmer code; that is usually arduino-as-isp but I do not think that that will work if the target is a an STM. And next use "upload using programmer".

Further you will have to be careful when mixing 5V (Mega) and 3.3V (I think the STM); the 5V output signals of the Mega can damage the STM (you'll have to check the STM data sheet for the maximum VIH)

Thank you for replying

If you use the 3.3v line on the Arduino mega board
When it shows st link as the programmer does this mean Arduino ide has a built in st link programmer?

Apologies for the silly questions. I've never used Arduino ide a lot

I used visual studio to compose the firmware initially to check that I had Marlin property configured

That does not matter; the Mega is a 5V device so its output signals (SCK, MOSI) are 5V signals.

I can't help any further as I'm not familiar with STM based boards.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.