zhuantou215 Posted February 26, 2018 Report Posted February 26, 2018 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.
Joel Bodenmann Posted February 26, 2018 Report Posted February 26, 2018 The error message is very clear: The underlying system has been defined more than once. This usually happens if you set your underlying operating system both in your configuration file (gfxconf.h) as well as your makefile. Just remove the declaration from your configuration file.
zhuantou215 Posted February 26, 2018 Author Report Posted February 26, 2018 Thank you very much. If I wanted to change STM32F746 to STM32F429, could you give me a template? For example stm32f429_discovery_sdram.c,stm32f7_i2c.c,and so on.
Joel Bodenmann Posted February 26, 2018 Report Posted February 26, 2018 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now