Building and configuring a stmbl v5

More
07 Jan 2025 23:48 #318361 by blazini36
Replied by blazini36 on topic Building and configuring a stmbl v5
Email isn't in your profile, didn't see it in your github bio either

Please Log in or Create an account to join the conversation.

More
08 Jan 2025 00:41 #318369 by jst
Replied by jst on topic Building and configuring a stmbl v5
There you go: github.com/jstjst
But after looking at the prices for the DMM servo drives, I think they are in the same price range (if not cheaper) then a stmbl

Please Log in or Create an account to join the conversation.

More
08 Jan 2025 01:12 #318370 by blazini36
Replied by blazini36 on topic Building and configuring a stmbl v5
Sure, I have many of them.......but that's not the point.

There are very few "open-source" things that actually wind up being cheaper than the cheaper thing it's replacing.....but I can't run a DMM off of Smart Serial. The 2 options on a standard drive are (not really) RS232, step+direction, and analog.....but the analog input has issues on these.  Modbus/rs485 is a custom drive.

Please Log in or Create an account to join the conversation.

More
08 Jan 2025 13:53 - 08 Jan 2025 13:54 #318405 by jst
Replied by jst on topic Building and configuring a stmbl v5
Building and flashing the firmware

You don't have to solder in the H-Bridge or any other connectors (expect the Power connectors P3 and P6) to flash the firmware.

Install prerequisites (I used a minimal debain install, so you might have some of them already installed):
sudo apt install git python3 python3-serial make gcc-arm-none-eabi usbutils dfu-util

Clone the github repository (I used the repo from freak, since it has the latest updates, even though they link to rene's repo in their documentation):
git clone https://github.com/freakontrol/stmbl.git
cd stmbl/

Build the firmware:
make clean
make
make binall

Flash the HV controller: Connect a USB cable to the USB port on the HV side (this is the only time you should connect a USB cable to the HV side). Short the Boot jumper near the STM32F3 with a small screwdriver and provide 24V DC to P6. The controller should show up in lsusb:
Bus 001 Device 003: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
If the controller does not show up, make sure you have contact with the boot jumper. Also try to flip the USB cable.
Flash the firmware with
sudo make f3_all_btburn

Flash the LV controller: Repeat the steps above on the LV side (connect USB cable, short boot pins on LV side near the STM32F4, provide 24V DC to P3, check for the controller using lsusb)
Flash the firmware with
sudo make all_btburn

The LV controller should reconnect and show up as
Bus 001 Device 005: ID 0483:5740 STMicroelectronics Virtual COM Port
Last edit: 08 Jan 2025 13:54 by jst.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.063 seconds
Powered by Kunena Forum