Search found 3 matches

by SteveF
Mon Jan 08, 2018 5:48 pm
Forum: Bug reports
Topic: Float type in LUT not working
Replies: 4
Views: 2609

Re: Float type in LUT not working

The define is in PIC16BIT_CAL_TypeDefs.c

the line..

typedef double MX_FLOAT; // In BoostC, needs '#define MX_FLOAT float'

This will be single precision unless you use the compiler switch, in which case it takes the double precision form according to the XC16 compiler.

If you select 'float' as a ...
by SteveF
Thu Jan 04, 2018 2:04 am
Forum: Bug reports
Topic: Float type in LUT not working
Replies: 4
Views: 2609

Re: Float type in LUT not working

Yes, that appeared to fix things, thanks.

A couple of other observations.

1. There seems to be a mixed use of float and double in the header files. From the 'add variables' perspective of FC7, only float is selectable. This declares 'double' precision floats (from what I can see anyway). In the ...
by SteveF
Thu Dec 21, 2017 2:55 pm
Forum: Bug reports
Topic: Float type in LUT not working
Replies: 4
Views: 2609

Float type in LUT not working

Hi,

Board : EB064, DsPic30F4013.

FC : 7.2.1.4

I've created a small LUT of type Float (Options on the component pulldown being 8, 16, 32bit or Float).

I then try to compile to Hex.

The compiler returns an error as follows..

expected '=',',',';','asm' or '__attribute__'before 'FCD_00fb1_lut1 ...