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
I am trying to run one of the EPD examples on a few different STM32 boards and am not able to build.
Arduino board: STM32F405 Feather
Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.19
List the steps to reproduce the problem below (if possible attach a sketch or copy the sketch code in too):
I ran the following using the 2.13" 250x122 Tri-Color eInk FeatherWing
Open the EPDTest sketch
Uncomment line 27 to select the 2.13 Tri-Color (ThinkInk_213_Tricolor_RW display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);)
Select the STM32F405 Feather
Click Verify/build
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp: In member function 'void Adafruit_ACEP::deGhost()':
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:132:53: error: no matching function for call to 'min(uint32_t&, unsigned int)'
132 | uint32_t numbytes = min(remaining, sizeof(block));
| ^
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp: In member function 'void Adafruit_UC8151D::displayPartial(uint16_t, uint16_t, uint16_t, uint16_t)':
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:308:55: error: no matching function for call to 'min(unsigned int, uint32_t&)'
308 | uint8_t to_xfer = min(sizeof(mcp_buf), remaining);
| ^
In file included from /Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/algorithm:62,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring_constants.h:26,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring.h:34,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/Arduino.h:36,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_MCPSRAM.h:1,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_EPD.h:27,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.h:4,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:1:
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algo.h:3479:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
3479 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algo.h:3479:5: note: template argument deduction/substitution failed:
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:132:53: note: mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
132 | uint32_t numbytes = min(remaining, sizeof(block));
| ^
In file included from /Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/algorithm:62,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring_constants.h:26,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring.h:34,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/Arduino.h:36,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_MCPSRAM.h:1,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_EPD.h:27,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.h:4,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:1:
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algo.h:3479:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
3479 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algo.h:3479:5: note: template argument deduction/substitution failed:
In file included from /Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/algorithm:62,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring_constants.h:26,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring.h:34,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/Arduino.h:36,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_MCPSRAM.h:1,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_EPD.h:27,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.h:4,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:1:
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algo.h:3473:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
3473 | min(initializer_list<_Tp> __l)
| ^~~
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algo.h:3473:5: note: template argument deduction/substitution failed:
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:132:53: note: mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
132 | uint32_t numbytes = min(remaining, sizeof(block));
| ^
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:308:55: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned int'
308 | uint8_t to_xfer = min(sizeof(mcp_buf), remaining);
| ^
In file included from /Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/algorithm:62,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring_constants.h:26,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring.h:34,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/Arduino.h:36,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_MCPSRAM.h:1,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_EPD.h:27,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.h:4,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:1:
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algo.h:3473:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
3473 | min(initializer_list<_Tp> __l)
| ^~~
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algo.h:3473:5: note: template argument deduction/substitution failed:
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:308:55: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned int'
308 | uint8_t to_xfer = min(sizeof(mcp_buf), remaining);
| ^
In file included from /Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/algorithm:61,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring_constants.h:26,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring.h:34,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/Arduino.h:36,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_MCPSRAM.h:1,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_EPD.h:27,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.h:4,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:1:
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed:
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:132:53: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int')
132 | uint32_t numbytes = min(remaining, sizeof(block));
| ^
In file included from /Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/algorithm:61,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring_constants.h:26,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring.h:34,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/Arduino.h:36,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_MCPSRAM.h:1,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_EPD.h:27,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.h:4,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:1:
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_ACeP.cpp:132:53: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int')
132 | uint32_t numbytes = min(remaining, sizeof(block));
| ^
In file included from /Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/algorithm:61,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring_constants.h:26,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring.h:34,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/Arduino.h:36,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_MCPSRAM.h:1,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_EPD.h:27,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.h:4,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:1:
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed:
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:308:55: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'uint32_t' {aka 'long unsigned int'})
308 | uint8_t to_xfer = min(sizeof(mcp_buf), remaining);
| ^
In file included from /Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/algorithm:61,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring_constants.h:26,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/wiring.h:34,
from /Users/satch/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/Arduino.h:36,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_MCPSRAM.h:1,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/Adafruit_EPD.h:27,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.h:4,
from /Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:1:
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/Users/satch/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:
/Users/satch/Documents/Arduino/libraries/Adafruit_EPD/src/drivers/Adafruit_UC8151D.cpp:308:55: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'uint32_t' {aka 'long unsigned int'})
308 | uint8_t to_xfer = min(sizeof(mcp_buf), remaining);
| ^
exit status 1
Error compiling for board Generic STM32F4 series.
The text was updated successfully, but these errors were encountered:
bsatrom
changed the title
Cannot build epd-test example for STM32 boards
Cannot build EPDTest example for STM32 boards
Sep 19, 2022
@bsatrom: I see you PR today and it seems that I already proposed a PR to fix this just one day after your issue (which I didn't saw at the time): #68 😄.
I am trying to run one of the EPD examples on a few different STM32 boards and am not able to build.
I ran the following using the 2.13" 250x122 Tri-Color eInk FeatherWing
EPDTest
sketchThinkInk_213_Tricolor_RW display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
)The text was updated successfully, but these errors were encountered: