-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
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:
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