AnsweredAssumed Answered

stm32f4 discovery / stm32-mat/target

Question asked by mueller.christia.004 on Nov 24, 2013
Latest reply on Nov 25, 2013 by reynaud.pascal
Hello,

I am trying to get my stm32f4 discovery working with the Matlab/Simulink package provided by ST.

I am currently using Matlab R2013a on Windows 8.
I am using Keil µVision 5 as toolchain.

At the moment I am trying to get an LED blinking. So I am using two blocks the GPIOD_Config and the GPIO_Write.

But when I am building the model I get the following errors:

###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: "D:\Benutzer\much1021\Documents\STMicroelectronics\STM32F4xx"\lib\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm
### Start compile .c source main.c
"main.c", line 41: Error:  #20: identifier "RT_MODEL_ledd13" is undefined
  extern RT_MODEL_ledd13 *const ledd13_M;
         ^
"main.c", line 72: Error:  #132: expression must have pointer-to-struct-or-union type
      rtmSetErrorStatus(ledd13_M, "Overrun");
      ^
main.c: 0 warnings, 2 errors
gmake: *** [main.o] Error 1
### Real-Time Workshop build procedure for method: 'error
### Real-Time Workshop build procedure for model: 'ledd13' aborted due to an error.
>>

Has someone had this problem too or knows how to fix it?

Thank You!

I got an update on my topic:

I changed to Keil µVision4 now it almost works fine.
But when I build my example µV4 only starts in debug mode.
Has anyone figured out how I can actually flash my processor?

Outcomes