Re: Linux serial_posix vs. Windows serial_w32
Posted: Mon May 30, 2022 7:02 am
Could you share on github your variant ?
Everything relating to using STM32 boards with the Arduino IDE and alternatives
https://www.stm32duino.com/
And the change made in the boards.txt? As your issue seems linked to wrong entry.
I already git push the boards.txt. Kindly refresh the repo.fpiSTM wrote: Mon May 30, 2022 7:42 amAnd the change made in the boards.txt? As your issue seems linked to wrong entry.
How can I correct it?fpiSTM wrote: Mon May 30, 2022 7:45 am You should not create new directory, your variant should be added in this folder:
https://github.com/stm32duino/Arduino_C ... 083R(B-Z)T
The L0 hal conf is also not correct as you duplicate it.
The PR example provided by @ag123 should help you to get it working.
Code: Select all
/home/flo/Downloads/base-code/base-code/src/PWXRTC/src/PWXRTC.cpp: In member function 'uint32_t PWXRTC::getTimeDifference(uint32_t)':
/home/flo/Downloads/base-code/base-code/src/PWXRTC/src/PWXRTC.cpp:77:45: error: call of overloaded 'abs(uint32_t)' is ambiguous
77 | return (abs((getEpochTime() - inReference)));
| ^
In file included from /home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/cstdlib:75,
from /home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/stdlib.h:36,
from /home/flo/.arduino15/packages/STMicroelectronics/hardware/stm32/2.2.0/cores/arduino/wiring.h:24,
from /home/flo/.arduino15/packages/STMicroelectronics/hardware/stm32/2.2.0/cores/arduino/Arduino.h:36,
from /home/flo/Downloads/base-code/base-code/src/PWXRTC/src/PWXRTC.h:14,
from /home/flo/Downloads/base-code/base-code/src/PWXRTC/src/PWXRTC.cpp:12:
/home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/stdlib.h:70:5: note: candidate: 'int abs(int)'
70 | int abs (int);
| ^~~
In file included from /home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/cstdlib:77,
from /home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/stdlib.h:36,
from /home/flo/.arduino15/packages/STMicroelectronics/hardware/stm32/2.2.0/cores/arduino/wiring.h:24,
from /home/flo/.arduino15/packages/STMicroelectronics/hardware/stm32/2.2.0/cores/arduino/Arduino.h:36,
from /home/flo/Downloads/base-code/base-code/src/PWXRTC/src/PWXRTC.h:14,
from /home/flo/Downloads/base-code/base-code/src/PWXRTC/src/PWXRTC.cpp:12:
/home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
79 | abs(long double __x)
| ^~~
/home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
75 | abs(float __x)
| ^~~
/home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
71 | abs(double __x)
| ^~~
/home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
61 | abs(long long __x) { return __builtin_llabs (__x); }
| ^~~
/home/flo/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/arm-none-eabi/include/c++/10.3.1/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
56 | abs(long __i) { return __builtin_labs(__i); }
| ^~~