Skip to content

NRF52 Can not initialize Pwm #7743

@MateuszMaz

Description

@MateuszMaz

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:

++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: Fatal Run-time error
Location: 0x3683D
Error Value: 0x0
Current Thread: Id: 0x2000534C Entry: 0x32D45 StackSize: 0x1000 StackMem: 0x20005398 SP: 0x200062C8
-- MbedOS Error Info --
nrf failure at .\mbed-os\targets\TARGET_NORDIC\TARGET_NRF5x\TARGET_SDK_14_2\drivers_nrf\pwm\nrf_drv_pwm.c:192

Target:
NRF52832
Mbed-OS SHA
current master: 1ab05c2
Toolchain
GCC_ARM 7 2018-q2-update

Steps to reproduce

  1. Create a new mbed program
  2. checkout mbed-os to 1ab05c2
  3. Create main.cpp with following declaration PwmOut led(LED1);
  4. Run and read error from terminal

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions