@TDK, Sorry I should have mentioned that even using the "arm_cmplx_mag_q31", I am still not getting the correct maxIndex in line19. I might be missing some stuff here and there and I am having doubt on the fixed point conversion or using wrong DSP Fu...