-
Notifications
You must be signed in to change notification settings - Fork 1.3k
STM32: Add STM32F4Discovery support #2570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-Authored-By: Scott Shawcroft <[email protected]>
…circuitpython into stm32-loader-linkers
maybe we can call it STM32F407 Discovery although its official name is only STM32F4 Discovery . TinyUSB does support f407, in fact this is one of the first board I used to tested with STM32 port, here is its BSP However, F407 USB FS only has 4 pairs of endpoints, including control endpoints. Which means we can only have CDC ( 2 IN + 1 OUT) and MSC ( 1 IN + 1 OUT) only. Could you skip the hid, midi to see if that work. Else I will try to help troubleshoot this issue on Monday, |
@hathach Thanks for the info - this build is already only using CDC and MSC as per mpconfigboard.mk, so I don't believe that's it. One of the lines returned by the debugger is this: |
Here are IDs:
|
My preference is to follow the official name even though it is ambiguous. @hierophect Please add the new board to the board list to fix the test. |
@hathach the
|
I'm now getting this same issue on the Espruino, but it doesn't occur on fresh feather builds, so I'm really puzzled as to what's up. |
Found it, was just an oscillator oversight. Sorry for the trouble. |
@tannewt this is tested and ready for review. |
@tannewt ping: ready for re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you!
This PR adds support to the STM32F4 Discovery board (a bit confusingly named, possibly because it was the first Discovery?). This board runs an STM32F407VG MCU with 1MB of flash and 192K of SRAM, and has a nearly identical pin layout to the STM32F411 Discovery board (this board adds the PB11 pin to replace an NC pin). Requires #2568 for some linker stuff.
Todos for this PR:
I'm not sure what the USB issue is - possibly a lack of Tusb support for the F407?