Updated Flashing (Advanced) (markdown)

James Wages 2022-04-26 12:22:29 +09:00
parent bcb278160c
commit b916758ecd

@ -1,20 +1,23 @@
# These options are for developers! # ![#f03c15](https://via.placeholder.com/15/f03c15/000000?text=+) This page is for developers ONLY! ![#f03c15](https://via.placeholder.com/15/f03c15/000000?text=+)
**If you are user please use the [BlueSCSI-Updater](https://github.com/erichelgeson/BlueSCSI-Updater/)** ## **If you're a User, CLICK HERE: [BlueSCSI-Updater](https://github.com/erichelgeson/BlueSCSI-Updater/)**
_(DO NOT follow the content below if you are a user!)_
**If you are user please use the [BlueSCSI-Updater](https://github.com/erichelgeson/BlueSCSI-Updater/)**
**If you are user please use the [BlueSCSI-Updater](https://github.com/erichelgeson/BlueSCSI-Updater/)** ***
When flashing you have two options: ## Developers, you have 2 options to flash BlueSCSI:
1. Flash by setting up the Visual Studio Code IDE, installing the ARM toolchain and PlatformIO extensions, and re-compiling and programming. **If you are a developer and plan to contribute this method is what you should use.** 1. Flash the `.bin` file directly from [STM32 ST-LINK Utility](https://www.st.com/en/development-tools/stsw-link004.html) (windows only) or [STM32CubeProgrammer](https://www.st.com/en/development-tools/stm32cubeprog.html) (cross platform). **Use this method if you are not a developer and just wish to get the code to the BluePill - and for some reason don't/can't use the BlueSCSI Updater.**
1. You may also flash the `.bin` file directly from [STM32 ST-LINK Utility](https://www.st.com/en/development-tools/stsw-link004.html) (windows only) or [STM32CubeProgrammer](https://www.st.com/en/development-tools/stm32cubeprog.html) (cross platform). **Use this method if you are not a developer and just wish to get the code to the BluePill - and for some reason don't/can't use the BlueSCSI Updater.** 2. Flash by setting up the Visual Studio Code IDE, installing the ARM toolchain and PlatformIO extensions, and re-compiling and programming. **If you are a developer and plan to contribute this method is what you should use.**
### Using STLink v2
***
### OPTION 1: Using STLink v2
#### Setup STLinkV2 #### Setup STLinkV2
@ -42,7 +45,10 @@ See [STLink Setup](https://github.com/erichelgeson/BlueSCSI/wiki/ST-Link-Setup)
* You should see the LED `PC_13` flashing 5x indicating no SD Card detected. * You should see the LED `PC_13` flashing 5x indicating no SD Card detected.
* Disconnect the BluePill from the STlink - It's ready to go! * Disconnect the BluePill from the STlink - It's ready to go!
#### Procedure (PlatformIO)
***
### OPTION 2: Procedure (PlatformIO)
* Remove SD Card * Remove SD Card
* Move the `BOOT0` jumper (furthest from the button switch) to `1` * Move the `BOOT0` jumper (furthest from the button switch) to `1`
@ -73,6 +79,7 @@ xPSR: 0x01000000 pc: 0x08000194 msp: 0x20000690
The following YouTube video demonstrates the steps of flashing & updating your BlueSCSI https://www.youtube.com/watch?v=bRLAOts_MTM The following YouTube video demonstrates the steps of flashing & updating your BlueSCSI https://www.youtube.com/watch?v=bRLAOts_MTM
### Trouble Shooting ### Trouble Shooting
Move the jumper furthest away from the `RESET` switch to 1. Reset and try to program again. Move the jumper furthest away from the `RESET` switch to 1. Reset and try to program again.