AnsweredAssumed Answered

User defined Simulink block (from C)

Question asked by Raghu Rajappa on Jul 12, 2018
Latest reply on Jul 12, 2018 by Raghu Rajappa

Hi,

Hardware: MPC5643L + Daughter board + Mother board XPC56xx EVB.
Software: Simulink + Green Hills v5.1.7 compiler + Serial interface (RappID). Using MPC56xL RBA file (to internal RAM)

Intention is to create a simple GPIO 'output' simulink block from C code. I know a GPIO output block already exists. But the intention is to get a feel for C code to custom simulink blocks. For now, I am using S-function builder. Attached are the errors as screenshots.
I tried to read a lot of "how to" documents on how to go from C to Simulink but it's still not completely clear in my head. Especially when I want to make a block that will later again be generated into C code to be flashed on the target MPC controller.

Please help me create a simple simulink block from C code.

P.S -> The other problem is NXP has p-coded all the files that have the actual implementation. It would have been easier if I could have been able to read the code.

Thank you

Outcomes