Giter Site home page Giter Site logo

ivandzen / cubemx2qbs Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 4.0 7 KB

Small Python script for converting GPDSC project description files generated by CubeMX software to QBS projects for using with ARMGCC compiler

Python 100.00%
qbs cubemx python-script armgcc-compiler gcc stm32 qtcreator arm cortex-m python embedded freertos

cubemx2qbs's Issues

No valid processor name macro is defined for the stm32f1xx.h

My recent generated project failed to build because the following error:

/tmp/pocs/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:159:3: error: #error "Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)" #error "Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)"

In the qbs file the defines looks the following:
cpp.defines: [ "STM32F103xx" ]

However the code threats the following defines valid:
#if defined(STM32F100xB) #include "stm32f100xb.h" #elif defined(STM32F100xE) #include "stm32f100xe.h" #elif defined(STM32F101x6) #include "stm32f101x6.h" #elif defined(STM32F101xB) #include "stm32f101xb.h" #elif defined(STM32F101xE) #include "stm32f101xe.h" #elif defined(STM32F101xG) #include "stm32f101xg.h" #elif defined(STM32F102x6) #include "stm32f102x6.h" #elif defined(STM32F102xB) #include "stm32f102xb.h" #elif defined(STM32F103x6) #include "stm32f103x6.h" #elif defined(STM32F103xB) #include "stm32f103xb.h" #elif defined(STM32F103xE) #include "stm32f103xe.h" #elif defined(STM32F103xG) #include "stm32f103xg.h" #elif defined(STM32F105xC) #include "stm32f105xc.h" #elif defined(STM32F107xC) #include "stm32f107xc.h" #else #error "Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)" #endif

By looking at the gpdsc file only the following line could be used to determine the correct define:
<file category="sourceAsm" condition="GCC Toolchain" name="Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\gcc\startup_stm32f103xb.s"/>

Deprecated and unrecognized cpp flags

qtcreator 4.0.2-1ubuntu2~1
qbs 1.5.2+dfsg-1
gcc-arm-none-eabi 4.9.3+svn231177-1

build:
warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
error: command line option ‘-mthumb’; did you mean ‘-mtbm’?

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.