Skip to content

AnalogOut does not work for K64F #3999

@mray190

Description

@mray190

Description

  • Type: Bug
  • Priority: Blocker

AnalogOut does not work for the K64F from mbed-os version 5.2.3 to 5.4.1.
mbed-os version 5.2.2 has a working AnalogOut api.

AnalogOut constructor works, and no errors occur during runtime. But regardless of what value gets set to the AnalogOut pin, the value floats at 0.03V.


Example code

#include "mbed.h"

int main() {
    AnalogOut aout(DAC0_OUT);
    aout = 0;
    wait_ms(200);
    aout = 1.0f;
    wait_ms(200);
    aout = 0.0f;
}

Image below shows no output waveform:
image


Bug

Target
K64F

Toolchain:
GCC_ARM

Toolchain version:
gcc version 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496]

mbed-cli version:
1.0.0

meed-os sha:
cc58a7f

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