diff --git a/Installation.md b/Installation.md index ce06e1bc06ff0b3c5a2535b3e3a98a337a17b6d2..057adeef6c6c401bb8e8bbdc0dbe8c3f8e784ff6 100644 --- a/Installation.md +++ b/Installation.md @@ -6,7 +6,7 @@ Installation & Configuartion ## Rust -Goto https://rustup.rs/ and follow the instructions. +Go to https://rustup.rs/ and follow the instructions. ### Cargo tools ``` @@ -19,15 +19,50 @@ There is no requirement on what editor you should use, but if you are undecided ### VS Code -Goto https://code.visualstudio.com/ and follow the instructions. When installed, goto the extensions tab and install ```Rust (rls)``` and ```Better TOML```. +* Windows: Go to https://code.visualstudio.com/docs/setup/windows and follow the instructions + +* Linux: Use package manager of choice, see: https://code.visualstudio.com/docs/setup/linux + +#### VS Code plugins +When installed, go to the extensions tab and install ```Rust (rls)``` and ```Better TOML```. + # Linux +In general use your package manager for whatever distribution you are using. -### GDB +Some LTS distributions may have very old packages, but it should work, +in case of troubles see if the package is available in the `backports` repositories. + +### GDB / Binutils + +Debian/Ubuntu + +``` +sudo apt install gdb-arm-none-eabi binutils-arm-none-eabi +``` + +Arch + +``` +sudo pacman -S arm-none-eabi-gdb arm-none-eabi-binutils +``` ### OpenOCD +Debian/Ubuntu + +``` +sudo apt install openocd +``` + +Arch + +``` +sudo pacman -S openocd +``` + + # Windows ## Native @@ -100,4 +135,4 @@ To be able to quickly get up and running I usually create a shortcut on the desk and make it start in the openocd/bin folder i.e ```C:\OpenOCD\bin```. And if you want to be really fancy then under layout you can change where the window should spawn as well as how it should look like. -You can even make it spawn a WSL terminal to your liking, for example, if you have the target set as ```C:\Windows\System32\bash.exe -c "tmux new-session \; split-window -h \; attach"``` and to start in the folder where your rust projects are located. Then you will have a bash terminal in your project folder under WSL that starts up with tmux creating two panes splitting the terminal in two. \ No newline at end of file +You can even make it spawn a WSL terminal to your liking, for example, if you have the target set as ```C:\Windows\System32\bash.exe -c "tmux new-session \; split-window -h \; attach"``` and to start in the folder where your rust projects are located. Then you will have a bash terminal in your project folder under WSL that starts up with tmux creating two panes splitting the terminal in two.