Skip to content

Commit cf649bc

Browse files
need to add task.json and launch.json
1 parent f7d1ba4 commit cf649bc

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

setup/create_project/create_c_cpp_properties_json.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

33
# Define the template for c_cpp_properties.json
4-
C_CPP_PROPERTIES_JSON='{
4+
C_CPP_PROPERTIES_JSON=$(cat << EOM
5+
6+
{
57
"configurations": [
68
{
79
"name": "Linux",
@@ -19,14 +21,14 @@ C_CPP_PROPERTIES_JSON='{
1921
}
2022
],
2123
"version": 4
22-
}'
24+
}
2325
26+
EOM
2427
28+
)
2529

2630
# Replace all occurrences of the placeholder in the template with the actual PROJECT_NAME value
2731
C_CPP_PROPERTIES_JSON=$(echo "$C_CPP_PROPERTIES_JSON" | sed "s/\${PROJECT_NAME}/$PROJECT_NAME/g")
2832

2933
# Write the modified template to c_cpp_properties.json
3034
echo "$C_CPP_PROPERTIES_JSON" > "${PROJECT_NAME}/.vscode/c_cpp_properties.json"
31-
32-
echo "c_cpp_properties.json has been created!"

setup/create_project/create_settings_json.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ SETTINGS="
77
}"
88

99

10-
echo "${SETTINGS}" > "${PROJECT_NAME}/.vscode/settings.json"
11-
echo "settings.json has been created!"
10+
echo "${SETTINGS}" > "${PROJECT_NAME}/.vscode/settings.json"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+

setup/create_project/get_stm32h755xx_resources.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CM4_LINKER=${MCU_FAMILY}_flash_CM4.ld
99
SRAM1_LINKER=${MCU_FAMILY}_sram1_CM7.ld
1010
SRAM2_LINKER=${MCU_FAMILY}_sram2_CM4.ld
1111
CM7_LINKER_SCRIPT_URL="${BASE_URL}/linker/${CM7_LINKER}"
12-
CM4_LINKER_SCRIPT_URL="${BASE_URL}/linker/${CM7_LINKER}"
12+
CM4_LINKER_SCRIPT_URL="${BASE_URL}/linker/${CM4_LINKER}"
1313
SRAM1_LINKER_SCRIPT_URL="${BASE_URL}/linker/${SRAM1_LINKER}"
1414
SRAM2_LINKER_SCRIPT_URL="${BASE_URL}/linker/${SRAM2_LINKER}"
1515

0 commit comments

Comments
 (0)