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

import CubeMX modifications in µVision

Hi,

I am using Keil µVision 5.29.0.0, for programming of a STM32 device. For pin configuration I am using STM32CubeMX 5.5.0.

By starting CubeMX through the "Manage Run-Time Environment" dialog, µVision gets aware of modifications in the source code generated by CubeMX and is able to import those changes.

My problem is: we are multiple developers in the current project and each of us has to modify different parts of the STM pin configuration (one is implementing an UART protocol, one is working on a SPI device, ...). How can we synchronize our CubeMX configurations?

My last attempt was to just replace the "STCubeGenerated.ioc" file, generated in one of the RTE subdirectories. By doing so, CubeMX works fine, but modification in the generated code are not imported by µVision (RTE_Components.h is not changed).

Is there any way to merge/replace CubeMX modifications or do I have to do this manually?

Parents
  • As far as I know, a .gdpsc file from Cube is imported into uVision which contains all the modifications.

    May be you can try that once all the modifications are done by you and your colleagues, a uVision project file can be generated with-in Cube and imported to uVision.

    Other than that, it is hard to comment.

Reply
  • As far as I know, a .gdpsc file from Cube is imported into uVision which contains all the modifications.

    May be you can try that once all the modifications are done by you and your colleagues, a uVision project file can be generated with-in Cube and imported to uVision.

    Other than that, it is hard to comment.

Children
  • Thank you for your answer!

    I think you are talking about the "FrameworkCubeMX.gpdcs" file. I have noticed that this file is changed on generating new code from CubeMX and µVision also recognices it. But for example....

    Our current configuration does not contain any SPI pin, so the file stm32h7xx_hal_spi.c is not included in the Device section of the µVision project. My colleague has implemented some SPI device drive and has added the SPI configuration. 

    When I start CubeMX through µVision and add the SPI configuration manually, µVision recognizes that the gpdsc-file has changes and imports the modifications propperly (and adds stm32h7xx_hal_spi.c to my Device section...)

    When I just replace my ioc-file with that of my colleague, and start CubeMX through µVision again, I can generate the same gpdsc-file as before (I have compared its content) but µVision does not import the modifications (stm32h7xx_hal_spi.c is still missing) even though it recognizes that there are changes!