File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2731C_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
3034echo " $C_CPP_PROPERTIES_JSON " > " ${PROJECT_NAME} /.vscode/c_cpp_properties.json"
31-
32- echo " c_cpp_properties.json has been created!"
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ CM4_LINKER=${MCU_FAMILY}_flash_CM4.ld
99SRAM1_LINKER=${MCU_FAMILY} _sram1_CM7.ld
1010SRAM2_LINKER=${MCU_FAMILY} _sram2_CM4.ld
1111CM7_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 } "
1313SRAM1_LINKER_SCRIPT_URL=" ${BASE_URL} /linker/${SRAM1_LINKER} "
1414SRAM2_LINKER_SCRIPT_URL=" ${BASE_URL} /linker/${SRAM2_LINKER} "
1515
You can’t perform that action at this time.
0 commit comments