Question
how to properly cast ushort to float in Cortex M4 MCU
Hello
I have DMA ADC and store data in uint16_t buffer
I need to copy these values to input buffer to arm_rfft_fast_f32 function;
the function should also cast ushort to float
void copy_adc_to_input(uint16_t * int_buff, float32_t * float_buff, uint16_t size)
{
for(int i = 0; i < size; i++)
{
float_buff[i] = (float32_t)int_buff[i];
}
}
it seems to be working on STM32F7 mcu but goes crazy on STM32F303
any suggestions ???
