CNC firmware for robot arms + more (timer & upload questions)

What are you developing?
Post Reply
i-make-robots
Posts: 2
Joined: Sat May 01, 2021 4:00 pm
Contact:

CNC firmware for robot arms + more (timer & upload questions)

Post by i-make-robots »

Hello!

I've been working for a long time on my own variant of Marlin called Makelangelo Firmware.

https://github.com/marginallyclever/mak ... or-SKR-PRO

TLDR: it's CNC firmware for non-printers. it still does movement but doesn't include all the thermal controls.

Recently I got an SKR-PRO 1.2 (stm32f407zgt6) and I'm trying to make it go. I have a minimal case: https://pastebin.com/V4H0T6HS
The LED does not blink with this method. I have been able to bang the LED pin in loop() and get a response, as well as move motors, read sensors, etc.
I have yet to find the API documentation that explains what I've missed. How do I correctly activate the HardwareTimer in VSCode + platformio?

Also I'm still uploading by moving an SD card back and forth which feels slow and dirty. (if we're going backwards why not just use punch cards...)
How do I update the bootloader so that I can upload via USB from now on?

I have an STLINK-v3Mini but there are no matching pins on this setup. The v3 will be saved for my next project, an STM32F103C8 based servo actuator:
https://imgur.com/gallery/P5qVWuR

Thank you for all your hard work and for helping me get this moving!
stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: CNC firmware for robot arms + more (timer & upload questions)

Post by stevestrong »

viewtopic.php?f=2&t=301
Which core? Which OS?

Here, in general, only Arduino IDE is supported, as the forum title indicates.
For other IDEs you are on your own. Eventually you may find some answers in the IDE section of the forum.
i-make-robots
Posts: 2
Joined: Sat May 01, 2021 4:00 pm
Contact:

Re: CNC firmware for robot arms + more (timer & upload questions)

Post by i-make-robots »

Which core? I said stm32f407zg.
Which os? Well... windows. Visual studio code with platformio.
I should explicitly state that’s the arduino framework? I mean.. that’s what we’re here to talk about.

Your response is confusing me.
mlundin
Posts: 94
Joined: Wed Nov 04, 2020 1:20 pm
Answers: 6
Location: Sweden

Re: CNC firmware for robot arms + more (timer & upload questions)

Post by mlundin »

Looking at the, not very complete, documentation pictures a https://www.biqu.equipment/products/big ... 7358865506, there seems to be a swd debug port/pinheader just behind the USB connector. Should be useable to upload with the STLink. I also think most, if not all, STMF4xxx have USB bootloader functionality in ROM, activated with the right BOOT pin and reset magic.

Since the timer libraries are different in different core versions, yes a more precise description of your setup and your issues is needed if you hope for meaningful help, or you will be simply reffered to the online documentation.
ag123
Posts: 1653
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: CNC firmware for robot arms + more (timer & upload questions)

Post by ag123 »

i-make-robots wrote: Sat May 01, 2021 11:08 pm Which core? I said stm32f407zg.
Which os? Well... windows. Visual studio code with platformio.
I should explicitly state that’s the arduino framework? I mean.. that’s what we’re here to talk about.

Your response is confusing me.
well, normally that's called the mcu, stm32f407 is a fast mcu and the chip you choose has lots of ram and hardware resources compared to say stm32f103c8 20k sram 64k flash commonly used for the stm32f103 'pill boards', sram is often the limiter of programming prowess. and stm32f4 has a builtin fpu, 32 bits floating points math is (very) fast.

there are (at least) 2 flavors of stm32duino), each of those flavors is a arduino core (i.e. arduino implementation for stm32). those are covered in the 'read this first'
viewtopic.php?f=2&t=3
viewtopic.php?f=2&t=301

mentioning as much of those information, core ('official' stm or libmaple), board (e.g. if you are using a 'common' off the shelf board such as the nucleos or some board from aliexpress etc), mcu (you have mentioned that), you selections for the configuration, e.g. if usb serial is selected for the official core etc and os (windows or linux no less important) and ide would help those who are willing to comment to provide a more meaningful response.

stm32 these days are used for even commercial 3d printer boards e.g.
https://www.aliexpress.com/item/4001039599237.html

in terms of the 2 cores:
the 'official' stm core is here
https://github.com/stm32duino/Arduino_Core_STM32
the wiki is here
https://github.com/stm32duino/wiki/wiki
the 'libmaple' core has its 'ancient' origins here
https://www.leaflabs.com/maple
http://docs.leaflabs.com/static.leaflab ... dex-2.html
today what is there in 'roger's core' is a 'community improved' version of libmaple core
https://github.com/rogerclarkmelbourne/Arduino_STM32
the F4 branch (or f4 core) in libmaple is created by stevestrong and is pretty much 'community maintained', there is no 'company' behind it.
libmaple 'supports' a much smaller subset of the stm32 mcus and hence boards compare to 'official' stm core
Post Reply

Return to “Projects”