duro80 / Makefile4CubeMX

Generate a Makefile for CubeMX projects
Other
11 stars 4 forks source link

Makefile for STM32CubeMX

This program generates a Makefile from STM32CubeMX (http://www.st.com/stm32cube) created project.

author: Juraj Dudak

Date: 16/03/2016


Changes and Improvements:

Instalation

sudo ./install

Dependencies

Usage

Before using the script CubeMX2Makefile.py make sure the software STM32CubeMX are set these preferences: In Project/Settings:

Open terminal in directory, where CubeMX generated the SW4STM32 project:

CubeMX2Makefile.py .    

Configuration

The script look for make_args (located in project direcory) where is predefined preprocessor directives. Syntax for this file:

   =DIRECTIVE_NAME
   +DIRECTIVE_VALUE1 
   +DIRECTIVE_VALUE2

In version 1.5.1, are supported:

Example of make_args file:

=C_DEFS
+MY_OWN_DIRECTIVE
+LIBRARY_VERSION=1.5.0
=LIBS
+LMiddlewares/mpl
+llibmplmpu
 

You can overwrtie default setting by editing local.settings file. See the local.setting file for details.

Usage of generated Makefile

Output

Disclaimer

Copyright 2015 Juraj Dudak

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.