MATLAB Answers

0

ERROR: floating constant is out of range

Asked by Hai Nguyen on 5 May 2019
Latest activity Answered by Mike Hosea
on 7 May 2019
I have created a algorithm in Simulink. I tried to implement this model to TI TMS320F28379D LAUNCHXL board embedded target. When I try to build the model, I receive the following error messages.
Capture.JPG
This is one of the code segments that caused error
Capture1.JPG

  0 Comments

Sign in to comment.

1 Answer

Answer by Mike Hosea
on 7 May 2019
 Accepted Answer

That number is well within the range of IEEE double precision floating point numbers, but the TI TMS320F28379D has native 32bit IEEE single precision floating point. I'm not sure what the C compiler for it does with double precision data, but based on what you have shown, it doesn't seem to support IEEE double precision floating point, even in emulation. Try using single precision.

  0 Comments

Sign in to comment.