mbed-os/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2
Naveen Kaje 28c63ec0f3 NRF52: serial_api: Use polling for putc
There are scenarios where putc is called within a critical section, e.g
to log ASSERTs in early initialization code. The interrupts being
disabled here prevents the handlers for the UARTE from executing.
This breaks the tx_in_progress flag based approach. The tx_in_progress
never gets reset. Poll on the TXDRDY instead.

It can be recreated with a simple program as shown here:

*************** Current Behavior ****************
++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: F

************** With Fix *************************

++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: Fatal Run-time error
Location: 0x2C0A9
Error Value: 0x0
Current Thread: Id: 0x20005520 Entry: 0x30EBF StackSize: 0x1000 StackMem: 0x20004520 SP: 0x20005490
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF0100
-- MbedOS Error Info --
nrf failure at .\main.cpp:22
***************************************************
2018-09-09 16:33:30 -05:00
..
TARGET_SOFTDEVICE_COMMON Nordic BLE: remove unecessary nordic ble libraries. 2018-05-15 14:51:19 +01:00
TARGET_SOFTDEVICE_NONE Flash storage for NRF52 2018-04-19 09:40:41 -07:00
TARGET_SOFTDEVICE_S112 NRF52832 and NRF52840 upgraded to Nordic SDK 14 and SoftDevice 5.0 2018-04-19 09:40:41 -07:00
TARGET_SOFTDEVICE_S132_FULL NRF5x: Fix config of LFCLK source / settings. 2018-08-22 13:55:28 +10:00
TARGET_SOFTDEVICE_S132_MBR Add NRF52 support for building bootloader and updateable firmware 2018-05-17 07:32:09 -07:00
TARGET_SOFTDEVICE_S132_OTA NRF5x: Fix config of LFCLK source / settings. 2018-08-22 13:55:28 +10:00
TARGET_SOFTDEVICE_S140_FULL NRF5x: Fix config of LFCLK source / settings. 2018-08-22 13:55:28 +10:00
TARGET_SOFTDEVICE_S140_MBR Add NRF52 support for building bootloader and updateable firmware 2018-05-17 07:32:09 -07:00
TARGET_SOFTDEVICE_S140_OTA NRF5x: Fix config of LFCLK source / settings. 2018-08-22 13:55:28 +10:00
boards NRF52832 and NRF52840 upgraded to Nordic SDK 14 and SoftDevice 5.0 2018-04-19 09:40:41 -07:00
device NRF52832 and NRF52840 upgraded to Nordic SDK 14 and SoftDevice 5.0 2018-04-19 09:40:41 -07:00
drivers_nrf NRF52: serial_api: Use polling for putc 2018-09-09 16:33:30 -05:00
libraries Nordic: Fix nrf sections on ARMCC 2018-06-06 17:18:28 +01:00