NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

AM335x PRCM Tools

From Texas Instruments Wiki
Jump to: navigation, search

This page is companion to the AM335x Low Power Design Guide Application Note (this application note is in draft and not yet published).

Introduction[edit]

These tools are intended to be used together to read the state of the PRCM registers on the AM335x, and provide an easy way to quickly visualize the values read from these registers. To do this three components are used:

  • sitara_pwrst.sh: This shell script will read an input file containing a list of named register and address pairs and output a file with the values of these registers as well as their names and addresses.
  • AM335x_reglist.txt: This file contains the names and addresses of registers to be read by sitara_pwrst.sh. It is in the format of Register Name <tab> 0xAddress
  • am335x_prcm_viewer.xlsx: This workbook will take output from the sitara_pwrst.sh script and decodes the values into color coded tables which can quickly indicate whether specific peripherals or clocks are active on the device.

Download[edit]

Download the AM335x PRCM Tools here.

sitara_pwrst.sh[edit]

The sitara_pwrst.sh script accepts one command line argument for the name of the input file with the list of register names and addresses to be accessed. Since the input file is selectable at runtime, this script can be used to read any set of registers desired as long as the formatting is consistent with the requirements described in the AM335x_reglist.txt section. The script uses devmem2 to access the addresses specified in the input file. Note that there is no validation of the addresses, outputs or inputs, thus it is up to the user to check the addresses input to the script. The script also outputs a file based on the time at invocation of the script and the name of the evm that the script is running on. As the registers are being read, their names will be output to the console. An example invocation of sitara_pwrst.sh:

   root@am335x-evm:~# ./sitara_pwrst.sh AM335x_reglist.txt

AM335x_reglist.txt[edit]

The AM335x_reglist.txt file is simply a list of named registers and addresses. Register names and addresses are separated by a tab, and there is one register address pair per line. As mentioned before, the veracity of any register address and name is left up to the user. An excerpt of the first few lines of this file is below:

   PRM_PER_PM_PER_PWRSTST	0x44E00C08
   PRM_WKUP_PM_WKUP_PWRSTST	0x44E00D08
   PRM_MPU_PM_MPU_PWRSTST	0x44E00E04
   PRM_DEV	0x44E00F00

am335x_prcm_viewer.xlsx[edit]

Data page
PRCM Viewer Summary Page

The PRCM viewer is a spreadsheet to make visualizing the data from a PRCM register dump easier. Output from the PRCM register dump is simply copied in its entirety from the .rd1 file output of sitara_pwrst.sh to the "Data" page of the workbook. The cells of the workbook are then populated with the status of all the power and clock domains of the AM335x. There is a summary page as well as individual pages to specify which clocks within each clock domain is active.

To get started with the prcm viewer:

  1. Copy the entirety of the contents of the PRCM register dump to be visualized
  2. Paste the data from the PRCM register dump into the Data page of the PRCM visualizer at cell A1.
  3. Review PRCM status on summary, and power domain pages.
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article AM335x PRCM Tools here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article AM335x PRCM Tools here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article AM335x PRCM Tools here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article AM335x PRCM Tools here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article AM335x PRCM Tools here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article AM335x PRCM Tools here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article AM335x PRCM Tools here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article AM335x PRCM Tools here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article AM335x PRCM Tools here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity