You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.
Pwm timers on STM32F072 are broken on some Gpio pins. The following example works perfectly for Output C9 on STMF072-Discovery, but generates no Pwm output when I use Output B1:
#include<xpcc/architecture/platform.hpp>usingnamespacexpcc::stm32;// ----------------------------------------------------------------------------intmain()
{
Board::initialize();
GpioOutputC9::connect(Timer3::Channel4);
// set up the timer for 16bit PWMTimer3::enable();
Timer3::setMode(Timer3::Mode::UpCounter);
Timer3::setPrescaler(1);
Timer3::setOverflow(65535);
// configure the output channelsTimer3::configureOutputChannel(4, Timer3::OutputCompareMode::Pwm, 0);
Timer3::applyAndReset();
// start the timerTimer3::start();
Timer3::setCompareValue(4, 20000);
while (1)
{
}
return0;
}
This could be related to alternate function remapping.
@salkinium: We would really appreciate to have Pwm working on STM32F072 at the German Eurobot competition this weekend ;-)
The text was updated successfully, but these errors were encountered:
Details: The pins PA2, PA3, PA6, PA7, PB0 and PB1 are not connected to the pinouts by default. To enable this we had to close the solderbridges SB27-SB32. However be aware of the routing of these pins on the PCB to the capacitive touch sensors, which include resistors and capacitors, and may influence the waveform on these pins.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Pwm timers on STM32F072 are broken on some Gpio pins. The following example works perfectly for Output C9 on STMF072-Discovery, but generates no Pwm output when I use Output B1:
This could be related to alternate function remapping.
@salkinium: We would really appreciate to have Pwm working on STM32F072 at the German Eurobot competition this weekend ;-)
The text was updated successfully, but these errors were encountered: