unicore-mx icon indicating copy to clipboard operation
unicore-mx copied to clipboard

*usbd_dwc_otg:misaligned membuf

Open alexrayne opened this issue 8 years ago • 4 comments

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.

alexrayne avatar Dec 19 '16 22:12 alexrayne

Are you trying to fix a [single] compiler specific bug in the library?

kuldeepdhaka avatar Mar 23 '17 08:03 kuldeepdhaka

No, i`ve try to improove FS driver to use misaligned transfers for HS with DMA usage - it is useless

alexrayne avatar Mar 23 '17 11:03 alexrayne

@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.

kuldeepdhaka avatar Mar 23 '17 22:03 kuldeepdhaka

well, if you`re are wright - it easy to check, just read uint32 from adress xxxx01, and look at HardFault on ARM CM4

alexrayne avatar Mar 23 '17 22:03 alexrayne