![NXP Semiconductors SLN-LOCAL2-IOT User Manual Download Page 65](http://html.mh-extra.com/html/nxp-semiconductors/sln-local2-iot/sln-local2-iot_user-manual_1721901065.webp)
Figure 78. UART port header - J26
9.6 Running the test script
The test script is written in Python. It is recommended to set a virtual environment:
• python3 -m venv env
• source env/bin/activate (for Linux OS) or .\env\Scripts\activate (for PowerShell)
To run the test script, install the following modules:
• python3 -m pip install pyserial
• python3 -m pip install libscrc
This script is tested on Python 3.8.5 running in Windows OS and Linux OS. To start the update, open the fwupdate_client.py script
in the sln_local2_iot_bootloader/unit_tests folder in a terminal. Running the script without any arguments shows the arguments
that the script takes.
~/sln_local2_iot_bootloader/unit_tests $:
python3 fwupdate_client.py
Usage:
fwupdate.py device method bank appFile appSignFile
device: The target device, the sln_local_iot or sln_vizn_iot or sln_viznas_iot board <local/
vizn/viznas>
method: Firmware update method <OTA/OTW>
bank: The flash bank <A/B>
appFile: File to update
appSignFile: File signature or None if not used
The script requires you to specify the following:
1. Device: local (equivalently applied to local2)
2. Method: OTA/OTW
3. Bank: A/B (see
Application BIN file generation
4. Appfile: binary for the sln_local2_local_demo project (see
Building and programming with MCUXpresso
)
NXP Semiconductors
Bootloader
SLN-LOCAL2-IOT Developer’s Guide, Rev. 0, 19 April 2021
User's Guide
65 / 87