当前位置:网站首页>Simplefoc+platformio stepping on the path of the pit
Simplefoc+platformio stepping on the path of the pit
2022-07-29 08:02:00 【BobBobBao】
background
It's been used recently simpleFOC do BLDC Motor drive development ,simpleFOC It's an open source library , be based on Arduino Platform , Its bottom layer calls many arduino Function of . however ArduinoIDE The compilation speed of is too slow , It takes more than ten minutes to move . Online search found a completely alternative ArduinoIDE Software ,platformIO. For specific installation and use, please refer to the official documents :
The problem summary
problem 1: test BLDC_Driver_6PWM Routine ,platformIO No response after downloading , The same procedure Arduino Normal after downloading
solve : stay platformio.ini Add... To the startup file :lib_archive = false
problem 2: stay VScode Projects that are closed and then opened in , stay platformIO Cannot compile and download .
solve : stay platformIO–>Home On the page , Click to open the project , Reload the project into platformIO In your work environment 
** problem 3:** For the first time board when , Will automatically download some related documents , Download time error ; But download it , After that, it is normal 
** solve :** because PC It's on VPN, close VPN. Wait until the dependent library is downloaded , And on again VPN It won't be wrong .
Other
platformIO Is in VSCode An extension plug-in based on . It is very convenient to use , Code follows ArduinoIDE Fully compatible with , Special attention should be paid to configuring the startup file , Many debugging problems are caused by the setting of startup files . Here is an example :
[env:bluepill_f103c8_128k]
platform = ststm32
board = bluepill_f103c8_128k
framework = arduino
debug_tool = stlink
upload_protocol = stlink
lib_deps = askuric/Simple FOC @ ^2.2.2
lib_archive = false
monitor_speed = 115200
build_flags =
-D PIO_FRAMEWORK_ARDUINO_SERIAL_DISABLED
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
边栏推荐
- Do you want to meet all the needs of customers
- 关于pip升级损坏导致的问题记录
- [cryoelectron microscope] relion4.0 pipeline command summary (self use)
- What are the principles and methods of implementing functional automation testing?
- MapReduce steps of each stage
- Cyberpunk special effect shader
- [dry goods memo] 50 kinds of Matplotlib scientific research paper drawing collection, including code implementation
- Unity beginner 3 - enemy movement control and setting of blood loss area (2D)
- In JS, 0 means false, and non-0 means true
- Chapter contents of the romance of the Three Kingdoms
猜你喜欢
![[cryptography experiment] 0x00 install NTL Library](/img/2a/03d95082a2a63238b475b3f7f3e13d.png)
[cryptography experiment] 0x00 install NTL Library

Ue4/ue5 C disk enlargement processing

佳木斯市场监管局开展防疫防虫害专题食品安全网络培训

Up sampling deconvolution operation
![[密码学实验] 0x00 安装NTL库](/img/2a/03d95082a2a63238b475b3f7f3e13d.png)
[密码学实验] 0x00 安装NTL库

Compare three clock circuit schemes of single chip microcomputer

Effective learning of medical image segmentation annotation based on noise pseudo tags and adversarial learning
![[paper reading] tomoalign: a novel approach to correcting sample motion and 3D CTF in cryoet](/img/3a/75c211f21758ca2d9bb1a40d739d80.png)
[paper reading] tomoalign: a novel approach to correcting sample motion and 3D CTF in cryoet
What are the principles and methods of implementing functional automation testing?

【学术相关】为什么很多国内学者的AI的论文复现不了?
随机推荐
Matrix decomposition and gradient descent
[beauty of software engineering - column notes] 28 | what is the core competitiveness of software engineers? (next)
Unity - default rendering pipeline - sculpt shader
UE4 principle and difference between skylight and reflecting sphere
[beauty of software engineering - column notes] "one question and one answer" issue 2 | 30 common software development problem-solving strategies
My entrepreneurial neighbors
What are the principles and methods of implementing functional automation testing?
UE4 highlight official reference value
Solving linear programming problems based on MATLAB
In the MySQL connector of flynk CDC, the MySQL field is varbinary, which is officially
Solve the problem that the disk is full due to large files
Day 014 二维数组练习
[freeze electron microscope] analysis of the source code of the subtomogram alignment function of relion4.0 (for self use)
Space shooting Lesson 17: game over (end)
The database uses PSQL and JDBC to connect remotely and disconnect automatically from time to time
MySQL 45 | 08 is the transaction isolated or not?
C# 之 volatile关键字解析
IonIcons图标大全
[beauty of software engineering - column notes] 22 | how to do a good job in technology selection for the project?
C language problems