You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include"mbed.h"// Note: using USBTX and USBRX seems to cause issues when trying to read// This might be caused by stdio or my hardware.
Serial serial(USBTX, USBRX);
intmain()
{
serial.write(reinterpret_cast<constuint8_t *>("Hello world!"), sizeof("Hello world"), 0, 0);
}
Connect to the device's serial port
Start the device
Result
"ello world!" is received on the other end of the serial connection.
Expected result
"Hello world" should be recieved on the other end of the serial connection.
Environment
Tested on the NINA-B112 module with UBLOX_EVK_NINA_B1 target, but this issue
should exist on all targets overriding the NRF5 target.
Originaly found on mbed-os 5.4 (f4864dc), bug still exists in master.
The text was updated successfully, but these errors were encountered:
seppestas
changed the title
Async serial write doesn't send first character and reads past length on NRF5 target
NRF5: Async serial write doesn't send first character and reads past length
Mar 23, 2017
Because of an off-by-one error in the serial_api of the NRF5 target the first character of the
buffer
is not sent and data atbuffer[length]
is accessed when using theSerial.Read
function.Steps to reproduce
Result
"ello world!" is received on the other end of the serial connection.
Expected result
"Hello world" should be recieved on the other end of the serial connection.
Environment
Tested on the NINA-B112 module with UBLOX_EVK_NINA_B1 target, but this issue
should exist on all targets overriding the
NRF5
target.Originaly found on mbed-os 5.4 (f4864dc), bug still exists in master.
The text was updated successfully, but these errors were encountered: