Utils: pyvar.cm.utils

Cortex-M Helper Module

../_images/arm_cortex_m.png

pyvar.cm.utils.helper

platform

Unix/Yocto

synopsis

Module with miscellaneous functions for Cortex-M.

pyvar.cm.utils.helper.get_cm_cores(module)[source]

Get the number of Cortex-M cores.

Returns

An integer number of cores.

pyvar.cm.utils.helper.get_cm_dtb(module)[source]

Get the DTB file that enables the Cortex-M.

Returns

A string with the name of the DTB file.

pyvar.cm.utils.helper.get_module()[source]

Get the SoM type.

Returns

A string containing the SoM’s type.

pyvar.cm.utils.helper.is_cm_enabled()[source]

Check if the Cortex-M is enabled.

Returns

if enabled, return True if not, return not False

pyvar.cm.utils.helper.list_firmwares()[source]

List all the valid Cortex-M firmwares under the firmware directory.

Returns

A list containing the valid firmwares