The previous step was to Connect Your PLT to Your PLTcloud Account. If you have not already done so, go to that step.
PLT Test plan format
Test plans are a simple YAML-formatted file that controls the PLT. You can create a test plan with any text editor. Some good references are the official YAML website or this YAML Quick Start guide. PLT Test plans are divided into steps, and each step can include one or more commands. The basic fields are:
- title: Name of test plan
- identPrefix: Optional: step prefix prepended to the step identifier.
- suite: Test plan wrapper tag
- ident: Optional: Manual step identifier. For steps with multiple commands, a suffix will be auto-generated and appended to this identifier in the test report.
- title: Optional: description of step
- steps: Start of commands tag.
- command: Command tag
- options: command option tag
Test Plans Examples
Create your test plan in any text editor. Below are some examples of the format
Hello World Test Plan - This test plan does not require any hardware.
title: "PLT Hello World"
identPrefix: "Demo-Test-Plan"
suite:
- title: First Step Complete
steps:
- command: operator "Hello World"
- command: operator "Step 1 Second Command"
- title: Second Step Complete
steps:
- command: operator "Step 2 First Command"
- command: operator "Step 2 Second Command"
Test Suite Programming Example - This requires the DEMO PCB and files
title: "DEMO Test Program"
suite:
- ident: DEMO - 1
title: Power on
steps:
- command: power SWD on
- ident: DEMO - 2
title: Identify DUT
steps:
- command: identify nRF52
- ident: DEMO - 2
title: Erase nRF52 with FT2232H Mini Module
steps:
- command: erase nRF52
- ident: DEMO - 3
title: Program LY10-DEMO-BOARD FW nRF52 with FT2232H Mini Module
steps:
- command: program nRF52 s132_nrf52_6.0.0_softdevice.hex,ly10-demo-fw-0.1.8.hex
- ident: DEMO - 4
title: Power off
steps:
- command: power off
For basic programming, the commands you will need are:
Name |
Description |
Reference Link |
power |
Power the device on and off |
|
erase |
Erase the microcontroller |
|
identify |
Record internal microcontroller identifier |
|
program |
Program the microcontroller. |
|
operator |
Display an instruction on the PLT screen |
After you create a test plan you can validate the formatting with the following sites:
Here are some text editors:
- Atom - https://atom.io/
- Sublime - https://www.sublimetext.com/
Comments
0 comments
Please sign in to leave a comment.