From 0c094061735cc8d3f833fdfbf01d8597f7c91e71 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Tue, 19 Jul 2022 10:24:43 +0530 Subject: [PATCH] examples/cbor: keep newlib nano disabled in the example CBOR parsing fails with newlib nano configuration, observed on ESP32-C2. Closes IDFCI-1375 --- examples/protocols/cbor/main/cbor_example_main.c | 5 +++++ examples/protocols/cbor/sdkconfig.defaults | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 examples/protocols/cbor/sdkconfig.defaults diff --git a/examples/protocols/cbor/main/cbor_example_main.c b/examples/protocols/cbor/main/cbor_example_main.c index 3807ce0e3d..5b5eeec9c1 100644 --- a/examples/protocols/cbor/main/cbor_example_main.c +++ b/examples/protocols/cbor/main/cbor_example_main.c @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ /* CBOR Example This example code is in the Public Domain (or CC0 licensed, at your option.) diff --git a/examples/protocols/cbor/sdkconfig.defaults b/examples/protocols/cbor/sdkconfig.defaults new file mode 100644 index 0000000000..845bb33ec3 --- /dev/null +++ b/examples/protocols/cbor/sdkconfig.defaults @@ -0,0 +1,4 @@ +# This example is not supported with newlib nano: +# - First 64-bit integers are not supported in newlib nano +# - There is also issue with `PRIu8` format specifier with newlib nano (observed on ESP32-C2, see IDFCI-1375) +CONFIG_NEWLIB_NANO_FORMAT=n