AnsweredAssumed Answered

Matlab dont create the Model

Question asked by guenther.stefan on Dec 12, 2013
Latest reply on Dec 12, 2013 by reynaud.pascal
Greetings

I try too generate build a model with the ST_mat_libary in Simulink. Bevor I generate my own model, I Try the examples from ST Microelektronik. But if I build these Models I get the following errors. I tried this with windows8.1, Matlab 2013b, Keil 5.0.5  and the STM32MatTarget_3.0.

What can I do?

Thank you

Stefan




C:\STMicroelectronics\STM32F4xx\STM32F4xxdemos\Test\ButtonAndLeds_stm32F4xx>"C:\Program Files\MATLAB\R2013b\bin\win64\gmake" -f ButtonAndLeds.mk  GENERATE_ASAP2=0 STM32TARGET="STM32F4xxx" TOOLPATHFROMREGISTRY=1 DONGLE="STLinkV2" COMPILERSETTINGS="--cpu Cortex-M4.fp -c -g -O0 -DARM_MATH_CM4 -DSTM32F4XX -DUSE_STDPERIPH_DRIVER --apcs=interwork --split_sections --c99" LINKERSETTINGS="--cpu Cortex-M4.fp --map --list=$(MODEL)_KEIL_$(BOOT_MODE).map --scatter $(LDDIR)\$(STM32TARGET).sct --scanlib " ASSEMBLERSETTINGS="--via $(LDDIR)\asm.cmd" DOWNLOADAPPLICATION=1 SIMULATION_MODE_RP="NO_PIL" TARGET_SRCS="system_stm32f4xx.c stm32f4xx_gpio.c stm32f4xx_rcc.c stm32f4xx_flash.c stm32f4xx_pwr.c " SYSTEM_SRCS="stm32f4xx_it.c " STARTUP_SRCS="startup_stm32f4xx.s"  
###Makefile for KEIL 
###BuildMode : real_time MODELREF_TARGET_TYPE=NONE SIMULATION_MODE_RP=NO_PIL MAKEFILEBUILDER_TGT=0 STANDALONE_SUPPRESS_EXE=0 
###Startup file: startup_stm32f4xx.o  
###Startup path: "C:\STMICR~1\STM32F~1"\lib\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm 
### Start compile .c source ButtonAndLeds_data.c 
"C:\Keil\ARM\ARMCC\bin\..\include\core_cmInstr.h", line 115: Error:  #20: identifier "__STATIC_INLINE" is undefined 
  __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) 
                                          ^ 
"C:\Keil\ARM\ARMCC\bin\..\include\core_cmInstr.h", line 115: Error:  #101: "uint32_t" has already been declared in the current scope 
  __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) 
                                                                ^ 
"C:\Keil\ARM\ARMCC\bin\..\include\core_cmInstr.h", line 115: Error:  #65: expected a ";" 
  __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) 
                                                                         ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 239: Warning:  #12-D: parsing restarts here after previous syntax error 
  } APSR_Type; 
             ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 248: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t ISR:9;                      /*!< bit:  0.. 8  Exception number                   */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 249: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t _reserved0:23;              /*!< bit:  9..31  Reserved                           */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 251: Error:  #757: variable "uint32_t" is not a type name 
    uint32_t w;                            /*!< Type      used for word access                  */ 
    ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 261: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t ISR:9;                      /*!< bit:  0.. 8  Exception number                   */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 265: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t _reserved0:7;               /*!< bit:  9..15  Reserved                           */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 266: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t GE:4;                       /*!< bit: 16..19  Greater than or Equal flags        */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 267: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t _reserved1:4;               /*!< bit: 20..23  Reserved                           */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 269: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t T:1;                        /*!< bit:     24  Thumb bit        (read 0)          */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 270: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t IT:2;                       /*!< bit: 25..26  saved IT state   (read 0)          */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 271: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t Q:1;                        /*!< bit:     27  Saturation condition flag          */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 272: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t V:1;                        /*!< bit:     28  Overflow condition code flag       */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 273: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t C:1;                        /*!< bit:     29  Carry condition code flag          */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 274: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t Z:1;                        /*!< bit:     30  Zero condition code flag           */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 275: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t N:1;                        /*!< bit:     31  Negative condition code flag       */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 277: Error:  #757: variable "uint32_t" is not a type name 
    uint32_t w;                            /*!< Type      used for word access                  */ 
    ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 287: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t nPRIV:1;                    /*!< bit:      0  Execution privilege in Thread mode */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 288: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t SPSEL:1;                    /*!< bit:      1  Stack to be used                   */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 289: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t FPCA:1;                     /*!< bit:      2  FP extension active flag           */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 290: Error:  #757: variable "uint32_t" is not a type name 
      uint32_t _reserved0:29;              /*!< bit:  3..31  Reserved                           */ 
      ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 292: Error:  #757: variable "uint32_t" is not a type name 
    uint32_t w;                            /*!< Type      used for word access                  */ 
    ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 308: Error:  #757: variable "uint32_t" is not a type name 
    __IO uint32_t ISER[8];                 /*!< Offset: 0x000 (R/W)  Interrupt Set Enable Register           */ 
         ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 309: Error:  #757: variable "uint32_t" is not a type name 
         uint32_t RESERVED0[24]; 
         ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 310: Error:  #757: variable "uint32_t" is not a type name 
    __IO uint32_t ICER[8];                 /*!< Offset: 0x080 (R/W)  Interrupt Clear Enable Register         */ 
         ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 311: Error:  #757: variable "uint32_t" is not a type name 
         uint32_t RSERVED1[24]; 
         ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 312: Error:  #757: variable "uint32_t" is not a type name 
    __IO uint32_t ISPR[8];                 /*!< Offset: 0x100 (R/W)  Interrupt Set Pending Register          */ 
         ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 313: Error:  #757: variable "uint32_t" is not a type name 
         uint32_t RESERVED2[24]; 
         ^ 
"C:/STMicroelectronics/STM32F4xx/lib/CMSIS/Include/core_cm4.h", line 314: Error:  #757: variable "uint32_t" is not a type name 
    __IO uint32_t ICPR[8];                 /*!< Offset: 0x180 (R/W)  Interrupt Clear Pending Register        */ 
         ^ 
ButtonAndLeds_data.c: 1 warning, 30 errors 

Outcomes