Why can't I boot my embedded coder program from flash when it uses Model references?

2 views (last 30 days)
I'm using Embedded Coder to Run a program I created with Simulink 2017b and Stateflow on a TI Delfino 2833 board. To organize, modularize and reuse the software I'm creating for this proyect I divided it into 6 diferent simulink model files that reference each other using model references. Also I do it so i can use Git. I The only settings that are not default are the ones for I2C.
When I deploy my software to the board without the checkbox "Boot from flash" under Model Configuration Parameters -> Hardware Implementation -> Target Hardware Resources, It works perfectly. However, when I check that checkbox to load the program onto flash, the program no longer works. There is no error message, but when I turn on the board it doesn't do anything (It doesn't output The signals it should be outputting automatically and it doesn't react to inputs).
However, if I just replace the model references with subsystems by copy-pasting the contents of the other files into the main one, booting from flash works fine. It is the same program, just in one single simulink file.
Why does this happen? Do Model References somehow use up more resources? Is there a way to fix it?
If not, what alternatives are there to modularize and reuse Simulink software?
  1 Comment
omer cakmak
omer cakmak on 5 Aug 2019
Hi Lucas;
Did you find an answer or solution to this problem? If yes, could you please share with us?
Best regards;
Ömer Ç.

Sign in to comment.

Answers (0)

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!