-
1Firmware Building
- Create a new workspace using System Worbenck for STM32 (SW4STM32). For instance, /brewbuddy
- Go to brewbuddy directory and clone this repository
- Starts SW4STM32 and import the project: File->Import->General->Existing Projects into Workspace
- In the dialog, please set:
- Select root directory: select your workspace directory, /brewbuddy
- Select the brew buddy project
- Do not check the option "copy projects into workspace"
- Before compiling, check optimization as "Optimize for Size (-Os)", under Properties->C/C++ Build->Tool Settings->MCU GCC Compiler->Optimization
-
2Debugging
You need a SWD interface for writing and debugging brewbuddy firmware. I have been using a very inexpensive stlink v2 clone, like this one. Just remove the battery and connect the following lines (there is a connector - J1 - in brewbuddy for this purpose):
- SDIO
- CLK
- GND
- VDD
Reset line is not necessary. However, in your "brew_buddy Config.cfg" file, ensure the line "reset_config none" is present.
The original line, created by the compiler (reset_config srst_only srst_nogate connect_assert_srst) does not work when using stlink clone.
You can use a stm32 discovery as jlink as well. In this case, it is not necessary to change the .cfg and it is recommended to connect the reset line.
-
3Hardware
The project was developed using KiCAD 4.0.2. All my environment is based on Linux but the project may open in KiCAD for windows as well. Some path adjustments may be required, although.
-
4Case
Current case was designed in Fusion 360. Original fuse files are in repository.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.