Not able to run PIL mode in stm32F407 using simulink embedded coder

4 views (last 30 days)
I get the following error when I try to run my program in PIL mode. It would be great if someone can help in this regard.
### Starting build procedure for model: pwm_gen_and_direction_reversal
### Generating code and artifacts to 'Model specific' folder structure
Code Generation 2 4
Elapsed: 2 sec
### Generating code into build folder: E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw
Source 'pwm_gen_and_direction_reversal/GPIO user button' 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. [3 similar]
Component:Simulink | Category:Block warning
Parameter precision loss occurred for 'Value' of 'pwm_gen_and_direction_reversal/Subsystem/Repeating Sequence Stair/Vector'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning or error, in the Configuration Parameters > Diagnostics > Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'.
Component:Simulink | Category:Block warning Suppress
### Generated code for 'pwm_gen_and_direction_reversal' is up to date because no structural, parameter or code replacement library changes were found.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: GNU Tools for ARM Embedded Processors v7.2.1 | gmake (64-bit Windows)
### 'E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw\pwm_gen_and_direction_reversal.mk' is up to date
### Building 'pwm_gen_and_direction_reversal': "C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f pwm_gen_and_direction_reversal.mk buildobj
MW_GNU_ARM_TOOLS_PATH = C:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/3P778C~1.INS/GNUARM~1.INS/win/bin
E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw>cd .
E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw>if "buildobj" == "" ("C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f pwm_gen_and_direction_reversal.mk all ) else ("C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f pwm_gen_and_direction_reversal.mk buildobj )
"### Successfully generated all binary outputs."
E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw>exit /B 0
### Successful completion of build procedure for model: pwm_gen_and_direction_reversal
Build process completed successfully
### Preparing to start PIL simulation ...
Simulation 1 1
Elapsed: 4 sec
### Connectivity configuration for "E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw": STM32F4-Discovery (ST-LINK) ###
### Using toolchain: GNU Tools for ARM Embedded Processors v7.2.1 | gmake (64-bit Windows)
### 'E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw\pil\pwm_gen_and_direction_reversal.mk' is up to date
### Building 'pwm_gen_and_direction_reversal': "C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f pwm_gen_and_direction_reversal.mk all
MW_GNU_ARM_TOOLS_PATH = C:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/3P778C~1.INS/GNUARM~1.INS/win/bin
E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw\pil>cd .
E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw\pil>if "" == "" ("C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f pwm_gen_and_direction_reversal.mk all ) else ("C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f pwm_gen_and_direction_reversal.mk )
"### Creating standalone executable "./pwm_gen_and_direction_reversal.elf" ..."
C:/PROGRA~3/MATLAB/SUPPOR~1/R2018b/3P778C~1.INS/GNUARM~1.INS/win/bin/arm-none-eabi-g++ -Wl,--gc-sections -Wl,-Map="pwm_gen_and_direction_reversal.map" -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard --specs=nano.specs -T "C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\target\supportpackages\stm32f4discovery\src\STM32F4-Discovery_app_gcc.ld" -o ./pwm_gen_and_direction_reversal.elf @pwm_gen_and_direction_reversal.rsp @pwm_gen_and_direction_reversal_ref.rsp C:/ProgramData/MATLAB/SupportPackages/R2018b/3P.instrset/cmsis.instrset/CMSIS/Lib/GCC/libarm_cortexM4lf_math.a C:/ProgramData/MATLAB/SupportPackages/R2018b/3P.instrset/cmsis.instrset/CMSIS/RTOS/RTX/LIB/GCC/libRTX_CM4.a E:/Research/CSD_course_TA/Matlab_files/stm32_codes/pwm_gen_and_direction_reversal_ert_rtw/coderassumptions/lib/pwm_gen_and_direction_reversal_ca.lib -lm
../stm32f4xx_gpio.o: In function `GPIO_DeInit':
stm32f4xx_gpio.c:(.text.GPIO_DeInit+0x0): multiple definition of `GPIO_DeInit'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_DeInit+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_Init':
stm32f4xx_gpio.c:(.text.GPIO_Init+0x0): multiple definition of `GPIO_Init'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_Init+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_StructInit':
stm32f4xx_gpio.c:(.text.GPIO_StructInit+0x0): multiple definition of `GPIO_StructInit'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_StructInit+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_PinLockConfig':
stm32f4xx_gpio.c:(.text.GPIO_PinLockConfig+0x0): multiple definition of `GPIO_PinLockConfig'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_PinLockConfig+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_ReadInputDataBit':
stm32f4xx_gpio.c:(.text.GPIO_ReadInputDataBit+0x0): multiple definition of `GPIO_ReadInputDataBit'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_ReadInputDataBit+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_ReadInputData':
stm32f4xx_gpio.c:(.text.GPIO_ReadInputData+0x0): multiple definition of `GPIO_ReadInputData'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_ReadInputData+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_ReadOutputDataBit':
stm32f4xx_gpio.c:(.text.GPIO_ReadOutputDataBit+0x0): multiple definition of `GPIO_ReadOutputDataBit'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_ReadOutputDataBit+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_ReadOutputData':
stm32f4xx_gpio.c:(.text.GPIO_ReadOutputData+0x0): multiple definition of `GPIO_ReadOutputData'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_ReadOutputData+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_SetBits':
stm32f4xx_gpio.c:(.text.GPIO_SetBits+0x0): multiple definition of `GPIO_SetBits'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_SetBits+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_ResetBits':
stm32f4xx_gpio.c:(.text.GPIO_ResetBits+0x0): multiple definition of `GPIO_ResetBits'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_ResetBits+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_WriteBit':
stm32f4xx_gpio.c:(.text.GPIO_WriteBit+0x0): multiple definition of `GPIO_WriteBit'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_WriteBit+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_Write':
stm32f4xx_gpio.c:(.text.GPIO_Write+0x0): multiple definition of `GPIO_Write'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_Write+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_ToggleBits':
stm32f4xx_gpio.c:(.text.GPIO_ToggleBits+0x0): multiple definition of `GPIO_ToggleBits'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_ToggleBits+0x0): first defined here
../stm32f4xx_gpio.o: In function `GPIO_PinAFConfig':
stm32f4xx_gpio.c:(.text.GPIO_PinAFConfig+0x0): multiple definition of `GPIO_PinAFConfig'
stm32f4xx_gpio.o:stm32f4xx_gpio.c:(.text.GPIO_PinAFConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_DeInit':
stm32f4xx_rcc.c:(.text.RCC_DeInit+0x0): multiple definition of `RCC_DeInit'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_DeInit+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_HSEConfig':
stm32f4xx_rcc.c:(.text.RCC_HSEConfig+0x0): multiple definition of `RCC_HSEConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_HSEConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_WaitForHSEStartUp':
stm32f4xx_rcc.c:(.text.RCC_WaitForHSEStartUp+0x0): multiple definition of `RCC_WaitForHSEStartUp'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_WaitForHSEStartUp+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_GetFlagStatus':
stm32f4xx_rcc.c:(.text.RCC_GetFlagStatus+0x0): multiple definition of `RCC_GetFlagStatus'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_GetFlagStatus+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AdjustHSICalibrationValue':
stm32f4xx_rcc.c:(.text.RCC_AdjustHSICalibrationValue+0x0): multiple definition of `RCC_AdjustHSICalibrationValue'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AdjustHSICalibrationValue+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_HSICmd':
stm32f4xx_rcc.c:(.text.RCC_HSICmd+0x0): multiple definition of `RCC_HSICmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_HSICmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_LSEConfig':
stm32f4xx_rcc.c:(.text.RCC_LSEConfig+0x0): multiple definition of `RCC_LSEConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_LSEConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_LSICmd':
stm32f4xx_rcc.c:(.text.RCC_LSICmd+0x0): multiple definition of `RCC_LSICmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_LSICmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_PLLConfig':
stm32f4xx_rcc.c:(.text.RCC_PLLConfig+0x0): multiple definition of `RCC_PLLConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_PLLConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_PLLCmd':
stm32f4xx_rcc.c:(.text.RCC_PLLCmd+0x0): multiple definition of `RCC_PLLCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_PLLCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_PLLI2SConfig':
stm32f4xx_rcc.c:(.text.RCC_PLLI2SConfig+0x0): multiple definition of `RCC_PLLI2SConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_PLLI2SConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_PLLI2SCmd':
stm32f4xx_rcc.c:(.text.RCC_PLLI2SCmd+0x0): multiple definition of `RCC_PLLI2SCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_PLLI2SCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_ClockSecuritySystemCmd':
stm32f4xx_rcc.c:(.text.RCC_ClockSecuritySystemCmd+0x0): multiple definition of `RCC_ClockSecuritySystemCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_ClockSecuritySystemCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_MCO1Config':
stm32f4xx_rcc.c:(.text.RCC_MCO1Config+0x0): multiple definition of `RCC_MCO1Config'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_MCO1Config+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_MCO2Config':
stm32f4xx_rcc.c:(.text.RCC_MCO2Config+0x0): multiple definition of `RCC_MCO2Config'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_MCO2Config+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_SYSCLKConfig':
stm32f4xx_rcc.c:(.text.RCC_SYSCLKConfig+0x0): multiple definition of `RCC_SYSCLKConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_SYSCLKConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_GetSYSCLKSource':
stm32f4xx_rcc.c:(.text.RCC_GetSYSCLKSource+0x0): multiple definition of `RCC_GetSYSCLKSource'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_GetSYSCLKSource+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_HCLKConfig':
stm32f4xx_rcc.c:(.text.RCC_HCLKConfig+0x0): multiple definition of `RCC_HCLKConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_HCLKConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_PCLK1Config':
stm32f4xx_rcc.c:(.text.RCC_PCLK1Config+0x0): multiple definition of `RCC_PCLK1Config'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_PCLK1Config+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_PCLK2Config':
stm32f4xx_rcc.c:(.text.RCC_PCLK2Config+0x0): multiple definition of `RCC_PCLK2Config'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_PCLK2Config+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_GetClocksFreq':
stm32f4xx_rcc.c:(.text.RCC_GetClocksFreq+0x0): multiple definition of `RCC_GetClocksFreq'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_GetClocksFreq+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_RTCCLKConfig':
stm32f4xx_rcc.c:(.text.RCC_RTCCLKConfig+0x0): multiple definition of `RCC_RTCCLKConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_RTCCLKConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_RTCCLKCmd':
stm32f4xx_rcc.c:(.text.RCC_RTCCLKCmd+0x0): multiple definition of `RCC_RTCCLKCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_RTCCLKCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_BackupResetCmd':
stm32f4xx_rcc.c:(.text.RCC_BackupResetCmd+0x0): multiple definition of `RCC_BackupResetCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_BackupResetCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_I2SCLKConfig':
stm32f4xx_rcc.c:(.text.RCC_I2SCLKConfig+0x0): multiple definition of `RCC_I2SCLKConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_I2SCLKConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB1PeriphClockCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB1PeriphClockCmd+0x0): multiple definition of `RCC_AHB1PeriphClockCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB1PeriphClockCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB2PeriphClockCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB2PeriphClockCmd+0x0): multiple definition of `RCC_AHB2PeriphClockCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB2PeriphClockCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB3PeriphClockCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB3PeriphClockCmd+0x0): multiple definition of `RCC_AHB3PeriphClockCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB3PeriphClockCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_APB1PeriphClockCmd':
stm32f4xx_rcc.c:(.text.RCC_APB1PeriphClockCmd+0x0): multiple definition of `RCC_APB1PeriphClockCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_APB1PeriphClockCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_APB2PeriphClockCmd':
stm32f4xx_rcc.c:(.text.RCC_APB2PeriphClockCmd+0x0): multiple definition of `RCC_APB2PeriphClockCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_APB2PeriphClockCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB1PeriphResetCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB1PeriphResetCmd+0x0): multiple definition of `RCC_AHB1PeriphResetCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB1PeriphResetCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB2PeriphResetCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB2PeriphResetCmd+0x0): multiple definition of `RCC_AHB2PeriphResetCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB2PeriphResetCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB3PeriphResetCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB3PeriphResetCmd+0x0): multiple definition of `RCC_AHB3PeriphResetCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB3PeriphResetCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_APB1PeriphResetCmd':
stm32f4xx_rcc.c:(.text.RCC_APB1PeriphResetCmd+0x0): multiple definition of `RCC_APB1PeriphResetCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_APB1PeriphResetCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_APB2PeriphResetCmd':
stm32f4xx_rcc.c:(.text.RCC_APB2PeriphResetCmd+0x0): multiple definition of `RCC_APB2PeriphResetCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_APB2PeriphResetCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB1PeriphClockLPModeCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB1PeriphClockLPModeCmd+0x0): multiple definition of `RCC_AHB1PeriphClockLPModeCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB1PeriphClockLPModeCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB2PeriphClockLPModeCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB2PeriphClockLPModeCmd+0x0): multiple definition of `RCC_AHB2PeriphClockLPModeCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB2PeriphClockLPModeCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_AHB3PeriphClockLPModeCmd':
stm32f4xx_rcc.c:(.text.RCC_AHB3PeriphClockLPModeCmd+0x0): multiple definition of `RCC_AHB3PeriphClockLPModeCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_AHB3PeriphClockLPModeCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_APB1PeriphClockLPModeCmd':
stm32f4xx_rcc.c:(.text.RCC_APB1PeriphClockLPModeCmd+0x0): multiple definition of `RCC_APB1PeriphClockLPModeCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_APB1PeriphClockLPModeCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_APB2PeriphClockLPModeCmd':
stm32f4xx_rcc.c:(.text.RCC_APB2PeriphClockLPModeCmd+0x0): multiple definition of `RCC_APB2PeriphClockLPModeCmd'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_APB2PeriphClockLPModeCmd+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_ITConfig':
stm32f4xx_rcc.c:(.text.RCC_ITConfig+0x0): multiple definition of `RCC_ITConfig'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_ITConfig+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_ClearFlag':
stm32f4xx_rcc.c:(.text.RCC_ClearFlag+0x0): multiple definition of `RCC_ClearFlag'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_ClearFlag+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_GetITStatus':
stm32f4xx_rcc.c:(.text.RCC_GetITStatus+0x0): multiple definition of `RCC_GetITStatus'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_GetITStatus+0x0): first defined here
../stm32f4xx_rcc.o: In function `RCC_ClearITPendingBit':
stm32f4xx_rcc.c:(.text.RCC_ClearITPendingBit+0x0): multiple definition of `RCC_ClearITPendingBit'
stm32f4xx_rcc.o:stm32f4xx_rcc.c:(.text.RCC_ClearITPendingBit+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
gmake: *** [pwm_gen_and_direction_reversal.elf] Error 1
E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw\pil>echo The make command returned an error of 2
The make command returned an error of 2
E:\Research\CSD_course_TA\Matlab_files\stm32_codes\pwm_gen_and_direction_reversal_ert_rtw\pil>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
An error occurred while calling into the SIL or PIL target connectivity implementation.
Caused by:
Error(s) encountered while building "pwm_gen_and_direction_reversal":
### Failed to generate all binary outputs.
Component:Simulink | Category:Model error

Answers (1)

Vishal Bhutani
Vishal Bhutani on 8 Jan 2019
In your model does it have any serial communication or serial blocks?
The issue that you are facing might be caused by the Serial blocks which are included in the model. Serial communication is not supported with PIL.
Kindly comment out these blocks.
Hope it helps.

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!