Do you think that it is common for the function bellow (arraySize = 32) to take approximately 125us to execute? The for loop is the main problem as it takes almost 120us to execute.I am using STM32G474ret6u MCU, with clock at 170Mhz? Also the optimiz...
I have two functions to calculate the phase via DFT. In both functions, real and imaginary parts are first calculated, and then the phase is determined using different methods.The first function employs the standard atan2f function from the math.h to...
Hello,I am having a problem with simple line of code. If I run code bellow, the result seems off.//Main job of this code is to tranform hex into float
uint32_t hex = 0x3fc51eb8;
float f;
memcpy(&f, &hex, 4);If i go into Live Expressions i g...
This is really a basic question, but nevertheless I haven't found an answer.I am confused primarily about visualization of PB8 and PG10 pins inside CubeIDE MX.When I create new project I would expect PB8 and PG10 looking "yellow" and also being defin...
I am using NUCLEO - G474RE and I am trying to use HRTIM to output some PWM signals. HRTIM_CHA output signals voltage levels are fine (0 - 3.3V). The problem is that the voltage levels of HRTIM_CHB are off. By measuring CHB (PA10/PA11) signals I get P...
Crazy :D . The whole function execution time is now approximately 8us (before it was 126us), I am more than pleased with that :D. I double-checked because I couldn't believe it.Thank you.
Thank you for your answer.I can confirm that the CORDIC function indeed takes approximately 1us.The problem was in my time measurement approach. I was measuring execution time of a function with and without calling CORDIC function at the end.When I c...
I found out that everything works fine except maybe cubeIDE (Number format option in debug perspective). The problem is that there is something wrong with hex Number format. If the number format is set as Default, then floats have correct values. Is ...
Thank you for your answer. I found some decent explanation inside reference manual GPIO section, but i still dont understand it fully. How do you to set PB8 as GPIO?It is better explained aroud PG10 pin; If i want to use PG10 as GPIO I have to write ...