|
17 | 17 | }, |
18 | 18 | { |
19 | 19 | // Build the Bootloader. |
20 | | - "label": "1️⃣ Build bluepill_boot", |
| 20 | + "label": "1️⃣ Build Bootloader", |
21 | 21 | "type": "shell", |
22 | 22 | "windows": { |
23 | 23 | "command": "cmd", |
24 | 24 | "args": [ |
25 | 25 | "/c", |
26 | | - " newt\\newt.exe build -v bluepill_boot && newt\\newt.exe size -v bluepill_boot && echo ✅ ◾ ️Done! " |
| 26 | + " scripts\\stm32l4\\build-boot.cmd && echo ✅ ◾ ️Done! " |
27 | 27 | ] |
28 | 28 | }, |
29 | 29 | "osx": { |
30 | 30 | "command": "bash", |
31 | 31 | "args": [ |
32 | 32 | "-c", "-l", |
33 | | - " newt build -v bluepill_boot && newt size -v bluepill_boot && echo ✅ ◾ ️Done! " |
| 33 | + " scripts/stm32l4/build-boot.sh && echo ✅ ◾ ️Done! " |
34 | 34 | ], |
35 | 35 | }, |
36 | 36 | "linux": { |
37 | 37 | "command": "bash", |
38 | 38 | "args": [ |
39 | 39 | "-c", "-l", |
40 | | - " newt build -v bluepill_boot && newt size -v bluepill_boot && echo ✅ ◾ ️Done! " |
| 40 | + " scripts/stm32l4/build-boot.sh && echo ✅ ◾ ️Done! " |
41 | 41 | ], |
42 | 42 | }, |
43 | 43 | "problemMatcher": [ "$gcc" ], |
|
47 | 47 | }, |
48 | 48 | { |
49 | 49 | // Build the Application. |
50 | | - "label": "2️⃣ Build bluepill_my_sensor", |
| 50 | + "label": "2️⃣ Build Application", |
51 | 51 | "type": "shell", |
52 | 52 | "windows": { |
53 | 53 | "command": "cmd", |
|
95 | 95 | }, |
96 | 96 | { |
97 | 97 | // Create the Application ROM Image. |
98 | | - "label": "3️⃣ Image bluepill_my_sensor", |
| 98 | + "label": "3️⃣ Image Application", |
99 | 99 | "type": "shell", |
100 | 100 | "windows": { |
101 | 101 | "command": "cmd", |
102 | 102 | "args": [ |
103 | 103 | "/c", |
104 | | - " newt\\newt.exe create-image -v bluepill_my_sensor 1.0.0 && newt\\newt.exe size -v bluepill_my_sensor && echo ✅ ◾ ️Done! " |
| 104 | + " scripts\\stm32l4\\image-app.cmd && echo ✅ ◾ ️Done! " |
105 | 105 | ] |
106 | 106 | }, |
107 | 107 | "osx": { |
108 | 108 | "command": "bash", |
109 | 109 | "args": [ |
110 | 110 | "-c", "-l", |
111 | | - " newt create-image -v bluepill_my_sensor 1.0.0 && newt size -v bluepill_my_sensor && echo ✅ ◾ ️Done! " |
| 111 | + " scripts/stm32l4/image-app.sh && echo ✅ ◾ ️Done! " |
112 | 112 | ], |
113 | 113 | }, |
114 | 114 | "linux": { |
115 | 115 | "command": "bash", |
116 | 116 | "args": [ |
117 | 117 | "-c", "-l", |
118 | | - " newt create-image -v bluepill_my_sensor 1.0.0 && newt size -v bluepill_my_sensor && echo ✅ ◾ ️Done! " |
| 118 | + " scripts/stm32l4/image-app.sh && echo ✅ ◾ ️Done! " |
119 | 119 | ], |
120 | 120 | }, |
121 | 121 | "problemMatcher": [], |
|
125 | 125 | }, |
126 | 126 | { |
127 | 127 | // Flash the Bootloader to Blue Pill. We use custom scripts instead of "newt load" because "newt" runs in Ubuntu while the ST Link driver runs under Windows. |
128 | | - "label": "4️⃣ Load bluepill_boot", |
| 128 | + "label": "4️⃣ Load Bootloader", |
129 | 129 | "type": "shell", |
130 | 130 | "windows": { |
131 | 131 | "command": "cmd", |
132 | 132 | "args": [ |
133 | 133 | "/c", |
134 | | - " openocd\\bin\\openocd -f scripts/flash-init.ocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -f scripts/flash-boot.ocd " |
| 134 | + " scripts\\stm32l4\\flash-boot.cmd && echo ✅ ◾ ️Done! " |
135 | 135 | ] |
136 | 136 | }, |
137 | 137 | "osx": { |
138 | 138 | // Previously: " newt load -v bluepill_boot && echo '**** Done!' " |
139 | 139 | "command": "bash", |
140 | 140 | "args": [ |
141 | 141 | "-c", "-l", |
142 | | - " openocd/bin/openocd -f scripts/flash-init.ocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -f scripts/flash-boot.ocd " |
| 142 | + " scripts/stm32l4/flash-boot.sh && echo ✅ ◾ ️Done! " |
143 | 143 | ], |
144 | 144 | }, |
145 | 145 | "linux": { |
146 | 146 | // Previously: " newt load -v bluepill_boot && echo '**** Done!' " |
147 | 147 | "command": "bash", |
148 | 148 | "args": [ |
149 | 149 | "-c", "-l", |
150 | | - " openocd/bin/openocd -f scripts/flash-init.ocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -f scripts/flash-boot.ocd " |
| 150 | + " scripts/stm32l4/flash-boot.sh && echo ✅ ◾ ️Done! " |
151 | 151 | ], |
152 | 152 | }, |
153 | 153 | "problemMatcher": [], |
|
157 | 157 | }, |
158 | 158 | { |
159 | 159 | // Flash the Application to Blue Pill. We use custom scripts instead of "newt load" because "newt" runs in Ubuntu while the ST Link driver runs under Windows. |
160 | | - "label": "5️⃣ Load bluepill_my_sensor", |
| 160 | + "label": "5️⃣ Load Application", |
161 | 161 | "type": "shell", |
162 | 162 | "windows": { |
163 | 163 | "command": "cmd", |
164 | 164 | "args": [ |
165 | 165 | "/c", |
166 | | - " openocd\\bin\\openocd -f scripts/flash-init.ocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -f scripts/flash-app.ocd " |
| 166 | + " scripts\\stm32l4\\flash-app.cmd && echo ✅ ◾ ️Done! " |
167 | 167 | ] |
168 | 168 | }, |
169 | 169 | "osx": { |
170 | 170 | // Previously: " newt load -v bluepill_my_sensor && echo '**** Done!' " |
171 | 171 | "command": "bash", |
172 | 172 | "args": [ |
173 | 173 | "-c", "-l", |
174 | | - " openocd/bin/openocd -f scripts/flash-init.ocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -f scripts/flash-app.ocd " |
| 174 | + " scripts/stm32l4/flash-app.sh && echo ✅ ◾ ️Done! " |
175 | 175 | ], |
176 | 176 | }, |
177 | 177 | "linux": { |
178 | 178 | // Previously: " newt load -v bluepill_my_sensor && echo '**** Done!' " |
179 | 179 | "command": "bash", |
180 | 180 | "args": [ |
181 | 181 | "-c", "-l", |
182 | | - " openocd/bin/openocd -f scripts/flash-init.ocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -f scripts/flash-app.ocd " |
| 182 | + " scripts/stm32l4/flash-app.sh && echo ✅ ◾ ️Done! " |
183 | 183 | ], |
184 | 184 | }, |
185 | 185 | "problemMatcher": [], |
|
189 | 189 | }, |
190 | 190 | { |
191 | 191 | // Generate Rust bindings for C libraries. |
192 | | - "label": "⛓ Generate Rust bindings", |
| 192 | + "label": "⛓ Generate Rust Bindings", |
193 | 193 | "type": "shell", |
194 | 194 | "command": "bash", |
195 | 195 | "args": [ |
|
203 | 203 | }, |
204 | 204 | { |
205 | 205 | // Build Rust library with macros expanded, output to logs/libmylib-expanded.rs. |
206 | | - "label": "👓 Expand Rust macros", |
| 206 | + "label": "👓 Expand Rust Macros", |
207 | 207 | "type": "shell", |
208 | 208 | "command": "bash", |
209 | 209 | "args": [ |
|
0 commit comments