cancel
Showing results for 
Search instead for 
Did you mean: 

STM32-MAT/TARGET ADC PIL demos not linking

BTrem
Associate II

Hi,

Using Windows 7,

MATLAB R2018b,

STM32-MAT/TARGET 4.4.2

uVision V5.22.0.0

I'M trying the STM32-MAT\STM32\STM32demos\PIL\ADC\TestAdc.slx Simulink Model. The model Build ok in Simulink but when it arrive in uVision it don't link and I have those messages:

linking...

TestPilAdc\TestPilAdc.axf: Error: L6218E: Undefined symbol CA_TestPilAdc_ActHW (referred from coder_assumptions_app.o).

TestPilAdc\TestPilAdc.axf: Error: L6218E: Undefined symbol CA_TestPilAdc_ExpHW (referred from coder_assumptions_app.o).

TestPilAdc\TestPilAdc.axf: Error: L6218E: Undefined symbol CA_TestPilAdc_HWRes (referred from coder_assumptions_app.o).

TestPilAdc\TestPilAdc.axf: Error: L6218E: Undefined symbol CA_TestPilAdc_PWSRes (referred from coder_assumptions_app.o).

TestPilAdc\TestPilAdc.axf: Error: L6218E: Undefined symbol TestPilAdc_caRunTests (referred from coder_assumptions_app.o).

Not enough information to list image symbols.

Finished: 1 information, 0 warning and 5 error messages.

"TestPilAdc\TestPilAdc.axf" - 5 Error(s), 0 Warning(s).

Where can I define those variables?

Regards,

Bruno

1 REPLY 1
Cyril FENARD
ST Employee

Hi @BTrem​ ,

This problem is not reproduced with the version 5.1.0 of STM32-MAT/TARGET, published end of July 2019.

The compilation is ok and execution also with F429ZITx @180Mhz, USART1.

Regards.

Cyril

PS: Build output

*** Using Compiler 'V5.06 update 2 (build 183)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'

Build target 'TestPilAdc'

assembling startup_stm32f429xx.s...

compiling stm32f4xx_hal_msp.c...

compiling main.c...

compiling stm32f4xx_it.c...

compiling stm32f4xx_hal_timebase_tim.c...

compiling stm32f4xx_hal_adc_ex.c...

compiling stm32f4xx_hal_adc.c...

compiling stm32f4xx_hal_tim_ex.c...

compiling stm32f4xx_hal_uart.c...

compiling stm32f4xx_hal_tim.c...

compiling stm32f4xx_hal_rcc.c...

compiling stm32f4xx_hal_rcc_ex.c...

compiling stm32f4xx_hal_flash.c...

compiling stm32f4xx_hal_gpio.c...

compiling stm32f4xx_hal_flash_ex.c...

compiling stm32f4xx_hal_flash_ramfunc.c...

compiling stm32f4xx_hal_pwr.c...

compiling stm32f4xx_hal_dma.c...

compiling stm32f4xx_hal_dma_ex.c...

compiling stm32f4xx_hal_pwr_ex.c...

compiling stm32f4xx_hal_cortex.c...

compiling stm32f4xx_hal.c...

compiling stm32f4xx_hal_exti.c...

compiling TestPilAdc.c...

compiling system_stm32f4xx.c...

compiling const_params.c...

compiling look1_iflf_binlxpw.c...

compiling coder_assumptions_flt.c...

compiling coder_assumptions_hwimpl.c...

compiling TestPilAdc_ca.c...

compiling xil_interface_lib.c...

compiling xil_data_stream.c...

compiling xil_services.c...

compiling xilcomms_rtiostream.c...

compiling xil_rtiostream.c...

compiling rtiostream_utils.c...

compiling coder_assumptions_app.c...

compiling coder_assumptions_data_stream.c...

compiling coder_assumptions_rtiostream.c...

compiling TestPilAdc_ADC.c...

compiling xil_interface.c...

compiling xil_instrumentation.c...

compiling STM32SerialRtiostream-Rtiostream.c...

compiling codeinstr_data_stream.c...

compiling codeinstr_rtiostream.c...

compiling STM32SerialRtiostream-ProfilerTimer.c...

linking...

Program Size: Code=15488 RO-data=33368 RW-data=188 ZI-data=1724 

FromELF: creating hex file...

"TestPilAdc\TestPilAdc.axf" - 0 Error(s), 0 Warning(s).

Build Time Elapsed: 00:01:07