You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AutoConnectPageImpl.hpp:1001:20: error: there are no arguments to 'spi_flash_get_chip_size' that depend on a template parameter, so a declaration of 'spi_flash_get_chip_size' must be available [-fpermissive]
#613
Open
huster-songtao opened this issue
Nov 2, 2023
· 2 comments
\AutoConnect\examples\mqttRSSI_FS
open mqttRSSI_FS.ino and build, it throw exceptions:
In file included from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:14,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectExt.hpp:15,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectExtImpl.hpp:13,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnect.h:15,
from D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:39:
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp: In static member function 'static uint32_t AutoConnectCore::_getFlashChipRealSize()':
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:20: error: there are no arguments to 'spi_flash_get_chip_size' that depend on a template parameter, so a declaration of 'spi_flash_get_chip_size' must be available [-fpermissive]
1001 | return (uint32_t)spi_flash_get_chip_size();
| ^~~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:20: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino: At global scope:
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:55:69: note: '#pragma message: Warning, LED_BUILTIN is undefined. Assumes Pin #2.'
55 | #pragma message("Warning, LED_BUILTIN is undefined. Assumes Pin #2.")
| ^
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp: In instantiation of 'static uint32_t AutoConnectCore::_getFlashChipRealSize() [with T = AutoConnectConfigExt; uint32_t = long unsigned int]':
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1242:38: required from 'String AutoConnectCore::_token_FLASH_SIZE(PageArgument&) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1647:50: required from 'PageElement* AutoConnectCore::_setupPage(String&) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:1447:29: required from 'bool AutoConnectCore::_classifyHandle(HTTPMethod, String) [with T = AutoConnectConfigExt; HTTPMethod = http_method]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:1093:44: required from 'void AutoConnectCore::_startWebServer() [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:260:7: required from 'bool AutoConnectCore::begin(const char*, const char*, long unsigned int) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:74:15: required from 'bool AutoConnectCore::begin() [with T = AutoConnectConfigExt]'
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:450:15: required from here
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:43: error: 'spi_flash_get_chip_size' was not declared in this scope
1001 | return (uint32_t)spi_flash_get_chip_size();
| ~~~~~~~~~~~~~~~~~~~~~~~^~
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered:
\AutoConnect\examples\mqttRSSI_FS
open mqttRSSI_FS.ino and build, it throw exceptions:
In file included from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:14,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectExt.hpp:15,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectExtImpl.hpp:13,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnect.h:15,
from D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:39:
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp: In static member function 'static uint32_t AutoConnectCore::_getFlashChipRealSize()':
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:20: error: there are no arguments to 'spi_flash_get_chip_size' that depend on a template parameter, so a declaration of 'spi_flash_get_chip_size' must be available [-fpermissive]
1001 | return (uint32_t)spi_flash_get_chip_size();
| ^~~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:20: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino: At global scope:
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:55:69: note: '#pragma message: Warning, LED_BUILTIN is undefined. Assumes Pin #2.'
55 | #pragma message("Warning, LED_BUILTIN is undefined. Assumes Pin #2.")
| ^
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp: In instantiation of 'static uint32_t AutoConnectCore::_getFlashChipRealSize() [with T = AutoConnectConfigExt; uint32_t = long unsigned int]':
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1242:38: required from 'String AutoConnectCore::_token_FLASH_SIZE(PageArgument&) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1647:50: required from 'PageElement* AutoConnectCore::_setupPage(String&) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:1447:29: required from 'bool AutoConnectCore::_classifyHandle(HTTPMethod, String) [with T = AutoConnectConfigExt; HTTPMethod = http_method]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:1093:44: required from 'void AutoConnectCore::_startWebServer() [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:260:7: required from 'bool AutoConnectCore::begin(const char*, const char*, long unsigned int) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:74:15: required from 'bool AutoConnectCore::begin() [with T = AutoConnectConfigExt]'
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:450:15: required from here
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:43: error: 'spi_flash_get_chip_size' was not declared in this scope
1001 | return (uint32_t)spi_flash_get_chip_size();
| ~~~~~~~~~~~~~~~~~~~~~~~^~
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered: