Replies: 5 comments 8 replies
-
I see some redundant point here:
See
|
Beta Was this translation helpful? Give feedback.
-
Ahhh, not as good as I expected, but much better than before. |
Beta Was this translation helpful? Give feedback.
-
Currently the USB IP (dcd_dwc2) used in STM32H7 doesn't has DMA support, so the speed is bottlenecked in High-Speed mode. You can read benchmark details in #920, TLDR somebody got 4.5MB/s in echo test with a STM32F429 so about 9MB/s in one direction. I'm working on DMA support in #2576 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi all,
So, the speed problem can be mitigated with the point 2. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am trying to send images from my board to my Mac.
My hardware: Portenta H7 (stm32H747 dual core @ 480-MHz) with the external PHY.
I simply modified the embedded example proposed in the package (video_capture).
In the configuration I set in this way (to used HS and ISO)
#define CFG_TUSB_MCU OPT_MCU_STM32H7
#define STM32H747xx 1
#define CFG_TUSB_OS OPT_OS_CUSTOM
#define BOARD_TUD_RHPORT 1
#define BOARD_TUD_MAX_SPEED OPT_MODE_HIGH_SPEED
#define CFG_TUD_MAX_SPEED. BOARD_TUD_MAX_SPEED
#define CFG_TUD_ENDPOINT0_SIZE 64
#define CFG_TUD_VIDEO 1
#define CFG_TUD_VIDEO_STREAMING 1
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE 256
#define CFG_TUD_VIDEO_STREAMING_BULK 0
#define CFG_EXAMPLE_VIDEO_READONLY
#define CFG_EXAMPLE_VIDEO_DISABLE_MJPEG
So, what I check the USB device on the Mac I can see that it uses 480-Mb/s
Now, I tried to send images of 752 x 480 pixels. The xfer is fine, I can see the images on my Mac, but the speed is really slow (about 2 images per second)!! So, the number of byte to send due to the image coding is 752 x 480 x 2 = 721920. As I have mentioned, I am able to send 2 images per second, that means, the channel allow ~ 1.5 MBits / second.
Of course, something is wrong. Does someone has suggestions? Maybe my settings are wrong and for any reasons I am using FS instead of HS. How to figureout the problem?
Best regards
Edo
Beta Was this translation helpful? Give feedback.
All reactions