MATLAB Answers

How to write at specific memory location of C2000 using Matlab Function in Siumulink Embedded Coder?

5 views (last 30 days)
Currently I am using "Memory Copy" block of Embeded Coder Support Package for Texas Instrumnets C2000 Processors to write at or to read from peripheral registers of F2837xD devices. Is it possible to do the same with 'MATLAB function block'? If yes, then what is the code to do the same?

  0 Comments

Sign in to comment.

Accepted Answer

Venkatesh Chilapur
Venkatesh Chilapur on 25 Jun 2019
Hi Sumit,
One apporach is to define the register access in a 'c' function in a 'c' source file.
You can then call this function from Matlab Function block using ceval Matlab routine.
Make sure to add this 'c' source file in the custom code section. - Look for 'Specify Source Code and Dependencies' at link below:
HTH,
Regards,
Venkatesh C

  0 Comments

Sign in to comment.

More Answers (0)