This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Calling Device_cal from C in F28377D

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28377D

Hi

TMS320F28377D: Since V130 of device_support of ControlSuite Device_cal is defined in F2837xD_Examples.h as

#define Device_cal (void   (*)(void))0x070282

Any ideas how to call it in C?

If I write:

(*Device_cal)();

the compiler does translate this to

MOVL         XAR7, #0x070282
LCR          *XAR7

The end of the function (found at 07035c) is LRET  (and not LRETR)

So I must use a LC to call this function and not LCR.

Thank you for your ideas!

Roger