Skip to content

Commit

Permalink
Write option bytes added
Browse files Browse the repository at this point in the history
  • Loading branch information
stancecoke committed Jan 19, 2020
1 parent 6921c47 commit 9f1f15c
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
Binary file modified JavaConfigurator.jar
Binary file not shown.
1 change: 0 additions & 1 deletion JavaConfigurator/src/Lishui_Parameter_Configurator.form
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,6 @@
<Component id="jLabel20" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="TF_BATTERY_LEVEL_5" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
Expand Down
2 changes: 1 addition & 1 deletion JavaConfigurator/src/Lishui_Parameter_Configurator.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public void actionPerformed(ActionEvent arg0) {

if (n == JOptionPane.YES_OPTION) {
try {
Process process = Runtime.getRuntime().exec("cmd /c start WriteOptionBytes");
Process process = Runtime.getRuntime().exec("cmd /c start WriteOptionBytes " + TF_PATH_STM32_UTILITY.getText());
} catch (IOException e1) {
TF_TS_COEF.setText("Error");
e1.printStackTrace();
Expand Down
2 changes: 2 additions & 0 deletions Start_Compiling.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ ST-LINK_CLI.exe -c SWD -P LishuiFOC_01.hex -V

pause

exit

7 changes: 7 additions & 0 deletions WriteOptionBytes.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PATH = %PATH%;%1\STM32 ST-LINK Utility\ST-LINK Utility

ST-LINK_CLI.exe -OB RDP=0

pause

exit
40 changes: 40 additions & 0 deletions experimental settings/20200119-133719MEZ.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
50
2020
2028
256
15LL<<8
38LL<<8
6LL
40LL
1200LL
9LL
323000
329000
344000
368000
380000
0.1L
0.01L
1
1
60000
8000
1600
1255
4096
2200
60
25
1
300
-715827882LL
true
false
false
false
false
true
false
false
C:\GNU_ARM
C:\Program Files (x86)\STMicroelectronics

0 comments on commit 9f1f15c

Please sign in to comment.