RH850 Console#

After the target is connected, the MCU prompt displays in the serial console. Use the MCU console to run commands and get information from the MCU.

UART Settings#

The serial communication settings for the MCU console are as follows:

  • Baud rate: 115,200 bits per second (bps)

  • Data: 8-bit, no parity, 1 stop

MCU Console Commands#

The MCU console commands are as follows.

Command

Description

mcureset

Power cycle board including MCU.

version

Show the current flashed/running firmware version.

cansetbr [a|b|c|d|e|f] [125|250|500]

Switch baudrate of requested CAN channel to supported baudrate.

cycliccanon [CAN|CANFD|CANEx|All]

Switch on Cyclic CAN/CANFD/CANEx messages.

cycliccanoff [CAN|CANFD|CANEx|All]

Switch off Cyclic CAN/CANFD/CANEx messages.

i2cread x y z n

Read ‘n’ bytes from device ‘y’ at offset ‘z’ of I2C-controller ‘x’ (all hex-byte-values).

i2cwrite x y z n b0 b1 ...

Write ‘n’ bytes to device ‘y’ at offset ‘z’ , values Byte-b0, Byte-b1 …. of I2C-controller ‘x’ (all hex-byte-values).

inforomdump

Dump the Inforom content in hex format.

help

Show all available commands supported.

poweron

Turn main power on and release Tegra resets.

poweroff [safeshutdown]

Set the outputs to system power off state.

setdfltbtchain [x1] [A|B|C|D]

Set default boot chain configuration for Tegra x1 to A|B|C|D.

getdfltbtchain [x1]

Get default boot chain configuration for Tegra x1.

setnxtbtchain [x1] [A|B|C|D]

Set next boot chain for Tegra x1 to A|B|C|D.

getnxtbtchain [x1]

Get next boot chain configuration for x1.

tegrarecovery [x1] [on|off]

Set Tegra X1 in recovery mode.

tegrareset [x1] [h]

Reset Tegra X1. Default is ‘X1’. If ‘h’ option is supplied, then hold the specified Tegra in reset.

status

Display the MCU internal status.

show_fanrpm

Show RPM of all fans.

set_fanpwm [1|2] [DutyCyclePercentage]

Set Fan PWM, that is, duty cycle.

get_temperature

Get temperature.

send_temperature [Temperature]

Send temperature.

set_tmonerror [init|rdwr|lcltgl|rmttgl|tmonalert|tmontherm]

Inject false case.

entersc7

Enter SC7 power mode.

exitsc7

Exit from SC7 power mode.

readvrs10status

Read VRS10 status register.

readvrs11status

Read VRS11 status register.

showvoltages

Show ADC Voltages

mcureset [force]

Power cycle the board including MCU

cansendmsg

Send one shot msg

canrxprintenable

Print incoming Rx msgs.

forcepoweroff

Set the outputs to system power off state.

getactivebtchain [x1|x2|NULL_PTR]

Get active boot chain configuration for x1/x2. Pass NULL_PTR for error injection.

spiwrite x n b0 b1 ...

Writes ‘n’ bytes to device ‘x’ , values Byte-b0, Byte-b1 …. of SPI-controller ‘x’ (all hex-byte-values). In case of PMIC n represents offset address and only a byte of data can be sent at a time. All other inputs are ingorned.

spiread x n b0 b1 ...

Writes ‘n’ bytes to device ‘x’ , values Byte-b0, Byte-b1 …. of SPI-controller ‘x’ (all hex-byte-values). In case of PMIC n represents offset address and only a byte of data can be read at a time. All other inputs are ingorned.

read_soc_temp

Read SOC temperature.

clear_status_reg

Clear the status registers.

dump_tmon_regs

Dump tmon regs.

disable_thermal_mon

Disable the thermal monitor.

switchfwtobackside [ack]

Switch the Fw to Back Side.

getflashedarea [front|back]

Get the flashed area details.

hwpropstatus

Status of active region of the Hw Property Area.

setuartbaudrate

Set the UART Baud Rate.

tempsensoralert

Temp sensor trigger alert.

tempsensorshtdn

Temp sensor trigger shutdown.

tempsensorreset

Temp sensor reset.

boardadcmon [enable|disable]

Enable or Disable Board ADC Monitoring

profileadcmon

Print the Board ADC Mon timing profile.

showreg [addr] [bytes]

Show the Register value.

clearvrs10status

Clear the VRS10 Status register.

clearvrs11status

Clear the VRS11 Status register.

inforom [print|dump]

Display the inforom contents.

setbtchnsel  [gpio|marker]

Set bootchain selection mode.

getbtchnsel

Get the current bootchain selection mode.

vrs12clrfltsts

Clear faults in VRS12.

vrs12getfltsts

Get fault flags in VRS12.

runlatenttst [pwrup | pwrdwn]

Latent test run configuration.

ssm [state]

Request the power state via SSM.

getssmstate

Get the power state via SSM.

key [on/off]

Key event simulation.

door [open/close]

Door event simulation.

getpwrstate

Get the power state.