-
-
Notifications
You must be signed in to change notification settings - Fork 212
mbed::PwmOut 2.2.0 -> 2.3.1 with Portenta H7 #293
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
Comments
Hi @MarcoRBosco, thanks for reporting this.
Now, your sketch should just work, so I'm investigating and I'll report back as soon as I have an answer |
I have to amend my comment, in fact the frequency you are requesting is 200Hz, so the HRTIM can't reach it. |
@facchinm thank you for your fast reply. I think it would be great if documentation can be improved at least indicate which timer is attached to each PWM channel. We are currently working on a project (PCB already build) were we do not use PK1, but we are using PA8 with frequencies up to 200 Hz, so we need PA8 connected to a TIM. I'm still not familiarized with mbed os. It is possible to create a |
If you have a linux installation, rebuilding the mbed library is very easy.
You can then replace the original |
Hi @MarcoRBosco If you only need low frequency PWM, would you like to try Portenta_H7_Slow_PWM Library to see if it's working for your use-case. |
This has been really frustrating to deal with. I had no idea the timers were so... un managed in the H7. I need to implement some rather basic interrupt compatible state machines with PWM outputs, as my basis for a project. But I'm working through these PWM libraries lost because I have no idea what pins on the breakout even map to! |
Hi @jonwhick for the pin mapping you can check this table https://github.com/arduino-libraries/Arduino_PortentaBreakout#peripherals-table |
### Problem with
mbed::PwmOut
with Portenta H7IDE: Arduino IDE 1.8.15
Board: Portenta H7 and Portenta Breakout board
mbed::PwmOut
was working perfectly in ArduinoCore-mbed2.2.0
but since update2.3.1
it is not possible to make two PWM channels work simultaneously. Not yet tested with more channels.Test sketch:
Output results with version
2.2.0
in pins PWM0 (yellow) and PWM1 (blue):Output results with version
2.3.1
in pins PWM0 (yellow) and PWM1 (blue):As we can see PWM0 channel is not generating the setted pulse.
Please let me know if you need more information or help.
The text was updated successfully, but these errors were encountered: