> Most STM32's, certainly F4, have HRTIM. That's not true. Only F3 and H7 have HRTIM. HRTIM is a timer dedicated to power electronics applications. You've probably confused advanced timers (TIM1/TIM8) with HRTIM, but these are completely different peripherals.
> The F3 is not a good point of comparison. It is like the F1 with a > Cortex-M4. There will be a lot of differences compared to any > contemporary parts. Compare instead with one of the F4's. I bet you > find they are not so different. I can't agree with this. G4 is basically F3 on steroids with more peripherals and some additional improvements that we can also find in new families (eg. DMAMUX). When the first manuals for G4 came out I did a comparison and from what I remember adding support to the existing arch/arm/src/stm32 looked easy. The main differences are in DMAMUX, RCC and PWR but these can be ported from G0/H7. If I can get B-G474E-DPOW1 discovery board, I'll try to help. I also don't think that comparing F3 with F1 is good. F3 was released after F4 and many peripherals were upgraded to newer revisions. For this reason, if we look at supported peripherals we can find more similarities between F1 and F4 than F1 and F3 (UART, I2C, PWM, ADC and more). L1, F1+F3 in a separate directory are a bad idea for me, but L1+F1 separation looks better. śr., 15 kwi 2020 o 06:07 Nathan Hartman <hartman.nat...@gmail.com> napisał(a): > On Tue, Apr 14, 2020 at 9:11 PM Gregory Nutt <spudan...@gmail.com> wrote: > > > > > > In reading about the STM32G4 family, someplace on the STmicro website, > > this > > > introductory page: > > > > > > > > > https://www.st.com/en/microcontrollers-microprocessors/stm32g4-series.html > > > > > > suggests that there's a "high degree of compatibility" with the stm32f3 > > > series. > > > > > > I opened the datasheet for one of the stm32f3 parts we support > > side-by-side > > > with a datasheet for one of the stm32g4, and just scrolling through > them, > > > it seems the g4 has a lot more in terms of peripherals, including a > high > > > resolution timer (HRTIM), more analog, more communication, various math > > > accelerators... > > > > Most STM32's, certainly F4, have HRTIM. Large number of peripherals is > > not a big issue; the issue is if the IP is the same for a give instance > > of the peripheral. > > > How do you know whether the IP is the same? By which, I mean: Is there a > better way than to study both datasheets and manually look for differences? > > More below... > > The F3 is not a good point of comparison. It is like the F1 with a > > Cortex-M4. There will be a lot of differences compared to any > > contemporary parts. Compare instead with one of the F4's. I bet you > > find they are not so different. > > > I'll look at that in the morning. > > More below... > > There are differences in STM32 peripherals already in > > arch/arm/src/stm32. If only a couple of peripherals differ, then they > > can still cohabitate. > > > > STM32L1 is supported in that directory and, in that case, I think it was > > a mistake. The L1 is far too different from the other members supported > > there (F1, F2, F3, F4). If I had it to do over, I would put L1, F1+F3, > > and L2+L4 in three directories. That is, I admit, my fault. I did all > > of those ports (at least initially) except for the L1. > > > It might be worthwhile to refactor that, if it will make supporting other > P/Ns easier and simplify the code. I haven't studied it in detail yet but > as I get further into this, I'll keep that possibility in mind. > > Thanks, > Nathan >