Jump to content

How to change makefile in stm32F429.


zhuantou215

Recommended Posts

Thank you very much for helping me before. Since I was a novice, I downloaded the official STM32F746G-Discovery Template, and I want to change the makefile to generate a binary executable for STM32F429. So I changed the makefile to:

    OPT_OS                    = raw32
    OPT_THUMB                = yes
    OPT_LINK_OPTIMIZE        = no
    OPT_CPU                    = stm32m4

# uGFX settings
    # See $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk for the list of variables
    GFXLIB                    = ../uGFX
    GFXBOARD                = STM32F429i-Discovery
    GFXDEMO                    =
    GFXDRIVERS                =
    GFXSINGLEMAKE            = no

# Special - Required for the drivers for this discovery board.
STMHAL                        = ../STM32F4xx_HAL_Driver

# Special - Required for Raw32
CMSIS                        = ../CMSIS

##############################################################################################
# Set these for your project
#

ARCH     = arm-none-eabi-
SRCFLAGS = -ggdb -O1
CFLAGS   =
CXXFLAGS = -fno-rtti
ASFLAGS  =
LDFLAGS  =

SRC      = main.c

OBJS     =
DEFS     =
DEFS     =
LIBS     =
INCPATH  =

LIBPATH  =
LDSCRIPT =

##############################################################################################
# These should be at the end
#

include $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk
include $(GFXLIB)/tools/gmake_scripts/os_$(OPT_OS).mk
include $(GFXLIB)/tools/gmake_scripts/compiler_gcc.mk
# *** EOF ***

Whenever you run make. There is always an error .. ../uGFX/src/gos/gos_rules.h:24:3: error: #error "GOS: More than one operation system has been defined as TRUE."
 #error "GOS: More than one operation system has been defined as TRUE .. So I hope you can help me.

 

Link to comment
Share on other sites

There are two ready-to-run demo projects for the STM32F429i-Discovery board available: https://community.ugfx.io/files/category/2-example-projects/
However, they are both ChibiOS based.

We don't have anything other than those projects. There are just way too many different configurations (IDEs, underlying systems, HALs, ...) that we could provide everything.
When working with the CubeHAL I'd recommend you to have a look at the examples that ST provides. They tend to be quite verbose.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...