NucleoF446 with Simulink Failed Code generation information file does not exist.

10 Ansichten (letzte 30 Tage)
Please help me understand why my Simulink Model will not work on my board!
### Starting build procedure for: nucleoHelloBattery ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\TestSimulinkNucleo\TestBatteryNucleo\nucleoHelloBattery\Matlab\nucleoHelloBattery_ert_rtw
Source 'nucleoHelloBattery/From Workspace' specifies that its sample time (-1) is back-inherited. You should explicitly specify the sample time of sources. You can disable this diagnostic by setting the 'Source block specifies -1 sample time' diagnostic to 'none' in the Sample Time group on the Diagnostics pane of the Configuration Parameters dialog box.
Component:Simulink | Category:Block warning
### Invoking Target Language Compiler on nucleoHelloBattery.rtw ### Using System Target File: C:\Program Files\MATLAB\R2022b\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 nucleoHelloBattery_types.h ### Writing header file nucleoHelloBattery.h ### Writing header file rtwtypes.h . ### Writing source file nucleoHelloBattery.c ### Writing header file nucleoHelloBattery_private.h ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete (took 9.398s). ### Saving binary information cache. ### Using toolchain: GNU Tools for ARM Embedded Processors ### 'C:\TestSimulinkNucleo\TestBatteryNucleo\nucleoHelloBattery\Matlab\nucleoHelloBattery_ert_rtw\nucleoHelloBattery.mk' is up to date ### Building 'nucleoHelloBattery': "C:\PROGRA~1\MATLAB\R2022b\bin\win64\gmake" -j7 -f nucleoHelloBattery.mk all MW_GNU_ARM_TOOLS_PATH = C:/PROGRA~3/MATLAB/SUPPOR~1/R2022b/3P778C~1.INS/GNUARM~1.INS/win/bin C:\TestSimulinkNucleo\TestBatteryNucleo\nucleoHelloBattery\Matlab\nucleoHelloBattery_ert_rtw>cd . C:\TestSimulinkNucleo\TestBatteryNucleo\nucleoHelloBattery\Matlab\nucleoHelloBattery_ert_rtw>if "all" == "" ("C:\PROGRA~1\MATLAB\R2022b\bin\win64\gmake" -j7 -f nucleoHelloBattery.mk all ) else ("C:\PROGRA~1\MATLAB\R2022b\bin\win64\gmake" -j7 -f nucleoHelloBattery.mk all ) "C:/PROGRA~3/MATLAB/SUPPOR~1/R2022b/3P778C~1.INS/GNUARM~1.INS/win/bin/arm-none-eabi-gcc" -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"nucleoHelloBattery.dep" -MT"nucleoHelloBattery.o" -c -O0 -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DSTM32F446xx -DUSE_HAL_DRIVER -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=0 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=64 -DRT -DMODEL=nucleoHelloBattery -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @nucleoHelloBattery_comp.rsp -o "nucleoHelloBattery.o" "C:/TestSimulinkNucleo/TestBatteryNucleo/nucleoHelloBattery/Matlab/nucleoHelloBattery_ert_rtw/nucleoHelloBattery.c" "C:/PROGRA~3/MATLAB/SUPPOR~1/R2022b/3P778C~1.INS/GNUARM~1.INS/win/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 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DSTM32F446xx -DUSE_HAL_DRIVER -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=0 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=64 -DRT -DMODEL=nucleoHelloBattery -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @nucleoHelloBattery_comp.rsp -o "overrideHALDelay.o" "C:/ProgramData/MATLAB/SupportPackages/R2022b/toolbox/shared/supportpackages/stm32/src/overrideHALDelay.c" "C:/PROGRA~3/MATLAB/SUPPOR~1/R2022b/3P778C~1.INS/GNUARM~1.INS/win/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 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DSTM32F446xx -DUSE_HAL_DRIVER -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=0 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=64 -DRT -DMODEL=nucleoHelloBattery -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @nucleoHelloBattery_comp.rsp -o "platform_timer.o" "C:/ProgramData/MATLAB/SupportPackages/R2022b/toolbox/shared/supportpackages/stm32/src/platform_timer.c" "C:/PROGRA~3/MATLAB/SUPPOR~1/R2022b/3P778C~1.INS/GNUARM~1.INS/win/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 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DSTM32F446xx -DUSE_HAL_DRIVER -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=0 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=64 -DRT -DMODEL=nucleoHelloBattery -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @nucleoHelloBattery_comp.rsp -o "SysTickScheduler.o" "C:/ProgramData/MATLAB/SupportPackages/R2022b/toolbox/target/supportpackages/armcortexmbase/scheduler/src/SysTickScheduler.c" "C:/PROGRA~3/MATLAB/SUPPOR~1/R2022b/3P778C~1.INS/GNUARM~1.INS/win/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 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DSTM32F446xx -DUSE_HAL_DRIVER -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=0 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=64 -DRT -DMODEL=nucleoHelloBattery -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @nucleoHelloBattery_comp.rsp -o "m3m4m4f_multitasking.o" "C:/ProgramData/MATLAB/SupportPackages/R2022b/toolbox/target/supportpackages/armcortexmbase/scheduler/src/m3m4m4f_multitasking.c" "C:/PROGRA~3/MATLAB/SUPPOR~1/R2022b/3P778C~1.INS/GNUARM~1.INS/win/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 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DUSE_FULL_LL_DRIVER -DSTM32F446xx -DUSE_HAL_DRIVER -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=0 -DXCP_CUSTOM_PLATFORM -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=10 -D__FPU_PRESENT=1U -D__FPU_USED=1U -DSTACK_SIZE=64 -DRT -DMODEL=nucleoHelloBattery -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @nucleoHelloBattery_comp.rsp -o "ert_main.o" "C:/TestSimulinkNucleo/TestBatteryNucleo/nucleoHelloBattery/Matlab/nucleoHelloBattery_ert_rtw/ert_main.c" C:/ProgramData/MATLAB/SupportPackages/R2022b/toolbox/shared/supportpackages/stm32/src/platform_timer.c:18:13: warning: 'timestampInit' defined but not used [-Wunused-function] 18 | static void timestampInit(void) | ^~~~~~~~~~~~~ C:/TestSimulinkNucleo/TestBatteryNucleo/nucleoHelloBattery/Matlab/nucleoHelloBattery_ert_rtw/ert_main.c: In function 'main': C:/TestSimulinkNucleo/TestBatteryNucleo/nucleoHelloBattery/Matlab/nucleoHelloBattery_ert_rtw/ert_main.c:64:3: warning: implicit declaration of function 'SystemClock_Config'; did you mean 'SysTick_Config'? [-Wimplicit-function-declaration] 64 | SystemClock_Config(); | ^~~~~~~~~~~~~~~~~~ | SysTick_Config C:/TestSimulinkNucleo/TestBatteryNucleo/nucleoHelloBattery/Matlab/nucleoHelloBattery_ert_rtw/ert_main.c:65:3: warning: implicit declaration of function 'PeriphCommonClock_Config' [-Wimplicit-function-declaration] 65 | PeriphCommonClock_Config(); | ^~~~~~~~~~~~~~~~~~~~~~~~ "### Creating standalone executable "../nucleoHelloBattery.elf" ..." "C:/PROGRA~3/MATLAB/SUPPOR~1/R2022b/3P778C~1.INS/GNUARM~1.INS/win/bin/arm-none-eabi-g++" -Wl,--gc-sections -Wl,-Map="nucleoHelloBattery.map" --specs=nano.specs -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard --entry Reset_Handler --specs=nosys.specs -T"C:\TestSimulinkNucleo\TestBatteryNucleo\nucleoHelloBattery\STM32CubeIDE\STM32F446RETX_FLASH.ld" -o ../nucleoHelloBattery.elf @nucleoHelloBattery.rsp C:/ProgramData/MATLAB/SupportPackages/R2022b/3P.instrset/cmsis.instrset/CMSIS/DSP/Lib/GCC/libarm_cortexM4lf_math.a -lm c:/progra~3/matlab/suppor~1/r2022b/3p778c~1.ins/gnuarm~1.ins/win/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: ../nucleoHelloBattery.elf section `.data' will not fit in region `RAM' c:/progra~3/matlab/suppor~1/r2022b/3p778c~1.ins/gnuarm~1.ins/win/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: region `RAM' overflowed by 136224 bytes collect2.exe: error: ld returned 1 exit status gmake: *** [../nucleoHelloBattery.elf] Error 1 C:\TestSimulinkNucleo\TestBatteryNucleo\nucleoHelloBattery\Matlab\nucleoHelloBattery_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\TestSimulinkNucleo\TestBatteryNucleo\nucleoHelloBattery\Matlab\nucleoHelloBattery_ert_rtw>exit /B 1 ### Build procedure for nucleoHelloBattery aborted due to an error.
Build Summary
Top model targets built: Model Action Rebuild Reason ============================================================================== nucleoHelloBattery Failed Code generation information file does not exist.
  1 Kommentar
Goutham Varanasi
Goutham Varanasi am 19 Mär. 2024
Hi
The build log mentions that the .data section will not fit in the RAM region, with an overflow of 136224 bytes.
Review the model and code to reduce memory usage by reducing the size of arrays or making sure only necessary variables are stored in RAM.
Thank you,
Goutham Varanasi

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by