Simulink Make Error: MemUnit_T is undefined

조회 수: 1 (최근 30일)
Marc
Marc 2014년 4월 11일
댓글: AJ von Alt 2014년 4월 23일
Hello everyone,
i'm currently experimenting with an STM32F401 Discovery Board. I successfully installed the embedded Target files and want to try out some of the shipped PIL Demonstration models. I can get to the point where C-Files are created and make is being executed. Then i get an error (from the Compiler itself) saying MemUnit_T is undefined .
Has anyone ever had this type of error? I can't find a single result on google.
OS: Windows 8.1
MATLAB Version: R2014a (i actually downloaded it just yesterday)
Toolchain: KEIL MDK 5

채택된 답변

Marc
Marc 2014년 4월 23일
Thanks for the answer, at some point i had that quite figured out myself. The real problem behind this error is a little bit more though. Once i had the MemUnit_T thing figured out after a little expirementing, i decided to give the whole thing a try with R2013b and it worked like a charm. Apparently the ST Blocksets don't work with R2014a (yet?). It fails to copy almost all of the necessary .h files from the toolbox folder to the code generation target directory. That's what caused my initial issue aswell as the following ones.
little sidenote: KEIL uVision v5 works but you need to adjust several Flash- and Debugsettings. You're probably better off with version 4 at the moment.
tl;dr do not use a release higher than 2013b with the STM32F4 blocksets and go for uVision v4, not 5. that should solve most of the upcoming issues
  댓글 수: 1
AJ von Alt
AJ von Alt 2014년 4월 23일
That makes it sound like it might be a path issue.
Try:
restoredefaultpath
savepath
rehash toolboxcache
and restart MATLAB.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Pascal REYNAUD
Pascal REYNAUD 2014년 4월 22일
Hi Marc,
MemUnit_T is a preprocessor symbol that must be defined in your project settings.
You just have to add MemUnit_T=uint8_T to preprocessor symbol definition.
Best regards
pascal

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by