Hi! I'm making kind of funny project here:
* https://github.com/joric/ts80player
Managed to run both Arduno platforms:
* https://github.com/stm32duino/Arduino_Core_STM32 (I call it STM32duino, is it a proper naming?)
* https://github.com/rogerclarkmelbourne/Arduino_STM32 (this one by Roger Clark I just call it Arduino_STM32)
I'm mostly using the latter because there are more PWM examples in the wild and it builds much faster.
The issue is I can't make USB mass storage run without external crystal (HSE). Miniware has not fitted a crystal in any of their irons.
In the same time, the very same hardware runs USB bootloader just perfectly (I upload hex files made in Arduino IDE via USB). Also the very same mass storage example runs just fine on Bluepill that has external crystal I just change Nucleo configuration to "w/crystal".
TL;DR:
* TS80 has no HSE, uses "Nucleo F103 at 64 MHz" - can't run USB mass storage example (Device Descriptor Request Failed)
* Bluepill has HSE, uses "Nucleo F103 at 72 MHz w/ crystal" - runs USB mass storage example perfectly
Does anyone have any idea how to fix USBComposite library or boards_setup.cpp and set timings properly so USB could work without HSE? I know it needs 48 Mhz to work but there's no 1/3 divider. USB bootloader still works somehow.
References:
* https://github.com/joric/ts80player/wiki/Arduino_STM32
* https://github.com/rogerclarkmelbourne/ ... boards.txt
* https://github.com/rogerclarkmelbourne/ ... _setup.cpp
* https://github.com/rogerclarkmelbourne/ ... s/mass.ino
Upd. I've used f_cpu=48000000L, BOARD_RCC_PLLMUL RCC_PLLMUL_12 and RCC_USB_SYSCLK_DIV_1 and it works!
ts80player
Return to “Let us know a bit about you and your projects”
Jump to
- Announcements
- New users start here
- ↳ Forum rules, FAQs and HowTo's
- ↳ Let us know a bit about you and your projects
- Arduino for STM32
- ↳ General discussion
- ↳ Ideas & suggestions
- ↳ Cores
- ↳ STM32 Core
- ↳ Builds and Announcements
- ↳ Code snippets
- ↳ Ideas & suggestions
- ↳ General discussion
- ↳ Installation and OS related
- ↳ Libraries & Hardware
- ↳ PR's bugs and enhancements
- ↳ LibMaple
- ↳ Builds and Announcements
- ↳ Code snippets
- ↳ General discussion
- ↳ Ideas & suggestions
- ↳ Installation and OS related
- ↳ Libraries & Hardware
- ↳ PR's bugs and enhancements
- ↳ Steve's LibMaple core
- ↳ General discussion
- ↳ PR's bugs and enhancements
- ↳ Projects
- ↳ IDE's
- ↳ Off topic
- Arduino for STM8
- ↳ General discussion
- ↳ Cores
- ↳ STM8 Core
- ↳ Other
- Boards
- ↳ Custom design boards
- ↳ Maple & Maple mini etc
- ↳ STM boards (Discovery, Eval, Nucleo, ...)
- ↳ All other boards
- ↳ STM32F0 based boards
- ↳ STM32F1 based boards
- ↳ STM32F2 based boards
- ↳ STM32F3 based boards
- ↳ STM32F4 based boards
- ↳ STM32F7 based boards
- ↳ STM32G0 based boards
- ↳ STM32G4 based boards
- ↳ STM32H7 based boards
- ↳ STM32L0 based boards
- ↳ STM32L1 based boards
- ↳ STM32L4 based boards
- ↳ STM32L5 based boards
- ↳ STM32MP1 based boards
- ↳ STM32WB based boards
- Bootloaders
- ↳ STM32 HID bootloader
- ↳ USB bootloader
- ↳ STM32 SD-Bootloader
- ↳ STM32 USB CDC bootloader
- Uploaders and debuggers
- ↳ STLink
- ↳ USB to Serial adaptors
- ↳ Black Magic Probe & other
- Dead Thread Graveyard
- ↳ Dead Thread Graveyard