当前位置:网站首页>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
边栏推荐
- Realize the effect of changing some colors of a paragraph of text
- Greenplus enterprise deployment
- 技术分享| 快对讲综合调度系统
- [beauty of software engineering - column notes] 22 | how to do a good job in technology selection for the project?
- Day 014 2D array exercise
- Chapter contents of the romance of the Three Kingdoms
- Mqtt server setup and mqtt.fx testing
- Actual measurement of boot and pH pins of buck circuit
- [paper reading | cryoet] gum net: fast and accurate 3D subtomo image alignment and average unsupervised geometric matching
- Compare three clock circuit schemes of single chip microcomputer
猜你喜欢

What is the use of chat robots? What type? After reading these, you will understand!

Effective learning of medical image segmentation annotation based on noise pseudo tags and adversarial learning

Amaze UI icon query
![[beauty of software engineering - column notes]](/img/90/658f4d954c876bed2fccb431232e52.png)
[beauty of software engineering - column notes] "one question and one answer" issue 2 | 30 common software development problem-solving strategies

UE4 highlight official reference value

@JsonSerialize注解的使用
![[cryoEM] Introduction to FSC, Fourier shell correlation](/img/01/6a4f6041444abfd1d3ca7e0c14b524.png)
[cryoEM] Introduction to FSC, Fourier shell correlation

QT connects two qslite databases and reports an error qsqlquery:: exec: database not open

Ionicons icon Encyclopedia

Monitor the bottom button of page scrolling position positioning (including the solution that page initialization positioning does not take effect on mouse sliding)
随机推荐
[paper reading | cryoelectron microscope] interpretation of the new subtomogram averaging method in relion 4.0
Internet worm
[beauty of software engineering - column notes] 25 | what methods can improve development efficiency?
[beauty of software engineering - column notes] "one question and one answer" issue 2 | 30 common software development problem-solving strategies
The database uses PSQL and JDBC to connect remotely and disconnect automatically from time to time
[skill accumulation] presentation practical skill accumulation, common sentence patterns
[paper reading | cryoet] gum net: fast and accurate 3D subtomo image alignment and average unsupervised geometric matching
Up sampling deconvolution operation
Excellent urban design ~ good! Design # visualization radio station will be broadcast soon
Detailed explanation of the find command (the most common operation of operation and maintenance at the end of the article)
Compare three clock circuit schemes of single chip microcomputer
Do you want to meet all the needs of customers
在一个sql文件中,上面定义一个测试表及数据,下面可以select* from 测试表
Greenplus enterprise deployment
Data warehouse modeling, what is wide table? How to design? Advantages and disadvantages
Jianmu continuous integration platform v2.5.2 release
Official tutorial redshift 01 basic theoretical knowledge and basic characteristics learning
What are the principles and methods of implementing functional automation testing?
Dynamic thresholds buffer management in a shared buffer packet switch paper summary
How to draw an excellent architecture diagram