Replies: 3 comments 4 replies
-
|
Did not test it further, but saw hard faults and "Unknown USB Device" messages as well using the cdc & msc port example. CDC speeds achieved: 3.6Mbit/s with -O0 and 6.2Mbit/s with -O2 |
Beta Was this translation helpful? Give feedback.
-
|
Hi, please test increasing the delay loop of this errata workaround: |
Beta Was this translation helpful? Give feedback.
-
|
Did you check if the MCU is still running? Follwing will trigger a hard fault: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I'd like to preface this by saying that I'm very new to embedded firmware design, and I recently implemented tinyUSB on my board. I pretty much followed the Phil's Lab guide on this, and used the examples provided in the repository as the basis of most of my code. This has worked very well for me so far, being able to send my IMU data over USB to my PC. However, today I decided to turn on ICACHE to gain more performance/speed out of my STM32H chip, and in doing so learned that turning on ICACHE (without any changes to my functional codebase) in both 1 way and 2 way modes would just make my COM ports disappear. Normally this shows up:

However, with the enable of ICACHE, I would initially get nothing after flashing and resetting, and then I would hear a Windows sound afterwards, followed by Device Manager refreshing 2-3 times to give me a USB device that said: "Unknown USB Device" with the message "Device Descriptor Request Failed". Reverting back (disabling ICACHE) fixed all problems and my COM ports come back.
I'm using VSCode for my STM32 development (the project was generated in CubeMX with the CMAKE toolchain). I followed their guide on the website for their STM32 extension, and development has been going decently with this setup.
Here's the links to my hardware (PCB) and my firmware (note that the firmware in the hardware repository is out of date and completely unused):
https://github.com/LtBrain/astrum
https://github.com/LtBrain/astrum-firmware
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions