Coder Social home page Coder Social logo

r-pv / stm32f030k6 Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 7.0 1.26 MB

Custom board for the STM32F30K6T6 MCU, compatible with STM32Duino (Arduino).

License: GNU General Public License v3.0

C 88.03% C++ 11.97%
stm32f030k6t6 stm32f030k6t stm32f030k6 stm32f030k stm32f030 stm32 stm32duino arduino variant arduino-ide

stm32f030k6's Introduction

rSTM32F030K6 ProMini

An ST development board based on the rSTM32F030K6T6/rSTM32F030K6 (Clock: 48MHz, flash: 32Kb, Ram:4Kb) MCU (LQFP-32) compatible with STM32Duino (Arduino).

Install

Update: STCore v2.0 includes support for this MCU, if you're using STCore v2.0 you don't need to install anything.

  • This requires the STM32 core for arduino, the ST original.
  • I used this guide to add the board, you can check it or continue with my suggestions to install the new board.
  • Copy the "DEMO_F030K6" folder to the Arduino "variants" folder, in win7 is located at: c:\Users\<USERNAME>\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.6.1\variants
  • Edit the "boards.txt" file, in win7 is located at a lever up than the "variants" folder, search for the F030F4 board and add the lines to leave as I show you next:
# DEMO_F030F4 board
# Support: Serial1 (USART1 on PA3, PA2)
GenF0.menu.pnum.DEMO_F030F4=STM32F030F4 Demo board
GenF0.menu.pnum.DEMO_F030F4.upload.maximum_data_size=4096
GenF0.menu.pnum.DEMO_F030F4.upload.maximum_size=16384
GenF0.menu.pnum.DEMO_F030F4.build.mcu=cortex-m0
GenF0.menu.pnum.DEMO_F030F4.build.board=DEMO_F030F4
GenF0.menu.pnum.DEMO_F030F4.build.series=STM32F0xx
GenF0.menu.pnum.DEMO_F030F4.build.product_line=STM32F030x6
GenF0.menu.pnum.DEMO_F030F4.build.variant=DEMO_F030F4
GenF0.menu.pnum.DEMO_F030F4.build.cmsis_lib_gcc=arm_cortexM0l_math

# DEMO_F030K6 board
# Support: Serial1 (USART1 on PA3, PA2)
GenF0.menu.pnum.DEMO_F030K6=STM32F030K6 Demo board
GenF0.menu.pnum.DEMO_F030K6.upload.maximum_data_size=4096
GenF0.menu.pnum.DEMO_F030K6.upload.maximum_size=32768
GenF0.menu.pnum.DEMO_F030K6.build.mcu=cortex-m0
GenF0.menu.pnum.DEMO_F030K6.build.board=DEMO_F030K6
GenF0.menu.pnum.DEMO_F030K6.build.series=STM32F0xx
GenF0.menu.pnum.DEMO_F030K6.build.product_line=STM32F030x6
GenF0.menu.pnum.DEMO_F030K6.build.variant=DEMO_F030K6
GenF0.menu.pnum.DEMO_F030K6.build.cmsis_lib_gcc=arm_cortexM0l_math

Files and Folders description

  • DEMO_F030K6 it's the variant board for the STM32 Arduino Core.
  • gerbers it's the PCB gerbers.
  • rSTM32F030K6T6 it's the KiCAD 5.1.2 project.
  • Schematic.pdf as in the name.

Running some tests

clip

clip

Reducing the size of your sketch

For some reason it seems that the sketchs for this platform gets way too fat (relative to standard arduino-atmel sketch sizes) and on some cases won't fit well on our board, a way to fit the sketchs to the flash/ram size that this board has it's to create a file hal_conf_extra.h on the sketch folder and disabling all features that weren't using:

#define HAL_ADC_MODULE_DISABLED
#define HAL_I2C_MODULE_DISABLED
#define HAL_RTC_MODULE_DISABLED
#define HAL_SPI_MODULE_DISABLED
#define HAL_TIM_MODULE_DISABLED
#define HAL_DAC_MODULE_DISABLED
#define HAL_EXTI_MODULE_DISABLED
#define HAL_ETH_MODULE_DISABLED
#define HAL_SD_MODULE_DISABLED
#define HAL_QSPI_MODULE_DISABLED

(an arduino restart may be required on changes to this file).

Also, if you aren't using the serial you cand disable it on the arduino menu:

Board > U(S)ART Support > Disabled.

Notes

This it's the first board variant I made, so errors may occur.

STM32Duino thread.

stm32f030k6's People

Contributors

r-pv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.