cancel
Showing results for 
Search instead for 
Did you mean: 

Absolut pathes for libraries added as reference

Jagr
Associate II

Hi,

we are generating STM32MP1 Code with CubeMX under Windows and add the needed lib file as references.
That creates a link for each library in the CM4/.project file.

Jagr_0-1705066819902.png

 

		<link>
			<name>Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal.c</name>
			<type>1</type>
			<locationURI>PARENT-3-PROJECT_LOC/Users/XXXX/STM32Cube/Repository/STM32Cube_FW_MP1_V1.6.0/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal.c</locationURI>
		</link>

 


The project is shared with several developers and its possible that PROJECT_LOCATION is at a different folder level,
what cause the build to crash if PARENT-3-PROJECT_LOC does not fit.
We don't want to Copy the library files to the project folder so that they don't have to be commited to our git repo.

In CubeIDE it is possible to convert the linked Resource path to absolut path, but this could be overwritten by CubeMX again.

 

Is there a way to tell CubeMX Code generator to use the absolut path of Firmware Package Repository
which is by default C:\Users\USER\STM32Cube\Repository\STM32Cube_FW_MP1_Vxyz

Best regards

 

0 REPLIES 0