You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple Hello World example for NXP FRDM-K32L36 Evaluation Kit.
This example prints "Hello World" and a counter value via the standard output which is routed to the debug console through Virtual COM port.
Arm Compiler 6 (automatically installed when using Visual Studio Code with vcpkg)
Build Solution/Project
Using Visual Studio Code with extensions
Required tools described in file 'vcpkg-configuration.json' should be automatically installed by vcpkg. You can see the status of vcpkg in the status bar.
Required CMSIS-Packs need to be also installed. In case a required pack is missing, a notification window will pop-up to install the missing pack.
Open the CMSIS view from the side bar and press the 'Build' button.
Using Command Line Interface (CLI)
Download required packs (not required when the packs are already available) by executing the following commands:
Build the project by executing the following command:
cbuild hello.csolution.yml
Run the application
Prerequisite
Follow the instructions
for updating on-board OpenSDA to the latest DAPLink FW.
Using Visual Studio Code with extensions
Connect the board's DAPLink USB to the PC (provides also power).
Connect to the board's serial port using the Serial Monitor in the panel area.
Open the CMSIS view from the activity bar, press the 'Load & Run' button, and wait until the image is programmed and starts running.
Observe the terminal output.
Debug the application
Before starting to debug the application, make sure that you have gone through the steps as
described in the run the application section.
Open the CMSIS view from the activity bar, press the 'Load & Debug' button, and wait until the image is programmed and the debug session
starts. It will run to main and stop there. Start debugging.