Which variant of STM32 on PlatformIO with UP Xtreme

Hi,
I'm trying to use the HardwareTimer Library by stm32duino on the integrated STM32 of the UpBoard Xtreme i7, to generate a PWM signal. Unfortunately the proposed board variant to use in PlatformIO is a bluepill board (https://github.com/up-board/up-communit ... Xtreme_MCU) which does not seem to be correct, as they have different external oscillator frequencies and therefore the HardwareTimer Library outputs a PWM signal with a wrong frequency e.g. duty cycle. To fix this I would have to define a new board variant according to this discussion here (https://www.stm32duino.com/viewtopic.php?f=7&t=1515&p=9724#p9724) . I was wondering if something like this already exists and if someone had the same issue before? Or if somebody more experienced could explain to me how to exactly define a new board variant.
Thanks in advance!
Matthias
Answers
-
Hello @mrubio
Sorry for the problem you have encountered.
There was a mistake in the documentation (where early version of the board used a 12MHz oscillator), but we have now updated the tutorial to use the right settings: https://github.com/up-board/up-community/wiki/Pinout_Xtreme_MCU#platformio-projects
You won't need a variant as it is the same as a Bluepill
Please let me know if it works for you.
Tagged
Categories
- 301 All Categories
- 104 Announcements & News
- 51 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 52 Unboxing & Project Sharing
- 24 Tech Updates
- 548 UP Products
- 1 UP Xtreme i12
- UP Squared Pro 7000
- 1 UP Element i12 Edge
- 10 UP Squared V2
- 25 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 44 UP Squared Pro
- 140 UP Xtreme
- 819 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral