Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit ae5d99c

Browse files
authored
Integrate updated MXCHIP PNP model (#160)
* Integrate updated MXCHIP PNP model * Install Azure CLI by default * Add new device info pnp component to all guides * update debugging.md * update to cmake 3.19 + gnu arm 9-2020-q2-update * update github action to use latest GCC compiler * update to azure CLI 2.15.0
1 parent e4896cd commit ae5d99c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1573
-760
lines changed

.github/workflows/ATSAME54-XPRO.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
with:
3232
submodules: recursive
3333

34-
# Get the ARM GCC compiler
35-
- name: Install tools for linux
36-
if: matrix.os == 'ubuntu-latest'
37-
run: sudo apt install gcc-arm-none-eabi cmake
34+
- name: arm-none-eabi-gcc
35+
uses: fiam/arm-none-eabi-gcc@v1
36+
with:
37+
release: '9-2020-q2'
3838

3939
- name: Install Ninja
40-
uses: seanmiddleditch/gha-setup-ninja@v1
40+
uses: seanmiddleditch/gha-setup-ninja@v3
4141

4242
- name: Build project
4343
run: |

.github/workflows/AZ3166.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
with:
3232
submodules: recursive
3333

34-
# Get the ARM GCC compiler
35-
- name: Install tools for linux
36-
if: matrix.os == 'ubuntu-latest'
37-
run: sudo apt install gcc-arm-none-eabi cmake
34+
- name: arm-none-eabi-gcc
35+
uses: fiam/arm-none-eabi-gcc@v1
36+
with:
37+
release: '9-2020-q2'
3838

3939
- name: Install Ninja
40-
uses: seanmiddleditch/gha-setup-ninja@v1
40+
uses: seanmiddleditch/gha-setup-ninja@v3
4141

4242
- name: Build project
4343
run: |

.github/workflows/MIMXRT1050-EVKB.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
with:
3232
submodules: recursive
3333

34-
# Get the ARM GCC compiler
35-
- name: Install tools for linux
36-
if: matrix.os == 'ubuntu-latest'
37-
run: sudo apt install gcc-arm-none-eabi cmake
34+
- name: arm-none-eabi-gcc
35+
uses: fiam/arm-none-eabi-gcc@v1
36+
with:
37+
release: '9-2020-q2'
3838

3939
- name: Install Ninja
40-
uses: seanmiddleditch/gha-setup-ninja@v1
40+
uses: seanmiddleditch/gha-setup-ninja@v3
4141

4242
- name: Build project
4343
run: |

.github/workflows/MIMXRT1060-EVK.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
with:
3232
submodules: recursive
3333

34-
# Get the ARM GCC compiler
35-
- name: Install tools for linux
36-
if: matrix.os == 'ubuntu-latest'
37-
run: sudo apt install gcc-arm-none-eabi cmake
34+
- name: arm-none-eabi-gcc
35+
uses: fiam/arm-none-eabi-gcc@v1
36+
with:
37+
release: '9-2020-q2'
3838

3939
- name: Install Ninja
40-
uses: seanmiddleditch/gha-setup-ninja@v1
40+
uses: seanmiddleditch/gha-setup-ninja@v3
4141

4242
- name: Build project
4343
run: |

.github/workflows/STM32L4_L4+.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
with:
3232
submodules: recursive
3333

34-
# Get the ARM GCC compiler
35-
- name: Install tools for linux
36-
if: matrix.os == 'ubuntu-latest'
37-
run: sudo apt install gcc-arm-none-eabi cmake
34+
- name: arm-none-eabi-gcc
35+
uses: fiam/arm-none-eabi-gcc@v1
36+
with:
37+
release: '9-2020-q2'
3838

3939
- name: Install Ninja
40-
uses: seanmiddleditch/gha-setup-ninja@v1
40+
uses: seanmiddleditch/gha-setup-ninja@v3
4141

4242
- name: Build project
4343
run: |

MXChip/AZ3166/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{
3131
"id": "device.host",
3232
"type": "promptString",
33-
"default": "localhost:3333",
33+
"default": "host.docker.internal:3333",
3434
"description": "The local hostname with port for GDB to connect to"
3535
}
3636
]

MXChip/AZ3166/AZ3166.code-workspace

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"git.autofetch": true,
1010
"git.confirmSync": false,
1111
"cmake.configureOnOpen": true,
12-
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
12+
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
13+
"cmake.generator": "Ninja"
1314
}
1415
}

MXChip/AZ3166/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ set(GSG_BASE_DIR ${CMAKE_SOURCE_DIR}/../..)
88
set(CORE_SRC_DIR ${GSG_BASE_DIR}/core/src)
99
set(CORE_LIB_DIR ${GSG_BASE_DIR}/core/lib)
1010

11+
# use the repo version of ninja on Windows as there is no Ninja installer
12+
if(WIN32)
13+
set(CMAKE_MAKE_PROGRAM ${GSG_BASE_DIR}/cmake/ninja CACHE STRING "Ninja location")
14+
endif()
15+
1116
# Set the toolchain if not defined
1217
if(NOT CMAKE_TOOLCHAIN_FILE)
1318
set(CMAKE_TOOLCHAIN_FILE "${GSG_BASE_DIR}/cmake/arm-gcc-cortex-m4.cmake")

MXChip/AZ3166/CMakeSettings.json

Lines changed: 0 additions & 54 deletions
This file was deleted.

MXChip/AZ3166/app/azure_pnp_info.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* Copyright (c) Microsoft Corporation.
2+
Licensed under the MIT License. */
3+
4+
#ifndef _AZURE_PNP_INFO_H
5+
#define _AZURE_PNP_INFO_H
6+
7+
#define DEVICE_INFO_COMPONENT_NAME "deviceInformation"
8+
9+
// Device Info property names
10+
#define DEVICE_INFO_MANUFACTURER_PROPERTY_NAME "manufacturer"
11+
#define DEVICE_INFO_MODEL_PROPERTY_NAME "model"
12+
#define DEVICE_INFO_SW_VERSION_PROPERTY_NAME "swVersion"
13+
#define DEVICE_INFO_OS_NAME_PROPERTY_NAME "osName"
14+
#define DEVICE_INFO_PROCESSOR_ARCHITECTURE_PROPERTY_NAME "processorArchitecture"
15+
#define DEVICE_INFO_PROCESSOR_MANUFACTURER_PROPERTY_NAME "processorManufacturer"
16+
#define DEVICE_INFO_TOTAL_STORAGE_PROPERTY_NAME "totalStorage"
17+
#define DEVICE_INFO_TOTAL_MEMORY_PROPERTY_NAME "totalMemory"
18+
19+
// Device Info property values
20+
#define DEVICE_INFO_MANUFACTURER_PROPERTY_VALUE "MXCHIP"
21+
#define DEVICE_INFO_MODEL_PROPERTY_VALUE "AZ3166"
22+
#define DEVICE_INFO_SW_VERSION_PROPERTY_VALUE "1.0.0"
23+
#define DEVICE_INFO_OS_NAME_PROPERTY_VALUE "Azure RTOS"
24+
#define DEVICE_INFO_PROCESSOR_ARCHITECTURE_PROPERTY_VALUE "Arm Cortex M4"
25+
#define DEVICE_INFO_PROCESSOR_MANUFACTURER_PROPERTY_VALUE "STMicroelectronics"
26+
#define DEVICE_INFO_TOTAL_STORAGE_PROPERTY_VALUE 1024
27+
#define DEVICE_INFO_TOTAL_MEMORY_PROPERTY_VALUE 128
28+
29+
#endif

0 commit comments

Comments
 (0)