FlashStoreAndRetrieve example code - NVMCTRL_CTRLB_Type::<unnamed>' has no member named 'MANW'

Hi,
the example code FlashStoreAndRetrieve for the Wio Terminal does not compile. Tested with OSX and Windows (clean install) and toolchain 1.8.2, 1.8.1, 1.7.9

Library/Arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD “-D__SKETCH_NAME__=”"“FlashStoreAndRetrieve.ino”""" -DF_CPU=120000000L -DARDUINO=10819 -DARDUINO_WIO_TERMINAL -DARDUINO_ARCH_SAMD -D__SAMD51P19A__ -DWIO_TERMINAL -DSEEED_WIO_TERMINAL -DSEEED_GROVE_UI_WIRELESS -D__SAMD51__ -DUSB_VID=0x2886 -DUSB_PID=0x802D -DUSBCON -DUSB_CONFIG_POWER=100 “-DUSB_MANUFACTURER=“Seeed Studio”” “-DUSB_PRODUCT=“Seeed Wio Terminal”” -DROLE=1 -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/TinyUSB -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DTXRXLED_ENABLE -DROLE=1 -Os -DVARIANT_QSPI_BAUD_DEFAULT=50000000 -D__SAMD51P19A__ -DWIO_TERMINAL -DSEEED_WIO_TERMINAL -DSEEED_GROVE_UI_WIRELESS -D__SAMD51__ -DUSB_VID=0x2886 -DUSB_PID=0x802D -DUSBCON -DUSB_CONFIG_POWER=100 “-DUSB_MANUFACTURER=“Seeed Studio”” “-DUSB_PRODUCT=“Seeed Wio Terminal”” -DROLE=1 -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/TinyUSB -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -I/Users/josch/Library/Arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/Users/josch/Library/Arduino15/packages/Seeeduino/tools/CMSIS/5.7.0/CMSIS/DSP/Include/ -I/Users/josch/Library/Arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1/CMSIS-Atmel/CMSIS/Device/ATMEL/ -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/variants/wio_terminal -I/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/libraries/FlashStorage/src /Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/libraries/FlashStorage/src/FlashStorage.cpp -o /var/folders/8l/vv_2_3x53y55_s48wkfb3lxw0000gn/T/arduino_build_935704/libraries/FlashStorage/FlashStorage.cpp.o
/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/libraries/FlashStorage/src/FlashStorage.cpp: In member function ‘void FlashClass::write(const volatile void*, const void*, uint32_t)’:
/Users/josch/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.2/libraries/FlashStorage/src/FlashStorage.cpp:55:22: error: ‘volatile struct NVMCTRL_CTRLB_Type::’ has no member named ‘MANW’
NVMCTRL->CTRLB.bit.MANW = 1;
^~~~

Hello, can you tell me the link of Wiki, I will arrange the test and feedback to solve the problem as soon as possible, thank you.

Hello, the FlashStorage Library (v.0.5.0) supplied with the WIO Terminal SDK 1.8.2 does not support the SAMD51 chip properly. There is a newer working version (1.0.0) on Github.