RTEMS | Work around STM32 H7 errata unsupported read access with unaligned address (#5110)
Karel Gardas (@kgardas)
gitlab at rtems.org
Fri Aug 9 19:43:03 UTC 2024
Karel Gardas commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5110#note_110798
Indeed, this is classical and well expected argument. Practice however shows that there is a single testcase from ~600 tests from RTEMS testsuite I compiled with and without the option which resulted in different binary completely. All others have the same text/bss/data sizes so assumption is do not differ or differ much. One different was tftpfs.
Anyway. AFIAK there is a no way how to decide if code is using FMC or it is not, besides looking into RTEMS configuration itself. E.g. once user set linkcmds.*sdram, then this is clear FMC is in use. On the other hand this is probably not easily detectable in ini itself....
So would you like to have configure option like: `STM32H7_ERRATA_ENABLE_FMC_282 = False/True` in ini file which would drive addition of -mno-unaligned-access option? Fine by me, but what would be default? Here I would really appreciate `True` as this is about stability and even ST itself recommends that! Once someone feels a need to be brave, then she/he can switch to `False` of course, but he/she will/should understand consequences well.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5110#note_110798
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240809/05828dea/attachment.htm>
More information about the bugs
mailing list