cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeCLT Build Issue

SBhon.1
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SBhon.1
Associate III

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.

View solution in original post

4 REPLIES 4
AScha.3
Chief III

Hi,

-> missing or wrong path /includes etc.

If you feel a post has answered your question, please click "Accept as Solution".

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.

cxelove_0-1728699566347.png

SBhon.1
Associate III

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.