Skip to main content
SBhon.1
Associate II
October 11, 2024
Solved

STM32CubeCLT Build Issue

  • October 11, 2024
  • 2 replies
  • 1377 views

Hi, 

I have a server in AWS which I want to use to build and release my firmware. I installed v1.16.0 on my system as well as on the server. 

I cloned the project on both the systems and build is successful on my system. But, on the server, I am getting the following error for some reason:

 

In file included from ../Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.c:323:
../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h:30:10: fatal error: SEGGER_RTT.h: No such file or directory
 30 | #include "SEGGER_RTT.h"
 | ^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Drivers/STM32L4xx_HAL_Driver/Src/subdir.mk:97: Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.o] Error 1
make: *** [makefile:84: all] Error 2
make: Leaving directory '/home/ubuntu/projects/hotel_lock_test/fw_dev_project_hotel_lock_host/Release'

 

Same project build is successful on my system without making any changes. what could be the issue?

Best answer by SBhon.1

Hi All,

I managed to fix the issue. 

 

As it turns out, STM32CubeIDE uses relative paths of the system for all the include folders and not absolute paths(Default behaviour of the IDE as far as I can tell). So, I had to manually configure the project to use relative paths. 

 

After updating the project to use relative paths, its building on the server.

 

@cxelove @AScha.3 Thanks for the help.

2 replies

AScha.3
Super User
October 11, 2024

Hi,

-> missing or wrong path /includes etc.

"If you feel a post has answered your question, please click ""Accept as Solution""."
SBhon.1
SBhon.1Author
Associate II
October 11, 2024

Hi,

If paths are not proper, then it should not build on my system as well right? Even from CLI/STM32CubeIDE. But firmware gets built on my system. 

 

Also, its not like I have to configure any path when I clone the project. It works out of the box when I clone on my system.

Visitor II
October 12, 2024

cxelove_0-1728699566347.png

SBhon.1
SBhon.1AuthorBest answer
Associate II
October 14, 2024

Hi All,

I managed to fix the issue. 

 

As it turns out, STM32CubeIDE uses relative paths of the system for all the include folders and not absolute paths(Default behaviour of the IDE as far as I can tell). So, I had to manually configure the project to use relative paths. 

 

After updating the project to use relative paths, its building on the server.

 

@cxelove @AScha.3 Thanks for the help.