System Inspection
Contents
Introduction
Memory Dump
Peripherals Power
Introduction
This component introduces some miscellaneous functions to help in system inspection and debugging.
Memory Dump sys_inspect.dump_memory()
It is a utility function to dump a certain memory space.
It takes the following keyword argument:
addressthe start address of the dump memory spacesizesize of data to dumppedwordsizedisplay word size of dumped data (32, 16, or 8)linesizenumber of display bytes per linedisp_textshow the printable ascii character of the data.
Example: the following picture shows an example of the memory dump
Peripherals Power
It is a set of utilities that help in inspection of the enabled system peripherals. That could help in power management inspection. The current available methods are:
sys_inspect.periph_module_list()It lists the whole list of system peripherals and indicate the peripheral along with how many other system actors are using it. The periphiral in use indicate that its power is on.sys_inspect.periph_power(<periph>, True|False)It tries to disabled the module compulsory, in this case, the system may perform in undesired behaviour
The following is a screen shot to the periph_module_list()