unicore-mx
unicore-mx copied to clipboard
*usbd_dwc_otg:misaligned membuf
provided load/store ep fifo with unaligned transfer membuffer.
now memory buffer of transfer can be unaligned with negligible price.
! :last bytes store - fixed loose of last loaded from fifo bytes caused by memcopy call otimisation on keil ARMcc.
Are you trying to fix a [single] compiler specific bug in the library?
No, i`ve try to improove FS driver to use misaligned transfers for HS with DMA usage - it is useless
@alexrayne All uC that have this periph have support for unaligned memory access. What is the point of optimization?
imo If you write a comment noting the above assumption (unaligned memory access supported is assumed), that would be better.
well, if you`re are wright - it easy to check, just read uint32 from adress xxxx01, and look at HardFault on ARM CM4