Demo examples for Embedded World:
Tools:
- CMSIS-Toolbox 0.10.2
- Keil MDK 5.37
- Arm Compiler 6.18 (part of MDK)
CMSIS packs: see examples for list of required packs
Subdirectory: AWS_MQTT_MutualAuth_Demo
Demo for connecting to AWS cloud. See details in README.md.
Note: Make sure to update the credentials as described.
Demo is available for the following targets:
IP-Stack
: runs on IMXRT1050-EVKB board and uses FreeRTOS+TCP with EthernetWiFi
:- runs on B-U585I-IOT02A board and uses WiFi interface with on-board WiFi module (default)
- runs on IMXRT1050-EVKB board and uses WiFi interface with ESP8266 WiFi module (alternative A)
- runs on IMXRT1050-EVKB board and uses WiFi interface with WizFi360 WiFi module (alternative B)
AVH
: runs on Arm Virtual Hardware Targets (MPS3 platform for Corstone-300)
Required CMSIS packs are listed in the Demo.csolution.yml file.
Board: IMXRT1050-EVKB
Connectivity: FreeRTOS+TCP with Ethernet
-
Use
csolution
to create.cprj
project files
csolution convert -s Demo.csolution.yml -c Demo.Debug+IP-Stack
csolution convert -s Demo.csolution.yml -c Demo.Release+IP-Stack
-
Build a specific project
- use
cbuild
cbuild Demo.Debug+IP-Stack.cprj
cbuild Demo.Release+IP-Stack.cprj
- or use MDK and import
Demo.<build-type>+IP-Stack.cprj
and build with MDK
Note: due to current importer limitation it is necessary to manually add the following preprocessor defineMBEDTLS_CONFIG_FILE=\"aws_mbedtls_config.h\"
- Run the demo
- connect the board Debug USB to a PC (provides also power)
- open terminal on PC and connect to board's serial port (Baud rate: 115200)
- program the image to the target
- when using MDK:
- select CMSIS-DAP Debugger (Options for Target - Debug)
- use Flash Download to program the image
- when using MDK:
- reset the target and observe messages in the terminal
Board: B-U585I-IOT02A
Connectivity: WiFi interface with WiFi module
-
Use
csolution
to create.cprj
project files
csolution convert -s Demo.csolution.yml -c Demo.Debug+WiFi
csolution convert -s Demo.csolution.yml -c Demo.Release+WiFi
-
Build a specific project
- use
cbuild
cbuild Demo.Debug+WiFi.cprj
cbuild Demo.Release+WiFi.cprj
- or use MDK and import
Demo.<build-type>+WiFi.cprj
and build with MDK
Note: due to current importer limitation it is necessary to manually add the following preprocessor defineMBEDTLS_CONFIG_FILE=\"aws_mbedtls_config.h\"
- Run the demo
- connect the board ST-Link USB to a PC (provides also power)
- open terminal on PC and connect to board's serial port (Baud rate: 115200)
- program the image to the target
- when using MDK:
- use Flash Download to program the image
- when using MDK:
- reset the target and observe messages in the terminal
Demo can run also on IMXRT1050-EVKB bard with external WiFi module (ESP8266 or WizFi360). Modify the following project files:
- Demo.csolution.yml:
- change the target type
WiFi
to usedevice: MIMXRT1052DVL6B
- change the target type
- Demo.cproject.yml:
- include IMXRT1050-EVKB Board layer for
WiFi
target - exclude B-U585I-IOT02A Board layer for
WiFi
target
- include IMXRT1050-EVKB Board layer for
- Board/IMXRT1050-EVKB/Board.clayer.yml:
- enable external WiFi module:
- component: Keil::CMSIS Driver:WiFi:ESP8266&UART
or
- component: Keil::CMSIS Driver:WiFi:WizFi360&UART
- enable external WiFi module:
Arm Virtual Hardware: MPS3 platform for Corstone-300
Connectivity: Socket interface with VSocket
-
Use
csolution
to create.cprj
project files
csolution convert -s Demo.csolution.yml -c Demo.Debug+AVH
csolution convert -s Demo.csolution.yml -c Demo.Release+AVH
-
Build a specific project
- use
cbuild
cbuild Demo.Debug+AVH.cprj
cbuild Demo.Release+AVH.cprj
- or use MDK and import
Demo.<build-type>+AVH.cprj
and build with MDK
Note: due to current importer limitation it is necessary to manually add the following preprocessor defineMBEDTLS_CONFIG_FILE=\"aws_mbedtls_config.h\"
- Run the demo
- within uVision (MDK):
- select Models ARMv8-M Debugger (Options for Target - Debug)
- click debugger settings and enter:
- Command: $KARM\VHT\VHT_MPS3_Corstone_SSE-300.exe
- when running standalone (via command line) and VHT executable in path):
VHT_MPS3_Corstone_SSE-300 -C mps3_board.visualisation.disable-visualisation=1 -C mps3_board.telnetterminal0.start_telnet=0 -C mps3_board.uart0.out_file=- -a <image>
Subdirectory: AWS_MQTT_OTA_TFM
Demo for secure Over-The-Air firmware update using Amazon AWS for STM32U5. See details in README.md.
Subdirectory: Blinky
Simple project blinking LEDs. See details in README.md.
Demo is available for the following targets:
B-U585I-IOT02A
: runs on B-U585I-IOT02A boardAVH_MPS3_Corstone-300
: runs on Arm Virtual Hardware Targets (MPS3 platform for Corstone-300)
Required CMSIS packs are listed in the Blinky.csolution.yml file.
Board: B-U585I-IOT02A
-
Use
csolution
to create.cprj
project files
csolution convert -s Blinky.csolution.yml -c Blinky.Debug+B-U585I-IOT02A
csolution convert -s Blinky.csolution.yml -c Blinky.Release+B-U585I-IOT02A
-
Build a specific project
- use
cbuild
cbuild Blinky.Debug+B-U585I-IOT02A.cprj
cbuild Blinky.Release+B-U585I-IOT02A.cprj
- or use MDK and import
Blinky.<build-type>+B-U585I-IOT02A.cprj
and build with MDK
- Run the demo
- connect the board Debug USB to a PC (provides also power)
- program the image to the target
- run the program
Arm Virtual Hardware: MPS3 platform for Corstone-300
-
Use
csolution
to create.cprj
project files
csolution convert -s Blinky.csolution.yml -c Demo.Debug+AVH_MPS3_Corstone-300
csolution convert -s Blinky.csolution.yml -c Demo.Release+AVH_MPS3_Corstone-300
-
Build a specific project
- use
cbuild
cbuild Blinky.Debug+AVH_MPS3_Corstone-300.cprj
cbuild Blinky.Release+AVH_MPS3_Corstone-300.cprj
- or use MDK and import
Blinky.<build-type>+AVH_MPS3_Corstone-300.cprj
and build with MDK
- Run the demo
- within uVision (MDK):
- select Models ARMv8-M Debugger (Options for Target - Debug)
- click debugger settings and enter:
- Command: $KARM\VHT\VHT_MPS3_Corstone_SSE-300.exe
- when running standalone (via command line) and VHT executable in path):
VHT_MPS3_Corstone_SSE-300 -a <image>
Subdirectory: EdgeImpulse
Machine learning demo. See details in README.md.