cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-FCU001V2の修正後のBuildでエラーとなる。回避方法について知りたい。

FujiSakura
Associate

STEVAL-FCU001V2について、
ST社のサイトからダウンロードしたプロジェクトをStm32CUBEIDEで開き、以下の修正を実施。

修正1ヘッダーファイル:rc.hについて、
REMOCON_BLEからREMOCON_PWMにモード変更。
  #define REMOCON_PWM // 外部リモコンRX 4チャンネルPWM

修正2 
\stsw-fcu001\STSW-FCU001\STEVAL-FCU001V2\Core\SrcにあるSysmem.Cについて、
ソースコードに書かれていたcaddt_tが、廃止されたtypedefであった為、void *に変更。
上記修正後にBuild ALLを行ったが以下のメッセージが出る。

重大なエラー:custom_motion_sensors.h:そのようなファイルまたはディレクトリはありません。
custom_motion_sensors.hはフロクトジェ内の別フォルダに、存在しているのでパスまで指定してもう一度Build ALLを試しましたが、結果は同じで、ヘッダファイルのインクルードは結局出来ませんでした。

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @FujiSakura 

I used Reverso to translate your post .

**********************************************************************************************************************************

About STEVAL-FCU001V2.
Open the project downloaded from ST's site with Stm32CUBEIDE and perform the following correction.

Fix #1 Header File: About rc.h
Mode change from REMOCON_BLE to REMOCON_PWM.
  #define REMOCON_PWM // External Remote Control RX 4 Channel PWM

Amendment 2 
\stsw-fcu001\STSW-FCU001\STEVAL-FCU001V2\Core\Src about Sysmem.C
The caddt_t in the source code has been changed to void * because it was a deprecated typedef.
After the above correction, Build ALL was performed, but the following message appears.

Critical error: custom_motion_sensors.h: There is no such file or directory.
Since custom_motion_sensors.h exists in a separate folder in the float, I tried Build ALL again by specifying the path, but the result was the same, and the header file could not be included in the end.

***********************************************************************************************************************************

If you have already added the correct include path for custom_motion_sensors.h in STM32CubeIDE (via "C/C++ Build" > "Settings" > "MCU GCC Compiler" > "Include paths ") and the build error still occurs, first double-check that the path you added exactly matches the folder containing the header file, and that there are no typos or case mismatches. Next, verify that the #include statement in your source code matches the relative path from the include directory you specified. For example, if you added Drivers/BSP/Components as an include path, the statement should be #include "custom_motion_sensors.h". If the file is in a subfolder, adjust the include path or the #include statement accordingly. Also, ensure that the file is not excluded from the build, and is present in the project directory. Try cleaning the project ("Project" > "Clean Project ") and rebuilding it.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi Ghofrane,

Thank you for your response, and my apologies for the delay.

I tried the solution you suggested, and the original error is now gone.

FujiSakura_0-1756600944322.png

However, three new errors have appeared, and I am still unable to build the project. The details are as follows:

FujiSakura_1-1756600994432.png

Error1:
Path "C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/arm-none-eabi/include/sys"
FileName "types.h"
Message "expected identifier or '(' before 'void'"

Error2:
Message make: *** [Core/Src/subdir.mk:70: Core/Src/syscalls.o] Error 1

Error3:
Message make: *** Waiting for unfinished jobs....
Is this error caused by the two preceding errors?

Furthermore, I'm seeing 7 warnings and 1 informational message. I've attached a screenshot for your reference.

FujiSakura_2-1756601724972.png

Could you please advise on how to fix these problems to get a clean build?