Hi all,
First post here after being a stalker for a long time. I’ve been using Xiao NRF52840’s for a long time and am working up a project that requires the 2Mb flash.
I’m seeing an issue trying to output all the data from the flash over bluetooth. It appears to be an incompatibility between the two libraries.
Has anyone successfully managed to connect via bluetooth and download from flash? I’m using non mbed board configs.
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:71:30: error: reference to 'File' is ambiguous
71 | static bool bdata_skip_field(File* file)
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:71:36: error: 'file' was not declared in this scope; did you mean 'File'?
71 | static bool bdata_skip_field(File* file)
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:80:25: error: variable or field 'bdata_write' declared void
80 | static void bdata_write(File* file, void const* buffer, uint16_t bufsize)
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:80:25: error: reference to 'File' is ambiguous
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:80:31: error: 'file' was not declared in this scope; did you mean 'File'?
80 | static void bdata_write(File* file, void const* buffer, uint16_t bufsize)
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:80:37: error: expected primary-expression before 'void'
80 | static void bdata_write(File* file, void const* buffer, uint16_t bufsize)
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:80:66: error: expected primary-expression before 'bufsize'
80 | static void bdata_write(File* file, void const* buffer, uint16_t bufsize)
| ^~~~~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp: In function 'void bond_save_keys_dfr(uint8_t, uint16_t, const bond_keys_t*)':
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:109:3: error: reference to 'File' is ambiguous
109 | File file(filename, FILE_O_WRITE, InternalFS);
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\cores\nRF5/common_inc.h:47,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\cores\nRF5/HardwarePWM.h:39,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\cores\nRF5/Arduino.h:58,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:37:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:110:10: error: 'file' was not declared in this scope; did you mean 'File'?
110 | VERIFY(file,);
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\cores\nRF5/verify.h:124:45: note: in definition of macro 'VERIFY_2ARGS'
124 | #define VERIFY_2ARGS(cond, _error) if (!(cond)) return _error;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:110:3: note: in expansion of macro 'VERIFY'
110 | VERIFY(file,);
| ^~~~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:113:16: error: 'file' was not declared in this scope; did you mean 'File'?
113 | bdata_write(&file, bkeys, sizeof(bond_keys_t));
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:113:3: error: 'bdata_write' was not declared in this scope
113 | bdata_write(&file, bkeys, sizeof(bond_keys_t));
| ^~~~~~~~~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp: In function 'bool bond_load_keys(uint8_t, ble_gap_addr_t*, bond_keys_t*)':
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:153:7: error: reference to 'File' is ambiguous
153 | File file(InternalFS);
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:154:11: error: 'file' was not declared in this scope; did you mean 'File'?
154 | if( file.open(filename, FILE_O_READ) )
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:166:7: error: 'file' was not declared in this scope; did you mean 'File'?
166 | file.close();
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:175:7: error: reference to 'File' is ambiguous
175 | File dir(dpath, FILE_O_READ, InternalFS);
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:176:7: error: reference to 'File' is ambiguous
176 | File file(InternalFS);
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:178:24: error: 'file' was not declared in this scope; did you mean 'File'?
178 | while ( !ret && (file = dir.openNextFile(FILE_O_READ)) )
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:178:31: error: 'dir' was not declared in this scope; did you mean 'div'?
178 | while ( !ret && (file = dir.openNextFile(FILE_O_READ)) )
| ^~~
| div
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:194:7: error: 'dir' was not declared in this scope; did you mean 'div'?
194 | dir.close();
| ^~~
| div
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp: In function 'void bond_save_cccd_dfr(uint8_t, uint16_t, const ble_gap_addr_t*)':
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:220:3: error: reference to 'File' is ambiguous
220 | File file(filename, FILE_O_WRITE, InternalFS);
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\cores\nRF5/common_inc.h:47,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\cores\nRF5/HardwarePWM.h:39,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\cores\nRF5/Arduino.h:58,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:37:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:221:10: error: 'file' was not declared in this scope; did you mean 'File'?
221 | VERIFY(file,);
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\cores\nRF5/verify.h:124:45: note: in definition of macro 'VERIFY_2ARGS'
124 | #define VERIFY_2ARGS(cond, _error) if (!(cond)) return _error;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:221:3: note: in expansion of macro 'VERIFY'
221 | VERIFY(file,);
| ^~~~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:223:3: error: 'file' was not declared in this scope; did you mean 'File'?
223 | file.seek(0); // write mode start at the end, seek to beginning
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:224:25: error: 'bdata_skip_field' cannot be used as a function
224 | bdata_skip_field(&file); // skip key
| ^
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:225:25: error: 'bdata_skip_field' cannot be used as a function
225 | bdata_skip_field(&file); // skip name
| ^
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:249:5: error: 'bdata_write' was not declared in this scope; did you mean 'do_write'?
249 | bdata_write(&file, sys_attr, len);
| ^~~~~~~~~~~
| do_write
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp: In function 'bool bond_load_cccd(uint8_t, uint16_t, const ble_gap_addr_t*)':
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:269:3: error: reference to 'File' is ambiguous
269 | File file(filename, FILE_O_READ, InternalFS);
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:270:8: error: 'file' was not declared in this scope; did you mean 'File'?
270 | if ( file )
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:272:27: error: 'bdata_skip_field' cannot be used as a function
272 | bdata_skip_field(&file); // skip key
| ^
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:273:27: error: 'bdata_skip_field' cannot be used as a function
273 | bdata_skip_field(&file); // skip name
| ^
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:289:3: error: 'file' was not declared in this scope; did you mean 'File'?
289 | file.close();
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp: In function 'void bond_print_list(uint8_t)':
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:301:3: error: reference to 'File' is ambiguous
301 | File dir(dpath, FILE_O_READ, InternalFS);
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:302:3: error: reference to 'File' is ambiguous
302 | File file(InternalFS);
| ^~~~
In file included from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS.h:33,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:38:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_LittleFS\src/Adafruit_LittleFS_File.h:41:7: note: candidates are: 'class Adafruit_LittleFS_Namespace::File'
41 | class File : public Stream
| ^~~~
In file included from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/arduino/msc/Adafruit_USBH_MSC.h:33,
from c:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/Adafruit_TinyUSB.h:80,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/services/BLEHidGeneric.h:45,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src/bluefruit.h:66,
from C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:42:
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\SdFat\src/SdFat.h:458:16: note: 'typedef class File32 File'
458 | typedef File32 File;
| ^~~~
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:304:12: error: 'file' was not declared in this scope; did you mean 'File'?
304 | while ( (file = dir.openNextFile(FILE_O_READ)) )
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:304:19: error: 'dir' was not declared in this scope; did you mean 'div'?
304 | while ( (file = dir.openNextFile(FILE_O_READ)) )
| ^~~
| div
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:306:55: error: 'bdata_skip_field' cannot be used as a function
306 | if ( !file.isDirectory() && bdata_skip_field(&file) ) // skip key
| ^
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:323:3: error: 'file' was not declared in this scope; did you mean 'File'?
323 | file.close();
| ^~~~
| File
C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Bluefruit52Lib\src\utility\bonding.cpp:324:3: error: 'dir' was not declared in this scope; did you mean 'div'?
324 | dir.close();
| ^~~
| div
Multiple libraries were found for "Adafruit_SPIFlash.h"
Used: C:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_SPIFlash
Not used: C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_SPIFlash
Multiple libraries were found for "Adafruit_TinyUSB.h"
Used: C:\Users\CTO_CAD\Documents\Arduino\libraries\Adafruit_TinyUSB_Library
Not used: C:\Users\CTO_CAD\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.8\libraries\Adafruit_TinyUSB_Arduino
exit status 1
Compilation error: exit status 1```