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.
解決済! 解決策の投稿を見る。
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];
元の投稿で解決策を見る
Hello jespermadsen,
You can run into that function, and check the disassemble to confirm which code
made hardfault.
Regards,
Alice