Skip to content

NRF5x: Uninitalized variable in gpio_api leads to wrong configured GPIO. #13176

@supertoast

Description

@supertoast

Description of defect

The function gpio_apply_config in gpio_api of NRF5x using a variable with uninitalized memory witch leads to wrong configured GPIO. The member skip_gpio_setup is not initalized, so in our case the configuration of the pull up resistor was sometimes not applied.
[Source]

Target(s) affected by this defect ?

We use a custom board with NRF52832. I think all targets with this MCU are affected.

Toolchain(s) (name and version) displaying this defect ?

GCC for Arm (gcc-arm-none-eabi-9-2019-q4-major)

What version of Mbed-os are you using (tag or sha) ?

mbed-os-5.15.4

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli 1.10.2

How is this defect reproduced ?

The error occurs randomly because the memory is uninitialized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions