Question
stm32f4 discovery / stm32-mat/target
Posted on November 24, 2013 at 12:36
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: ♯♯&sharpMakefile for KEIL ♯♯&sharpBuildMode : real_time MODELREF_TARGET_TYPE=NONE SIMULATION_MODE_RP=NO_PIL MAKEFILEBUILDER_TGT=0 STANDALONE_SUPPRESS_EXE=0 ♯♯&sharpStartup file: startup_stm32f4xx.o ♯♯&sharpStartup 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: &sharp20: identifier ''RT_MODEL_ledd13'' is undefined extern RT_MODEL_ledd13 *const ledd13_M; ^ ''main.c'', line 72: Error: &sharp132: 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? #stm32 #discovery #mat/target