-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFirmware_Flashing.pg
41 lines (38 loc) · 4.54 KB
/
Firmware_Flashing.pg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
flags: 0101010
blocks: <h2>Before you start</h2><ol><li>Get the latest .hex file from <a class="url http outside" href="https://github.com/ProgArm/ProgArm-Firmware/releases">here</a>.</li><li>Turn ProgArm on and switch the [[ProgArm 0.2|SW2]] to Flashing Mode.</li><li>Press and hold Reset button for more than 300 ms. This will put the device into Flashing Mode.</li><li>Follow the instructions below.</li></ol><h2>GNU/Linux</h2><ol><li>Use any bluetooth manager to establish bluetooth connection. If you have no bluetooth manager try blueman!</li><li>Download and install <a class="url http outside" href="https://code.google.com/p/stm32flash/">stm32flash</a>.</li><li>Upload firmware using this command:<br /><code>stm32flash -b 38400 -w ProgArm-Firmware.hex /dev/rfcomm0</code></li><li>If the command above requires root privileges, then your user is not in the dialout group. It is highly recommended to be in <code>dialout</code> group, although not obligatory for flashing process. If adding your user to dialout group (and rebooting) didn't help, check <code>sudo lsof /dev/rfcomm0</code>. If you see ModemManager in the output, then try killing it.</li></ol><h2>Windows</h2><ol><li>Use standard Windows bluetooth manager to connect to the device. Let Windows to automatically install drivers for Serial-Over-Bluetooth interface.</li><li>Download and install <a class="url http outside" href="http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/demo_and_example/stsw-mcu005.zip">STM32 Flash Loader Demonstrator</a>.</li><li>Use Device Manager to see what numbers do HC-05 virtual com ports have. The port with lower number is main Tx/Rx port</li><li>Configure the app as following:<ul><li>Port name: Your port number</li><li>Baud rate: 38400</li><li>Data bits: 8</li><li>Parity: even</li><li>Echo: disabled</li><li>Timeout: can be any (I use 3s)</li></ul></li><li>Click Next, choose your memory size and load .hex file to the STM32.</li></ol>
diff-minor: <p><strong>Changed:</strong></p>
<div class="old"><p>< # If the command above requires root privileges, then your user is not in the dialout group. It is highly recommended to be in ##dialout## group, although not obligatory for flashing process.</p></div><p><strong>to</strong></p>
<div class="new"><p>> # If the command above requires root privileges, then your user is not in the dialout group. It is highly recommended to be in ##dialout## group, although not obligatory for flashing process. <strong class="changes">If adding your user to dialout group (and rebooting) didn't help, check {{{sudo lsof /dev/rfcomm0}}}. If you see ModemManager in the output, then try killing it.</strong></p></div>
ts: 1415047806
minor:
host: 84.52.22.131
username: AlexDaniel
revision: 12
summary: ModemManager is causing some problems in debian unstable
diff-major: 1
languages:
text: ==Before you start
# Get the latest .hex file from [[https://github.com/ProgArm/ProgArm-Firmware/releases here]].
# Turn ProgArm on and switch the [[ProgArm 0.2|SW2]] to Flashing Mode.
# Press and hold Reset button for more than 300 ms. This will put the device into Flashing Mode.
# Follow the instructions below.
==GNU/Linux
# Use any bluetooth manager to establish bluetooth connection. If you have no bluetooth manager try blueman!
# Download and install [[https://code.google.com/p/stm32flash/ stm32flash]].
# Upload firmware using this command:
{{{stm32flash -b 38400 -w ProgArm-Firmware.hex /dev/rfcomm0}}}
# If the command above requires root privileges, then your user is not in the dialout group. It is highly recommended to be in ##dialout## group, although not obligatory for flashing process. If adding your user to dialout group (and rebooting) didn't help, check {{{sudo lsof /dev/rfcomm0}}}. If you see ModemManager in the output, then try killing it.
==Windows
# Use standard Windows bluetooth manager to connect to the device. Let Windows to automatically install drivers for Serial-Over-Bluetooth interface.
# Download and install [[http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/demo_and_example/stsw-mcu005.zip STM32 Flash Loader Demonstrator]].
# Use Device Manager to see what numbers do HC-05 virtual com ports have. The port with lower number is main Tx/Rx port
# Configure the app as following:
** Port name: Your port number
** Baud rate: 38400
** Data bits: 8
** Parity: even
** Echo: disabled
** Timeout: can be any (I use 3s)
# Click Next, choose your memory size and load .hex file to the STM32.
lastmajor: 12
keep-ts: 1415047806