This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to combine project generated CubeMX with MDK-Middleware?

I use last version of ST CubeMX on generate project for STM32F103C8 and I want to add  MDK-Middleware component for example emWin.

Because MDK-Middleware only includes emwin support with RTOS, I in CubeMX generate  very simple project, only add FreeRTOS and activate I2C1 for I2C OLED with SSD1306 driver and generate project for MDK-ARM v>5.27.

Generated projet is in MDK-ARM v5.3 compiled OK.

Now I use manager Run Time  Enviromet for add Grphics core (emWin v6.10.8) and uSe button Resolve for solve dependencies. This Add CMSIS CORE, RTOS2 KeilRTX5, Device Srartup and Display Interface Temolates

The compulatiuon attempt ends in error XXX.sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.

becouse CumeMX insert ApplicationMDK-ARM/startup_STM32F103xb.s and MDK-ARM insert Device/startup_stm32f10x_md.s and both contain AREA    RESET, DATA, READONLY.

How to correctly add components from MDK-Middleware to a project from CubeMX?

Respectively, I solve this problem?