SVD fixes of FLASH registers for F2, F4 and F7 MCU
While recenting working on the FLASH peripheral for F2-F4-F7 devices (as their structure is pretty close), I noticed a few differences between the reference manuals and the device SVD. I'm not sure who's right and who's wrong in this situation (although I would tend to consider the RMs more reliable), but it would be great if both sources could be more coherent.
So here's the list for each register (non exhaustive, there may be some I haven't seen):
- OPTKEYR
- File named OPTKEYR in RMs while being named OPTKEY in SVD => almost all F2-F4-F7 devices
- OPTCR
- Field SPRMOD missing from SVD => 401, 411, 412, 413
- SR
- Field RDERR missing from SVD => 401, 410, 411, 412, 413, 427, 429, 437, 439, 722, 723, 732, 733
- Field named ERSERR in RMs while being named PGSERR in SVD => 746, 750, 756, 767, 769, 777, 778, 779
- CR
- Field named MER2 in RMs while being named MER1 in SVD => 765, 767, 769, 777, 778, 779
- Field named MER/MER1 in RMs while being named MER in SVD => 765, 767, 769, 777, 778, 779
- Globally, these fields are named MER1 & MER2 for F76x & F77x while being named MER & MER1 for F42x, F43x and F469. As I believe they share the same purpose, maybe the naming could be harmonize between the models
There are probably variants of the mentioned MCU that I haven't checked but that are certainly affected by the same problems.
Thanks for taking this into consideration !
