Skip to the content
PCBKitNew board
4 layers20.3 × 61 mmStm32devboard, the printed circuit board in 3D

Minimal Test Stand Supervisory

Size
20.3 × 61 mm
Copper layers
4
Thickness
1.6 mm
Parts
44
Nets
67
Pads
229
Tracks, vias
647, 92
Pours
11
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
25 Feb 2024
Updated
4 Sep 2026

Overview

Stm32devboard is an open-source printed circuit board by psas, from the psas/mints-scada-hardware repository on GitHub. It is a 4-layer board of 20.3 × 61 mm with 44 parts on 67 nets, routed with 647 tracks and 92 vias.

It is built around the STM32F042C6T6, TCAN332D and AP63203WU, with the IP4234CZ6,125(ES), RMCF0603ZT0R00 and RMCF0603FT5K10 among its other parts. Its parts include 16 capacitors, 12 resistors, 4 ICs, 4 connectors and 3 diodes. It belongs with the STM32 boards of this library.

Main components

12

README

README.md

mints-scada-hardware

Minimal Test Stand Supervisory Control and Data Acquisition system hardware and firmware. See mints-scada-software for the computer software to control the whole system.

Assembly

stm32devboards

  • Populate all SMD components on the board
    • Only populate the 60.4 ohm CAN termination resistors on the nodes on the ends of the chain.
    • Populate the USB port and solder its mounting lugs
    • Do not populate the headers on the sides as they will make it more difficult to work on the boards if problems are discovered
  • Complete the board testing
  • Populate THT components

interface-module

  • Select the desired configuration of the board. This can be one of
    • 8x Push and/or Pull outputs
    • 4x I2C
    • 4x ADC
    • See notes in KiCad for configuration information
  • Assemble only the required components for that version of the board. Leave the rest unpopulated

Firmware flashing

Firmware files are located in the firmware/bin directory.

Command line (recommended)

Command line firmware flashing instructions are provided for Ubuntu 24.04. Other debian-based Linux distros should follow a similar procedure. Flashing from Mac or Windows should be possible, but is not covered here.

Setup
  1. Install dfu-util with sudo apt install dfu-util
  2. Set up udev rules
    1. Put the following into /etc/udev/rules.d/60-stm32
    text
    # STM32
    ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess"
    1. Either reboot or run sudo udevadm control --reload-rules && sudo udevadm trigger to reload the udev rules
Flashing:
  1. Remove the devboard from the module if it was installed.
  2. Put the device in bootloader mode
    • If the device is unplugged, hold the BOOT button while plugging it in
    • If the device is already plugged in, press RESET and BOOT, then release RESET then BOOT
  3. Run dfu-util --list and confirm that there are two devices with the vendor:product ID 0483:df11, one with the name @Option Bytes and one with the name @Internal Flash. If any other devices with that ID are present, remove them before continuing.
  4. Flash the device with dfu-util --device 0483:df11 --alt 0 --dfuse-address 0x08000000:leave --download [path/to/file/]<filename>.bin. It should erase the flash, then download the new file and show File downloaded successfully when it is done.

Visual

STM32CubeProgrammer can be used to flash device firmware. Setup will be platform-dependent, and thusly not covered here.

To build and upload:

  1. Open the PlatformIO tab in the left toolbar
  2. Under PROJECT TASKS > Build > General execute the Build procedure by clicking on it
  3. Execute Upload to upload to the microcontroller. Ensure that only a single board is plugged in to ensure you are writing to the correct device.

Building Firmware

Building firmware from source shouldn't be needed unless you are making changes to it. Firmware build instructions are provided for Ubuntu 24.04. Other debian-based Linux distros should follow a similar procedure. Flashing from Mac or Windows should be possible, but is not covered here.

You will need:

  • GCC for arm sudo apt install gcc-arm-none-eabi
  • make sudo apt install make
  • Everything as described in the command line flashing setup section above.

To build the code, simply run make in the firmware folder. This will build the firmware and copy the .bin into the firmware folder. Running make flash will build the firmware then upload it to a connected DFU mode microcontroller.

Initialization code was generated using [https://www.st.com/en/development-tools/stm32cubemx.html](STM32Cube initialization code generator). You should not need to mofidy this, but if you do, the module_io.ioc is included. If you regenerate the code, you may have to add

text
#######################################
# Flash
#######################################
flash: all
	dfu-util --device 0483:df11 --alt 0 --dfuse-address 0x08000000:leave --download $(BUILD_DIR)/$(TARGET).bin

to the end of Makefile. Optionally, add cp $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin to target all in the makefile (add line 171) to copy the bin out of the build direcotry. Generally, CubeMX does not seem to update the Makefile if it exists.

Testing

stm32devboards

  1. Populate all SMD components as described in the assembly sections. Do not populate THT components yet
  2. Visually inspect the board. Fix any issues and inspect again until no issues remain
    • Verify that no pins are shorted
    • Verify the correct orientation and alignment of all components. Pay special attention to the STM32 since its square shape makes it more difficult to notice errors
    • Bridges can hide under the USB port where you can't see them unless you tilt the board to look deep under the port. They can often be fixed by applying flux then heating the two bridged pins.
    • Fixing any of these issues is easier before soldering THT parts since everything here is reflow safe, so it is less likely to be damaged during repairs.
  3. Use a DMM to test between GND 3v3, and GND and either pad of the polyfuse (the component in the corner of the board by the USB port). Verify there are no shorts.
  4. On your computer run sudo dmesg -Hw to monitor system messages in real time (-m) with human-readable timestamps (-h). Keep this window open and visible for the next step
  5. Plug the board in via USB. Watch dmesg. The following should appear. If it does not, then there is a problem with your board.
text
[<starttime>] usb 3-2: new full-speed USB device number <id> using xhci_hcd
[  +0.148877] usb 3-2: New USB device found, idVendor=0483, idProduct=df11, bcdDevice=22.00
[  +0.000014] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000006] usb 3-2: Product: STM32  BOOTLOADER
[  +0.000006] usb 3-2: Manufacturer: STMicroelectronics
[  +0.000005] usb 3-2: SerialNumber: FFFFFFFEFFFF
  1. Use the above procedure to flash the blink-fast.bin firmware. Confirm that the LED blinks at about 10Hz.
  2. Use the above procedure to flash the blink-slow.bin firmware. Confirm that the LED blinks at about 1Hz. This confirms that you are able to flash new firmware to the device.
  3. Install the THT components as described in the assembly section.

blink-fast.bin and blink-slow.bin should already be built in the firmware/bin directory. If they are not, they can be rebuilt with the blink project. To rebuild them, run the following in firmware/blink

text
make clean && make DELAY=500 && cp blink.bin ../bin/blink-slow.bin
make clean && make DELAY=50 && cp blink.bin ../bin/blink-fast.bin

Parts

44
QtyValueFootprintReferences
100.1uCapacitor_SMD:C_0603_1608MetricC4, C5, C6, C7, C8, C9, C10, C11, C13, C14
40Resistor_SMD:R_0603_1608MetricR2, R3, R5, R6
45k1Resistor_SMD:R_0603_1608MetricR4, R9, R10, R12
210kResistor_SMD:R_0603_1608MetricR1, R11
220pCapacitor_SMD:C_0603_1608MetricC15, C16
222uCapacitor_SMD:C_0603_1608MetricC2, C3
260.4Resistor_SMD:R_0603_1608MetricR7, R8
2Conn_01x20Connector_PinHeader_2.54mm:PinHeader_1x24_P2.54mm_VerticalJ1, J2
2SW_SPSTfootprints:SW_SPST_3.4x3.4SW1, SW2
110uCapacitor_SMD:C_0603_1608MetricC1
11nCapacitor_SMD:C_0603_1608MetricC12
14.7uInductor_SMD:L_1210_3225MetricL1
1500mA polyFuse:Fuse_1206_3216MetricF1
1AMBERLED_SMD:LED_0603_1608MetricD1
1AP63203WUPackage_TO_SOT_SMD:TSOT-23-6U2
1ARM_SWD_TagConnect_TC2030-NLConnector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_VerticalJ4
1D_SchottkyDiode_SMD:D_1206_3216MetricD2
1ECS-160-10-36Q-ES-TRCrystal:Crystal_SMD_2520-4Pin_2.5x2.0mmX1
1GREENLED_SMD:LED_0603_1608MetricD3
1IP4234CZ6,125Package_SO:TSOP-6_1.65x3.05mm_P0.95mmU4
1STM32F042C6TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU1
1TCAN332Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_Palconn_UTC16-GJ3

Questions

How big is the Stm32devboard PCB?

It measures 20.3 × 61 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Stm32devboard use?

44 parts, built around the STM32F042C6T6, TCAN332D, AP63203WU and IP4234CZ6,125(ES). The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Stm32devboard KiCad files?

From the psas/mints-scada-hardware repository on GitHub, at the commit this page was made from: the board is stm32devboard/stm32devboard.kicad_pcb and its schematic interface-module/config1_adc.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Stm32devboard design in my own project?

Its repository states no licence, so its author keeps all rights: ask psas before reusing the design.

More from psas/mints-scada-hardware

1
  • 2 layers79 × 83 mmInterface module, the printed circuit board in 3D

    Interface module

    psas/mints-scada-hardware

    Minimal Test Stand Supervisory

    113 parts

Similar boards

  • 4 layers233.4 × 147.3 mmOpenPLC Hardware, the printed circuit board in 3D

    OpenPLC Hardware

    gasiepgodoy/Open-Source-PLC

    Open Source Programmable Logic Controller (Hardware and Software). Based on the Master of Science in Electrical Engineering of João Vitor Rocha Santana

    494 parts2
  • 2 layers83 × 100 mm1u panel v1, the printed circuit board in 3D

    1u panel v1

    BrownSpaceEngineering/PVDX-Solar_PCB

    75 parts
  • 2 layers83 × 100 mm1u panel, the printed circuit board in 3D

    1u panel

    oresat/oresat-solar-hardware

    OreSat solar array designs and CAD

    112 parts28
  • 4 layers54 × 64 mmCard debug board-3, the printed circuit board in 3D

    Card debug board-3

    oresat/oresat-flatsat

    All things for the OreSat flatsat

    101 parts1
  • 4 layers61.3 × 44.1 mmAt86rf215-design block, the printed circuit board in 3D

    At86rf215-design block

    oresat/oresat-kicad

    All things KiCAD for OreSat; libraries, tools, settings, etc.

    80 parts6
  • 6 layers81 × 85 mmSTS1 EPS 1, the printed circuit board in 3D

    STS1 EPS 1

    SpaceTeam/STS1_EPS

    185 parts
  • 2 layers54 × 128.6 mmPrototype, the printed circuit board in 3D

    Prototype

    ozseccon/ozseccon2019_badge

    development repo for 2019 badge

    32 parts2