Skip to content

Commit b1b0ec8

Browse files
authored
Merge pull request #102 from kshitij-sisodia-arm/feature/mleco-3548
MLECO-3548: Fix for compile time definitions
2 parents 2008d5e + 9c77b30 commit b1b0ec8

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

cmsis-pack-examples/kws/kws.cproject.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/1.0.0/tools/projmgr/schemas/cproject.schema.json
16+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/0.9.6/tools/projmgr/schemas/cproject.schema.json
17+
18+
# NOTE: For version 0.9.6 - we have to use property "defines" to add
19+
# compile time definitions. This will need to be updated with later
20+
# version of the tool (> 1.0.0)
21+
# > "For a transition period defines: is also accepted. However this will be deprecated."
1722

1823
project:
1924

@@ -37,7 +42,7 @@ project:
3742
files:
3843
- file: mps3-sse-300.sct
3944

40-
define:
45+
defines:
4146
- "ACTIVATION_BUF_SZ=0x00100000"
4247

4348
layers:

cmsis-pack-examples/mlek.csolution.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/1.0.0/tools/projmgr/schemas/csolution.schema.json
16+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/0.9.6/tools/projmgr/schemas/csolution.schema.json
17+
18+
# NOTE: For version 0.9.6 - we have to use property "defines" to add
19+
# compile time definitions. This will need to be updated with later
20+
# version of the tool (> 1.0.0)
21+
# > "For a transition period `defines:` is also accepted. However this will be deprecated."
1722

1823
solution:
1924

@@ -44,7 +49,8 @@ solution:
4449
- pack: tensorflow::[email protected]
4550
- pack: tensorflow::[email protected]
4651

47-
build-types: # defines toolchain options for 'debug' and 'release'
52+
# defines toolchain options for 'debug' and 'release'
53+
build-types:
4854
- type: Debug
4955
compiler: AC6
5056
debug: on
@@ -63,14 +69,14 @@ solution:
6369
target-types:
6470
- type: AVH-U55
6571
device: ARM::SSE-300-MPS3
66-
define:
72+
defines:
6773
- "ETHOSU55"
6874

6975
# Currently Keil Studio doesn't allow to switch between targets. Uncomment when this is
7076
# fixed.
7177
# - type: AVH-U65
7278
# device: ARM::SSE-300-MPS3
73-
# define:
79+
# defines:
7480
# - "ETHOSU65"
7581

7682
projects:

cmsis-pack-examples/object-detection/object-detection.cproject.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/1.0.0/tools/projmgr/schemas/cproject.schema.json
16+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/0.9.6/tools/projmgr/schemas/cproject.schema.json
17+
18+
# NOTE: For version 0.9.6 - we have to use property "defines" to add
19+
# compile time definitions. This will need to be updated with later
20+
# version of the tool (> 1.0.0)
21+
# > "For a transition period defines: is also accepted. However this will be deprecated."
1722

1823
project:
1924

@@ -35,7 +40,7 @@ project:
3540
files:
3641
- file: mps3-sse-300.sct
3742

38-
define:
43+
defines:
3944
- "ACTIVATION_BUF_SZ=0x00082000"
4045

4146
layers:

0 commit comments

Comments
 (0)