Missing object files from stm32 embedded coder firmware

14 vues (au cours des 30 derniers jours)
Sean
Sean le 24 Avr 2025
Commenté : Sean le 1 Juil 2025
I have a Simulink project that I am trying to build for an STM32F4xx board using the embedded coder. The project was made by a student of mine and given to me to run, so I know that it works for him, but I haven't been able to get it to work for me. I had to set up the stm32 toolchain for this, so I also cannot confirm that the toolchain works otherwise.
The error I am getting seems to be related to missing object files that I think are supposed to be supplied by the firmware downloaded by matlab when I set up the toolchain. I'll paste the error below:
### Starting build procedure for: ELEC49X_Vehicle_Model
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: /home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw
### Invoking Target Language Compiler on ELEC49X_Vehicle_Model.rtw
### Using System Target File: /home/seanmk/tools/MATLAB/R2024b/rtw/c/ert/ert.tlc
### Loading TLC function libraries
.........
### Initial pass through model to cache user defined code
.....
### Caching model source code
...............................................................................
.................................................
### Writing header file ELEC49X_Vehicle_Model_types.h
### Writing source file ELEC49X_Vehicle_Model.c
### Writing header file ELEC49X_Vehicle_Model_private.h
### Writing header file ELEC49X_Vehicle_Model.h
### Writing header file rtwtypes.h
.
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing source file ELEC49X_Vehicle_Model_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete (took 1.61s).
### Saving binary information cache.
### Using toolchain: GNU Tools for ARM Embedded Processors
### '/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/ELEC49X_Vehicle_Model.mk' is up to date
### Building 'ELEC49X_Vehicle_Model': "/home/seanmk/tools/MATLAB/R2024b/bin/glnxa64/gmake" -f ELEC49X_Vehicle_Model.mk all
."/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"stm_adc_ll.dep" -MT"stm_adc_ll.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "stm_adc_ll.o" "/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/src/stm_adc_ll.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"stm_can_hal.dep" -MT"stm_can_hal.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "stm_can_hal.o" "/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/src/stm_can_hal.c"
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/src/stm_can_hal.c: In function 'MW_CAN_Close':
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/src/stm_can_hal.c:414:24: warning: variable 'canHandle' set but not used [-Wunused-but-set-variable]
414 | CAN_HandleTypeDef* canHandle;
| ^~~~~~~~~
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"mw_stm32_spi_ll.dep" -MT"mw_stm32_spi_ll.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "mw_stm32_spi_ll.o" "/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/src/mw_stm32_spi_ll.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"ELEC49X_Vehicle_Model.dep" -MT"ELEC49X_Vehicle_Model.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "ELEC49X_Vehicle_Model.o" "/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/ELEC49X_Vehicle_Model.c"
/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/ELEC49X_Vehicle_Model.c: In function 'ELEC49X_Vehicl_CANWriteMessage1':
/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/ELEC49X_Vehicle_Model.c:185:54: warning: passing argument 2 of 'MW_CAN_TransmitMessage' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
185 | MW_CAN_TransmitMessage(localDW->obj.MW_CAN_HANDLE, &rtu_0->Data[0], rtu_0->ID,
| ^~~~~~~~~~~~~~~
In file included from /home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/ELEC49X_Vehicle_Model.h:30,
from /home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/ELEC49X_Vehicle_Model.c:20:
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/include/stm_can_hal.h:19:61: note: expected 'uint8_T *' {aka 'unsigned char *'} but argument is of type 'const uint8_T *' {aka 'const unsigned char *'}
19 | uint8_T MW_CAN_TransmitMessage(CAN_Type_T* handle, uint8_T* txData, uint32_T id, uint8_T idType, uint8_T remote, uint8_T length, uint32_T timeout, uint32_T * FifoLevel);
| ~~~~~~~~~^~~~~~
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"ELEC49X_Vehicle_Model_data.dep" -MT"ELEC49X_Vehicle_Model_data.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "ELEC49X_Vehicle_Model_data.o" "/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/ELEC49X_Vehicle_Model_data.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"rtGetNaN.dep" -MT"rtGetNaN.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "rtGetNaN.o" "/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/rtGetNaN.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"rt_nonfinite.dep" -MT"rt_nonfinite.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "rt_nonfinite.o" "/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/rt_nonfinite.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"overrideHALDelay.dep" -MT"overrideHALDelay.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "overrideHALDelay.o" "/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/src/overrideHALDelay.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"platform_timer.dep" -MT"platform_timer.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "platform_timer.o" "/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/src/platform_timer.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"SysTickScheduler.dep" -MT"SysTickScheduler.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "SysTickScheduler.o" "/home/seanmk/tools/MATLAB/R2024b/toolbox/target/shared/armcortexmbase/scheduler/src/SysTickScheduler.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"m3m4m4f_multitasking.dep" -MT"m3m4m4f_multitasking.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "m3m4m4f_multitasking.o" "/home/seanmk/tools/MATLAB/R2024b/toolbox/target/shared/armcortexmbase/scheduler/src/m3m4m4f_multitasking.c"
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"ert_main.dep" -MT"ert_main.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DMW_ADC1_ENABLED=1 -DMW_ADC1_VAR=mw_adc1 -DMW_ADC1_DMA_ENABLED=DMA2_Stream0_IRQHandler -DMW_ADC1_DMA2_Stream0_TC_ENABLED=1 -DMW_ADC1_DMA_STREAM=0 -DMW_ADC1_DMA_BUFFER_SIZE=6 -DMW_SPI2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTM32F446xx -DMW_TIMEBASESOURCE=TIM5 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=1 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=512 -DRT -DMODEL=ELEC49X_Vehicle_Model -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DMW_CAN1_ENABLED=1 @ELEC49X_Vehicle_Model_comp.rsp -o "ert_main.o" "/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Model_ert_rtw/ert_main.c"
### Creating standalone executable ../ELEC49X_Vehicle_Model.elf ...
"/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/arm-none-eabi-g++" -Wl,--gc-sections -Wl,-Map="ELEC49X_Vehicle_Model.map" -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard --entry Reset_Handler --specs=nosys.specs -T"/home/seanmk/queens/elec-471/pedalbox/ELEC49X-Simulation/ELEC49X_Vehicle_Sim/STM32CubeIDE/STM32F446RETX_FLASH.ld" --specs=nano.specs -o ../ELEC49X_Vehicle_Model.elf @ELEC49X_Vehicle_Model.rsp /home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/cmsis_dsp.instrset/Lib/GCC/arm_cortexm4ldfsp_math/libCMSISDSP.a /home/seanmk/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/supportpackages/stm32/lib/GCC/libmw_pdmfilter_m4_spfp.lib -lm
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find CoreSrcmain.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find CoreSrcstm32f4xx_it.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find CoreSrcstm32f4xx_hal_msp.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find CoreSrcstm32f4xx_hal_timebase_tim.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_ll_gpio.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_ll_adc.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_ll_dma.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_ll_rcc.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_ll_utils.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_ll_exti.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_rcc.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_rcc_ex.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_flash.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_flash_ex.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_flash_ramfunc.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_gpio.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_dma_ex.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_dma.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_pwr.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_pwr_ex.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_cortex.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_exti.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_can.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_ll_spi.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_tim.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_hal_tim_ex.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversSTM32F4xx_HAL_DriverSrcstm32f4xx_ll_usart.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find DriversCMSISDeviceSTSTM32F4xxSourceTemplatessystem_stm32f4xx.o: No such file or directory
/home/seanmk/Documents/MATLAB/SupportPackages/R2024b/3P.instrset/gnuarm-armcortex.instrset/glnxa64/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: cannot find CoreSrcsystem_stm32f4xx.o: No such file or directory
collect2: error: ld returned 1 exit status
gmake: *** [../ELEC49X_Vehicle_Model.elf] Error 1
### Build procedure for ELEC49X_Vehicle_Model aborted due to an error.
I have confirmed that these files don't exist on my filesystem, but the firmware was installed. At least, the source code for the firmware was installed. The directory tree I installed it in has mostly uncompiled .c files and no .o files. Any assistance would be helpful, as I am rather stuck.
uname -a:
Linux yogurt 6.12.16-gentoo-x86_64 #2 SMP PREEMPT_DYNAMIC Thu Mar 20 16:10:37 EDT 2025 x86_64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz GenuineIntel GNU/Linux

Réponse acceptée

Kautuk Raj
Kautuk Raj le 1 Juil 2025
I was also facing issues resolving file object linker issues when using EC Support Package for STMicroelectronics STM32 Processors with a STM32F4xx board in a Linux environment.
I gathered that Linux is not supported for STM32, although the corresponding MATLAB Central File Exchange page incorrectly indicates otherwise at this moment.
  1 commentaire
Sean
Sean le 1 Juil 2025
Yes, I also filed a ticket for this issue and Mathworks support eventually confirmed the same thing.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by