Преглед на файлове

examples/cbor: keep newlib nano disabled in the example

CBOR parsing fails with newlib nano configuration, observed on ESP32-C2.

Closes IDFCI-1375
Mahavir Jain преди 3 години
родител
ревизия
0c09406173
променени са 2 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. 5 0
      examples/protocols/cbor/main/cbor_example_main.c
  2. 4 0
      examples/protocols/cbor/sdkconfig.defaults

+ 5 - 0
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.)

+ 4 - 0
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