cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to import examples which stm32 provided for reference .

shreya_awati
Associate II

shreya_awati_0-1779522415943.png

Above image you can see in toolchain option STM32IDE is disable . also i am facimng issure i =n import examples which stm32 provided for reference . you can also refer my shared video.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @shreya_awati 

Open STM32CubeIDE 2.1.1.

Right Click on File, then click on STM32 Project Create/Import : 

MahmoudBenRomdhane_0-1779713984397.png

MahmoudBenRomdhane_1-1779714064826.png

MahmoudBenRomdhane_2-1779714221955.png

Thanks.

Mahmoud

 

 

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.

View solution in original post

14 REPLIES 14
Pavel A.
Super User

Try exporting for SW4STM32, then convert by CubeIDE project import.

PavelA_0-1779527991816.png

 

 

Can you please provide steps from scratch . 

 

15:48:33 **** Build of configuration Debug for project STM32746ZG_Nucleo ****

make -j12 all

arm-none-eabi-gcc "/home/sawati/STM32Cube/Example/GPIO_IOToggle/Src/main.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DUSE_STM32F7XX_NUCLEO_144 -c -I../../../Inc -I../../../../../../../../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../../../../../../../../Drivers/STM32F7xx_HAL_Driver/Inc -I../../../../../../../../Drivers/BSP/STM32F7xx_Nucleo_144 -I../../../../../../../../Drivers/CMSIS/Include -Os -ffunction-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/main.d" -MT"Example/User/main.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Example/User/main.o"

make: *** No rule to make target '/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c', needed by 'Drivers/STM32F7xx_HAL_Driver/stm32f7xx_hal.o'. Stop.

arm-none-eabi-gcc "/home/sawati/STM32Cube/Example/GPIO_IOToggle/Src/stm32f7xx_it.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DUSE_STM32F7XX_NUCLEO_144 -c -I../../../Inc -I../../../../../../../../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../../../../../../../../Drivers/STM32F7xx_HAL_Driver/Inc -I../../../../../../../../Drivers/BSP/STM32F7xx_Nucleo_144 -I../../../../../../../../Drivers/CMSIS/Include -Os -ffunction-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/stm32f7xx_it.d" -MT"Example/User/stm32f7xx_it.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Example/User/stm32f7xx_it.o"

make: *** Waiting for unfinished jobs....

arm-none-eabi-gcc -mcpu=cortex-m7 -g3 -c -x assembler-with-cpp -MMD -MP -MF"Example/SW4STM32/startup_stm32f746xx.d" -MT"Example/SW4STM32/startup_stm32f746xx.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Example/SW4STM32/startup_stm32f746xx.o" "/home/sawati/STM32Cube/Example/GPIO_IOToggle/SW4STM32/startup_stm32f746xx.s"

arm-none-eabi-gcc "/home/sawati/STM32Cube/Example/GPIO_IOToggle/SW4STM32/syscalls.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DUSE_STM32F7XX_NUCLEO_144 -c -I../../../Inc -I../../../../../../../../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../../../../../../../../Drivers/STM32F7xx_HAL_Driver/Inc -I../../../../../../../../Drivers/BSP/STM32F7xx_Nucleo_144 -I../../../../../../../../Drivers/CMSIS/Include -Os -ffunction-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/SW4STM32/syscalls.d" -MT"Example/SW4STM32/syscalls.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Example/SW4STM32/syscalls.o"

In file included from /home/sawati/STM32Cube/Example/GPIO_IOToggle/Src/main.c:21:

../../../Inc/main.h:24:10: fatal error: stm32f7xx_hal.h: No such file or directory

24 | #include "stm32f7xx_hal.h"

| ^~~~~~~~~~~~~~~~~

In file included from /home/sawati/STM32Cube/Example/GPIO_IOToggle/Src/stm32f7xx_it.c:22:

../../../Inc/main.h:24:10: fatal error: stm32f7xx_hal.h: No such file or directory

24 | #include "stm32f7xx_hal.h"

| ^~~~~~~~~~~~~~~~~

compilation terminated.

compilation terminated.

make: *** [Example/User/subdir.mk:22: Example/User/main.o] Error 1

make: *** [Example/User/subdir.mk:24: Example/User/stm32f7xx_it.o] Error 1

"make -j12 all" terminated with exit code 2. Build might be incomplete.

 

15:48:33 Build Failed. 6 errors, 0 warnings. (took 173ms)


These errors i got after selecting SW4STM32.



 



Hello @shreya_awati 

Let me thank you for posting.

I recommend that you import the example from the Firmware Package STM32Cube_FW_F7_V1.17.4 under this path:

C:\Users\__\STM32Cube\Repository\STM32Cube_FW_F7_V1.17.4\Projects\STM32F746ZG-Nucleo\Examples\GPIO\GPIO_IOToggle\SW4STM32\STM32746ZG_Nucleo

MahmoudBenRomdhane_0-1779712879065.png

Thanks.

Mahmoud

 

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.

which version of IDE you using . i am using MX is 6.17.0 and IDE is Version: 2.1.1 
I am importing package from MX for F7 latest . In image you can see package is successfully installed . 

Please tell me in detail steps how can i import .

shreya_awati_0-1779713687271.png

 

Hello @shreya_awati 

Open STM32CubeIDE 2.1.1.

Right Click on File, then click on STM32 Project Create/Import : 

MahmoudBenRomdhane_0-1779713984397.png

MahmoudBenRomdhane_1-1779714064826.png

MahmoudBenRomdhane_2-1779714221955.png

Thanks.

Mahmoud

 

 

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.

Its working fine.

Thanks 

For only GPIO example is working


other not able to import 

/home/sawati/STM32Cube/Repository/STM32Cube_FW_F7_V1.17.4/Projects/STM32F746ZG-Nucleo/Examples/ADC/ADC_RegularConversion_Interrupt/SW4STM32/STM32746ZG_Nucleo

shreya_awati_0-1779715026004.png

 

I import GPIO toggle example , after that i am trying to import another example but it is not showing build option . directly it is showing run option . Then i deleted gpio example and tried to import another example then is is showing build option . 

how can i resolve this issue ??