This tutorial shows how to reference libraries from your Arduino projects. We will create a basic project, reference several existing libraries and create a new one from scratch. We will also explain how the Arduino build tools automatically locate the referenced libraries and go over the project settings that affect library discovery.
Before you begin, install VisualGDB 5.5 Preview 2 or later.
CRC32 crc; crc.update("Test"); uint32_t result = crc.finalize();
CRC32 crc; crc.update("Test"); uint32_t result = crc.finalize();
https://github.com/stm32duino/STM32Ethernet
https://github.com/stm32duino/STM32Ethernet
C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe -prefs=com.sysprogs.extraflags="-ggdb" -compile -logger=machine -fqbn=STM32:stm32:GenF4:pnum=DIYMORE_F407VGT,upload_method=swdMethod,xserial=generic,usb=none,xusb=FS,opt=osstd,rtlib=nano -build-path C:\tutorials\visualgdb\Arduino\ArduinoLibraryDemo\Output\Generic_STM32F4_series\Debug -unoptimize=sketch -hardware "C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/hardware" -hardware C:\Users\virtual.SYSPROGS\Documents/ArduinoData/packages -tools "C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/tools-builder" -tools C:\Users\virtual.SYSPROGS\Documents/ArduinoData/packages -libraries C:\Users\virtual.SYSPROGS\Documents/Arduino/Libraries -libraries C:\tutorials\visualgdb\Arduino\ArduinoLibraryDemo\..\Libraries -prefs=runtime.tools.STM32Tools.path=C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\tools\STM32Tools\1.3.1 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\tools\arm-none-eabi-gcc\8.2.1-1.7 sketches/ArduinoLibraryDemo.ino A subdirectory or file C:\tutorials\visualgdb\Arduino\ArduinoLibraryDemo\Output\Generic_STM32F4_series\Debug\sketch already exists. C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:75:15: error: 'ETH_DMADescTypeDef' does not name a type; did you mean 'RTC_DateTypeDef'? __ALIGN_BEGIN ETH_DMADescTypeDef DMARxDscrTab[ETH_RXBUFNB] __ALIGN_END;/* Ethernet Rx MA Descriptor */ ^~~~~~~~~~~~~~~~~~ RTC_DateTypeDef C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:80:15: error: 'ETH_DMADescTypeDef' does not name a type; did you mean 'RTC_DateTypeDef'? __ALIGN_BEGIN ETH_DMADescTypeDef DMATxDscrTab[ETH_TXBUFNB] __ALIGN_END;/* Ethernet Tx DMA Descriptor */ ^~~~~~~~~~~~~~~~~~ RTC_DateTypeDef In file included from C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/STM32F4xx/stm32f4xx_hal_conf.h:13, from C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:30, from C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:250, from C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\cores\arduino/stm32/stm32_def.h:34, from C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:48: C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/STM32F4xx/stm32f4xx_hal_conf_default.h:227:40: error: 'ETH_MAX_PACKET_SIZE' was not declared in this scope #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ ^~~~~~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:85:44: note: in expansion of macro 'ETH_RX_BUF_SIZE' __ALIGN_BEGIN uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE] __ALIGN_END; /* Ethernet Receive Buffer */ ^~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/STM32F4xx/stm32f4xx_hal_conf_default.h:227:40: note: suggested alternative: 'ETH_TX_BUF_SIZE' #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ ^~~~~~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:85:44: note: in expansion of macro 'ETH_RX_BUF_SIZE' __ALIGN_BEGIN uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE] __ALIGN_END; /* Ethernet Receive Buffer */ ^~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/STM32F4xx/stm32f4xx_hal_conf_default.h:228:40: error: 'ETH_MAX_PACKET_SIZE' was not declared in this scope #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */ ^~~~~~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:90:44: note: in expansion of macro 'ETH_TX_BUF_SIZE' __ALIGN_BEGIN uint8_t Tx_Buff[ETH_TXBUFNB][ETH_TX_BUF_SIZE] __ALIGN_END; /* Ethernet Transmit Buffer */ ^~~~~~~~~~~~~~~
C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe -prefs=com.sysprogs.extraflags="-ggdb" -compile -logger=machine -fqbn=STM32:stm32:GenF4:pnum=DIYMORE_F407VGT,upload_method=swdMethod,xserial=generic,usb=none,xusb=FS,opt=osstd,rtlib=nano -build-path C:\tutorials\visualgdb\Arduino\ArduinoLibraryDemo\Output\Generic_STM32F4_series\Debug -unoptimize=sketch -hardware "C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/hardware" -hardware C:\Users\virtual.SYSPROGS\Documents/ArduinoData/packages -tools "C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/tools-builder" -tools C:\Users\virtual.SYSPROGS\Documents/ArduinoData/packages -libraries C:\Users\virtual.SYSPROGS\Documents/Arduino/Libraries -libraries C:\tutorials\visualgdb\Arduino\ArduinoLibraryDemo\..\Libraries -prefs=runtime.tools.STM32Tools.path=C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\tools\STM32Tools\1.3.1 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\tools\arm-none-eabi-gcc\8.2.1-1.7 sketches/ArduinoLibraryDemo.ino A subdirectory or file C:\tutorials\visualgdb\Arduino\ArduinoLibraryDemo\Output\Generic_STM32F4_series\Debug\sketch already exists. C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:75:15: error: 'ETH_DMADescTypeDef' does not name a type; did you mean 'RTC_DateTypeDef'? __ALIGN_BEGIN ETH_DMADescTypeDef DMARxDscrTab[ETH_RXBUFNB] __ALIGN_END;/* Ethernet Rx MA Descriptor */ ^~~~~~~~~~~~~~~~~~ RTC_DateTypeDef C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:80:15: error: 'ETH_DMADescTypeDef' does not name a type; did you mean 'RTC_DateTypeDef'? __ALIGN_BEGIN ETH_DMADescTypeDef DMATxDscrTab[ETH_TXBUFNB] __ALIGN_END;/* Ethernet Tx DMA Descriptor */ ^~~~~~~~~~~~~~~~~~ RTC_DateTypeDef In file included from C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/STM32F4xx/stm32f4xx_hal_conf.h:13, from C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:30, from C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:250, from C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\cores\arduino/stm32/stm32_def.h:34, from C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:48: C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/STM32F4xx/stm32f4xx_hal_conf_default.h:227:40: error: 'ETH_MAX_PACKET_SIZE' was not declared in this scope #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ ^~~~~~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:85:44: note: in expansion of macro 'ETH_RX_BUF_SIZE' __ALIGN_BEGIN uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE] __ALIGN_END; /* Ethernet Receive Buffer */ ^~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/STM32F4xx/stm32f4xx_hal_conf_default.h:227:40: note: suggested alternative: 'ETH_TX_BUF_SIZE' #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ ^~~~~~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:85:44: note: in expansion of macro 'ETH_RX_BUF_SIZE' __ALIGN_BEGIN uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE] __ALIGN_END; /* Ethernet Receive Buffer */ ^~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\ArduinoData\packages\STM32\hardware\stm32\1.7.0\system/STM32F4xx/stm32f4xx_hal_conf_default.h:228:40: error: 'ETH_MAX_PACKET_SIZE' was not declared in this scope #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */ ^~~~~~~~~~~~~~~~~~~ C:\Users\virtual.SYSPROGS\Documents\Arduino\Libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:90:44: note: in expansion of macro 'ETH_TX_BUF_SIZE' __ALIGN_BEGIN uint8_t Tx_Buff[ETH_TXBUFNB][ETH_TX_BUF_SIZE] __ALIGN_END; /* Ethernet Transmit Buffer */ ^~~~~~~~~~~~~~~
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4