grblHAL / STM32F4xx

grblHAL driver for ST STM32F4xx (Nucleo-64, Blackpill)
Other
93 stars 86 forks source link

CPU STM32F412RET6 Compilation error #187

Closed auxp closed 3 months ago

auxp commented 3 months ago

open#define WIZCHIP 5500 #define WEBUI_ENABLE 3 .board. longboard32_map.h error make: No rule to make target 'D:\Projects\STM\GRBL Driver STM32F401\STM32F412VGTX_FLASH.ld', needed by 'firmware.elf'. Stop. make: Waiting for unfinished jobs....

terjeio commented 3 months ago

Both debug and release builds compiles for me. Are you using the STM32CubeIDE?

auxp commented 3 months ago

调试和发布版本都为我编译。您在使用STM32CubeIDE吗?

yes.STM32CubeIDE 1.12.0

terjeio commented 3 months ago

Other boards compiles?

My my_machine.h: my_machine.zip

auxp commented 3 months ago

same make: No rule to make target 'D:\Projects\STM\GRBL Driver STM32F401\STM32F412VGTX_FLASH.ld', needed by 'firmware.elf'. Stop. make: Waiting for unfinished jobs....

auxp commented 3 months ago

My my_machine.h: my_machine.h.txt

auxp commented 3 months ago

My longboard32_map.h:default longboard32_map.h.txt

terjeio commented 3 months ago

Is STM32F412VGTX_FLASH.ld missing?

auxp commented 3 months ago

![Uploading 3cef700dfc19399edf589416e5b32f5.png…]()

auxp commented 3 months ago

STM32F412VGTX_FLASH.ld.txt

terjeio commented 3 months ago

This is the correct file content.

auxp commented 3 months ago

Missing one mistake make: *** No rule to make target 'D:\Projects\STM\GRBL Driver STM32F401\STM32F412VGTX_FLASH.ld', needed by 'firmware.elf'. Stop.

auxp commented 3 months ago

i 'm sorry! Just now STM32F412VGTX_FLASH.ld Copy wrong The current mistake: arm-none-eabi-gcc -o "firmware.elf" @"objects.list" -mcpu=cortex-m4 -T"D:\Projects\STM\GRBL Driver STM32F401\STM32F412VGTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="firmware.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -u _printf_float -u _scanf_float -Wl,--start-group -lc -lm -Wl,--end-group d:\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./boards/longboard32.o: in function board_init': D:/CNCGRBL/STM32Fxx/STM32F4xx-master/Debug F412/../boards/longboard32.c:31: undefined reference totmc_spi_init' collect2.exe: error: ld returned 1 exit status make: *** [makefile:102: firmware.elf] Error 1

auxp commented 3 months ago

thank you. I have already solved the problem