Hello, tell me why there is no standard library "STSW-STM32065" in plug-ins? Attempt to add the archive en.stm32f4_dsp_stdperiph_lib to the PaÑk installer did not lead to success. I understand that you can add the required files to the pens, but this is not always convenient.
Your reasoning reminded me of the case: In the distant 1993, when I was training two programming teachers wrote a program for IBM 286 and a driver for a disk drive. There were 256 kilobytes of RAM. So these two teachers could not share the memory and one talked about expanding the memory in the computer and the second said that you need to write the program correctly! and everything will turn out ... Ultimately, two programs appeared on the market, one needed only 100 kilobytes of RAM and the second program needed 300 kilobytes of RAM, they performed the same functions, but the speed of execution was different. Everything always depends on the tasks that you or you have set. If you need to write quickly and not very expensive, then the program is written and then the microcontroller that pulls it out is selected ... and if you need fast and high-quality products for a specific microcontroller, then you'll excuse all possible tricks to go even in writing the code in the asm. For limitations of the type of microcontroller limits both in memory and in speed. And what about HAL then look at the code carefully! everywhere control where necessary and not necessary, everywhere the return of the state and much more that slows down the program. I do not mind HAL but on the tasks and means I choose.