stm32-usbd-examples icon indicating copy to clipboard operation
stm32-usbd-examples copied to clipboard

Update STM32F303 example to latest versions

Open dlaw opened this issue 2 years ago • 0 comments

Hope this is helpful. I tested the updated example on my custom STM32F303CC-based board, and verified that it enumerates and echoes back uppercase characters when attached to a Linux host.

dlaw avatar Dec 06 '22 01:12 dlaw

Additionally, the buffers must not be placed in OCM. (That's not the same as a dcache-enabled region, right?)

astro avatar Sep 05 '20 20:09 astro

Do you mean 'CCM' (or 'DTCM' on STM32F7 and H7)? It's a bit more complicated: on STM32F4, you can't use the CCM ("core-coupled memory") for any DMA access; it's only accessible by the CPU so Ethernet (or any DMA) cannot read it. However on the F7 the DTCM is exposed to the main memory bus through the CPU, so the DMA engines can read it, but it's not a good use of the DTCM.

Both of those are totally distinct problems from not placing the buffers in a cacheable region, but typically both CCM and DTCM cannot be cached so at least you only suffer from one problem or the other.

adamgreig avatar Sep 05 '20 22:09 adamgreig