From e7cbed07e0ca39578325123adfc4355f95ba2d6d Mon Sep 17 00:00:00 2001 From: Oleksandr Grytsov Date: Fri, 9 Feb 2018 18:54:49 +0200 Subject: [PATCH] [samr21] fix gcc 7 compilation issue and update README.md (#2552) * [samr21] add conditional -Wno-expansion-to-defined for GCC7 (#2548) Signed-off-by: Oleksandr Grytsov * [samr21] update README.md (#2548) Signed-off-by: Oleksandr Grytsov --- examples/platforms/samr21/Makefile.am | 1 + examples/platforms/samr21/README.md | 14 +++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/examples/platforms/samr21/Makefile.am b/examples/platforms/samr21/Makefile.am index fb1125f0f..17ae78ca9 100644 --- a/examples/platforms/samr21/Makefile.am +++ b/examples/platforms/samr21/Makefile.am @@ -91,6 +91,7 @@ libopenthread_samr21_a_CPPFLAGS -Werror \ -Wno-unused-parameter \ -Wno-implicit-function-declaration \ + -Wno-expansion-to-defined \ -fno-strict-aliasing \ $(NULL) diff --git a/examples/platforms/samr21/README.md b/examples/platforms/samr21/README.md index c814c2891..421bfdeaf 100644 --- a/examples/platforms/samr21/README.md +++ b/examples/platforms/samr21/README.md @@ -36,21 +36,17 @@ $ ./script/bootstrap $ unzip asf-standalone-archive-3.35.1.54.zip $ cp xdk-asf-3.35.1 -rf /third_party/microchip/asf ``` -3. SAM R21 Xplained Pro board doesn't have IEEE extended address assigned. It should be -assigned before build. In this example IEEE address is assigned by setting -CONF_IEEE_ADDRESS macro in `conf_board.h`. If you use few SAM R21 Xplained Pro boards -for test, make sure that each board has individual IEEE address. - -4. This example can be built for other SAMR21 based modules. For example [ATSAMR21G18-MR21][MODULE-MR21], +3. This example can be built for other SAMR21 based modules. For example [ATSAMR21G18-MR21][MODULE-MR21], [ATSAMR21B18-MZ21][MODULE-MZ21]. To build for these modules set SAMR21_BOARD=USER_BOARD and SAMR21_CPU=\_\_SAMR21XXXX\_\_ in `examples/samr21/Makefile.am`. Then -configure peripherals in `user_board.h`. For these modules IEEE address is stored at special -address in ROM. IEEE address is read from this location if CONF_IEEE_ADDRESS macro is not set. +configure peripherals in `third_party/microchip/include/user_board.h`. +For these modules IEEE address is stored at special address in ROM and retreived +from this location if CONF_IEEE_ADDRESS macro is not set. [MODULE-MR21]: http://www.atmel.com/Images/Atmel-42475-ATSAMR21G18-MR210UA_Datasheet.pdf [MODULE-MZ21]: http://www.atmel.com/images/Atmel-42486-atsamr21b18-mz210pa_datasheet.pdf -5. Build OpenThread Firmware (CLI example) on SAMR21 platform. +4. Build OpenThread Firmware (CLI example) on SAMR21 platform. ```bash $ cd