
NXP Semiconductors
UM11379
UJA116xA evaluation boards
Example scripts using all available commands:
// This is an example script
// Do not run this script with the auto-repeat option,
// because the script includes a PAUSE command
// write value 0x07 to Mode-control register
SET_REG:UJA1168AF:Primary control:Mode control:0x07
// read Global event status register
GET_REG:UJA1168AF:Event capture:Global event status
// turn on red LED
SET_DPIN:UJA1168AF:RedLED:LOW
// give user time to identify the current LED color
PAUSE:RGB LED will change from red to green
// turn off red LED & turn on green LED
SET_DPIN:UJA1168AF:RedLED:HIGH
SET_DPIN:UJA1168AF:GreenLED:LOW
Example script that programs the SBC for Software Development mode:
// Script for programming UJA1168AF SBC MTPNV registers to Software Development mode
// For UJA1164A-EVB/UJA1168AXF-EVB replace “UJA1168AF” with applicable device name
// Read MTPNV status register
GET_REG:UJA1168AF:MTPNV and ID Registers:MTPNV status
// The user can now check if device is ready for programming
PAUSE:Only if MTPNV status value was an odd number, programming can be successful
// Set default reset length to maximum and no auto-start of VEXT/INH
SET_REG:UJA1168AF:MTPNV and ID Registers:Start-up control:0x0
// Set Software Development mode, allow Sleep mode and set max reset threshold as default
SET_REG:UJA1168AF:MTPNV and ID Registers:SBC configuration control:0x04
// Enter the CRC code that fits to above selections
SET_REG:UJA1168AF:MTPNV and ID Registers:MTPNV CRC control:0xFB
A tool is provided as an attachment to this document to calculate the CRC (see last two
lines in above script).
6.4.7 Logging read and write operations
Each executed read or write access is logged in the upper left corner of the FlexGUI
window. The logged data can be saved to a log file at any time.
A number of
Log Level
filter options are available to tailor the logged data to the needs
). When 'FINEST' is selected, all bits of signals SDI ('out')
and SDO ('in') are displayed for each SPI transfer (see script execution example in
).
UM11379
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2021. All rights reserved.
User manual
Rev. 1 — 23 April 2021
43 / 56