Comments (13)
Yes, it should update only the current project. But, for example, GD32 is global so it updates it for all projects. And if you have multiple projects open, it's possible to open the CLI on another project without realizing.
By adding the -l "Simple FOC"
, you are guaranteed to only update that one. It's not that running it without parameters is "wrong", it's just safer to add the -l "Simple FOC"
. One thing I learned over many years coding, is that mistakes happen unless you do everything to ensure that a mistake is very hard to make. It's the concept of "design induced errors", common in so many fields. Since we are documenting things for potentially others to help, I thought it's better to have as few potential problems as possible
from split_hoverboard_simplefoc.
Hi Rob,
I was using this command to update arduino-gd32 after fixes have been published.
It can probably be used to update all dependencies.
from split_hoverboard_simplefoc.
It is possible to open the Platformio Core CLI and issue a command like pio pkg update -l
But it requires a library name. And when I list the installed packages for the project I get
PS C:\GD32\Candas> pio pkg list
Resolving GD32F130C8 dependencies...
Platform gd32 @ 1.0.0+sha.3424e66 (required: git+https://github.com/CommunityGD32Cores/platform-gd32.git)
├── framework-arduinogd32 @ 4.20000.210603+sha.dfa7ccb (required: git+https://github.com/CommunityGD32Cores/ArduinoCore-GD32.git)
├── tool-dfuutil @ 1.9.200310 (required: platformio/tool-dfuutil @ ~1.9.190708)
├── tool-openocd-gd32 @ 2.1100.211207 (required: communitygd32cores/tool-openocd-gd32 @ ~2.1100.0)
├── tool-sreccat @ 1.164.0 (required: platformio/tool-sreccat @ ~1.164.0)
├── tool-stm32duino @ 1.0.2 (required: platformio/tool-stm32duino @ ~1.0.1)
└── toolchain-gccarmnoneeabi @ 1.90201.191206 (required: platformio/toolchain-gccarmnoneeabi @ ~1.90201.0)
Libraries
├── RTT Stream @ 1.4.0 (required: koendv/RTT Stream @ ^1.3.0)
│ └── ANSI @ 0.2.0 (required: ANSI)
└── Simple FOC @ 2.3.0+sha.7cff1fa (required: git+https://github.com/Candas1/Arduino-FOC.git)
For the "gd32" package, the command pio pkg update -g -p gd32
works, because it recognizes gd32 as a platform name
from split_hoverboard_simplefoc.
I just tried this pio pkg update -l "Simple FOC"
and it seems to work
PS C:\GD32\Candas> pio pkg update -l "Simple FOC"
Resolving GD32F130C8 dependencies...
Library Manager: Simple [email protected]+sha.7cff1fa is already up-to-date
Already up-to-date.
I will wait until you make any change to your Simple FOC and try again. If it works, we can document how to update both GD32 and SimpleFOC and close this issue
from split_hoverboard_simplefoc.
I used it without a parameter and it worked
from split_hoverboard_simplefoc.
Yes, but I was worried about side effects potentially updating other Platformio projects. I have a few dozens Platformio projects for all processors with various version of libraries. Updating the wrong library would mess up things badly (sometimes a newer library is incompatible and breaks a 3 years old project)
with pio pkg update -l "Simple FOC"
it's guaranteed to only update that single library
from split_hoverboard_simplefoc.
ok I thought it was only updating dependencies for the current project/environment.
from split_hoverboard_simplefoc.
What is weird is if I run the simpleFOC update, it adds lib_deps to each environment:
from split_hoverboard_simplefoc.
Ah we can probably use that
from split_hoverboard_simplefoc.
Good idea adding the Custom option!
Incidentally, for the time being I would remove the C6 environment. We are all using C8 and having both can cause confusion for some future new contributor. I also found it takes longer to update as it copies the libraries to multiple directories
from split_hoverboard_simplefoc.
I wanted to use the same layout as Robodurden is using for his tests, this layout has a C6 chip.
from split_hoverboard_simplefoc.
@Candas1 now i am a little bit confused myself :-) My test setup with cc power supply that i have with me in my solar camper is a gen2.0 board with c8 chip. The gen2.5 test setup with c6 is back at my train station.
from split_hoverboard_simplefoc.
Well I am either stupid or blind.
I have always thought it was a C6.
So I am wasting our time.
My fault sorry.
from split_hoverboard_simplefoc.
Related Issues (10)
- please join and help us :-) HOT 49
- running simpleFOC from an interrupt and not the main loop() HOT 14
- I2C interfering with SimpleFOC ? HOT 10
- Improve memory footprint for C6 builds HOT 13
- GD32 timer initialization is not working properly HOT 88
- motor does not reach max speed like old Gen2.x binary HOT 84
- adding LowsideCurrentSense ... HOT 160
- adding Gen1 enviroment (STM32F103RC) .. HOT 8
- HallSensor interpolation/smoothing/prediction HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from split_hoverboard_simplefoc.