[Platform IDE]Common build issues in platformio of stm32

When you find your machine has problems. You can have a look at this section
Post Reply
User avatar
William
Site Admin
Posts: 248
Joined: Fri May 10, 2019 11:40 pm

[Platform IDE]Common build issues in platformio of stm32

Post by William » Fri Nov 06, 2020 2:37 pm

Hi, guys! Today I am using another PC to build the firmware of ER-20
I found the Platform IDE will give me some errors with it and I fixed it last after I searched a lot.

This post refers to this website and thanks for this article
The website I founded and it is useful:
https://reprap.org/forum/read.php?415,874307,874307

Well, here we go:
What error did I get?
1.Llibmaple/stm32.h: No such file or directory

Code: Select all

Marlin\src\HAL\STM32F1\sdio.cpp:26:10: fatal error: libmaple/stm32.h: No such file or directory
Marlin\src\HAL\STM32F1\dogm\../../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory
stm32.h_No such file or directory.png
stm32.h_No such file or directory.png (155.59 KiB) Viewed 567 times
Then I try to do "Update all" at platform IDE but the problem still on. It means this will not fix the problem.
So I try to search on Google and I am so lucky and find the solution:

The cause is the stSTM32 framework was updated to version 7. Marlin was built on version 6.
The fix is up update your platformio.ini file
Find and replace the line "platform = ststm32" with "platform = ststm32@<6.2.0"
stm32.h_No such file or directory1.png
stm32.h_No such file or directory1.png (85.48 KiB) Viewed 567 times
2. Adafruit BusIO error

Code: Select all

.pio\libdeps\ERYONE_MINI_STM32F103V\Adafruit BusIO\Adafruit_SPIDevice.cpp:119:31: error: no matching function for call to 'SPIClass::transfer(uint8_t*&, size_t&)'
Adafruit BusIO_Adafruit_SPIDevice.PNG
Adafruit BusIO_Adafruit_SPIDevice.PNG (187.21 KiB) Viewed 567 times
When I added the ststm32@<6.2.0. I try to compline it again and I got this error. Also, this problem is a common problem.
The author also gives the solution:
Any errors that mention Adafruit BusIO
The fix is up update your platformio.ini file
Find the line "Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MA ... master.zip" and replace it with
"Adafruit MAX31865 library@~1.1.0"
FIX2.png
FIX2.png (66.58 KiB) Viewed 567 times
At last, it success compline and no problem.
If you are not using the Ery mini32 motherboard but another brand 32bit stm motherboard. You can also refer to this and it would fix this problem.

Well, Hope you have a nice day~
Attachments
FIX2_result.png
FIX2_result.png (107.5 KiB) Viewed 567 times
## To be friendly and stay humble
- Pride and ignorance are eternal enemies
:)

Post Reply