Link to CMSIS-DSP with optimization to size don't work

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Link to CMSIS-DSP with optimization to size don't work

ソリューションへジャンプ
1,660件の閲覧回数
jespermadsen
Contributor III

I'm using MCUXpresso IDE v11.2.1 and made a project for LPC_11xx with lpcopen and CMSIS-DSP.

when I change the optimization to size i get a hardfault when it calls the CMSIS-DSP arm_fir_fast_q15 function.

Seems to work at the -O3 optimization.

 

0 件の賞賛
返信
1 解決策
1,647件の閲覧回数
jespermadsen
Contributor III

I found out that the fir data has to be aligned with 4 bytes:

static __attribute__((aligned(4))) q15_t firStateQ15[BLOCK_SIZE + NUM_TAPS - 1];

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,640件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello jespermadsen,

You can run into that function, and check the disassemble to confirm which code

made hardfault.

 

 

Regards,

Alice

 

         

0 件の賞賛
返信
1,648件の閲覧回数
jespermadsen
Contributor III

I found out that the fir data has to be aligned with 4 bytes:

static __attribute__((aligned(4))) q15_t firStateQ15[BLOCK_SIZE + NUM_TAPS - 1];

0 件の賞賛
返信