arm_common_tables.h

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

arm_common_tables.h

Post by mobyfab »

Hey,

I'm making some tests with the CM4 DSP library and found that the various tables in the arm_common_tables.h file included in chibios are incorrect.

Code: Select all

extern const uint16_t armBitRevTable[1024];
extern const q15_t armRecipTableQ15[64];
extern const q31_t armRecipTableQ31[64];
extern const q31_t realCoefAQ31[1024];
extern const q31_t realCoefBQ31[1024];
extern const float32_t twiddleCoef[6144];
extern const q31_t twiddleCoefQ31[6144];
extern const q15_t twiddleCoefQ15[6144];


instead of

Code: Select all

extern uint16_t armBitRevTable[1024]; 
extern q15_t armRecipTableQ15[64];
extern q31_t armRecipTableQ31[64];
extern const q31_t realCoefAQ31[1024];
extern const q31_t realCoefBQ31[1024];


Was there a purpose for this modification ?

Reverting the file to the original one from ARM does fix the problem.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: arm_common_tables.h

Post by Giovanni »

It is not a modification, all the files come from the same CMSIS version without changes.

Giovanni
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: arm_common_tables.h

Post by mobyfab »

It appears the dsp lib from ST differs from ARM's.

Thanks.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: arm_common_tables.h

Post by Giovanni »

It is possible but I can't put ST-specific files there. The solution would be to not put the math headers at all into the build path.

Giovanni
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: arm_common_tables.h

Post by mobyfab »

No worries, I am now using the official ARM library instead of ST's. (linking against's the static library instead of compiling ST's)

Seems like the performance is a bit better. ST uses 1.0.10 and latest from ARM is 1.1.0

Good to know there is a difference though :)
Post Reply