-
Notifications
You must be signed in to change notification settings - Fork 3k
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
NRF52 Can not initialize Pwm #7743
Comments
Why that error is happening ? Based on the referenced commit, I would assume that previously it was happening , it was just silenced ? |
During pwm initialization we check if no other object of current pwm is already initialized
The problem is since nref asserts were redirected to mbed error (2ba88ba),
now returns an error because:
was changed to:
It was silenced. When we initialize object first time, then this thing: nrf_drv_pwm_uninit(&nordic_nrf5_pwm_instance[obj->instance]); I think the problem is pwmout_api, because this function nrf_drv_pwm_uninit(&nordic_nrf5_pwm_instance[obj->instance]); |
@MateuszMaz Can you fix it ? |
here is pr #7779 |
What is the status of this? I have been unable to use PwmOut on nRF5X platforms up til now (causes a "fatal error" immediately). This is quite a severe issue. |
@AGlass0fMilk Does #7779 fixes the issues you are having? |
#7779 is intended to fix it for nrf52832 and nrf52840 |
Deleted lines that caused the problem. Note that, in nrf_drv_pwm_init there are lines that check if pwm instance is already running, so we don't even need to check it in nordic_pwm_init. nrf_drv_uninit should be used in nordic_pwm_restart.
Mbed OS 5.9.7 release notes links to this issue as "fixed". Consider closing. |
Internal Jira reference: https://jira.arm.com/browse/IOTDEV-1598 |
Description
After following commit: 2ba88ba, that was made soon after mbed-os-5.9.0 it is no longer possible to create an object of PwmOut class for device NRF52832. The error exist in every version of mbed-os since 5.9.1 to current 1ab05c2.
Mbed error string:
Target:
NRF52832
Mbed-OS SHA
current master: 1ab05c2
Toolchain
GCC_ARM 7 2018-q2-update
Steps to reproduce
Issue request type
[ ] Question
[ ] Enhancement
[x] Bug
The text was updated successfully, but these errors were encountered: