Processor Power Consumption Test

Introduction:

Processor power consumption test routine, including the following scenarios:

  • One core executes CoreMark benchmark program

  • One core executes while loop for a period of time, executing nop instructions in the loop

  • System shutdown, can be woken up by RTC timer

  • System shutdown, woken up by button press The wake-up PIN varies on different development boards, corresponding relationships are as follows:

  • EH-LB551: Uses PA80, corresponding to the INT pin on the external Bluetooth or GPS interface on the HDK board

  • EH-LB555: Uses PA79, corresponding to TP_INT on the bottom HDK board

  • EC-LB58X: Uses PA64

  • EH-LB561/EH-LB563: Uses PB34, corresponding to HR_INT on the HDK board

  • EH-ss6500/EH-LB52x: Uses PA24, corresponding to GPS_PEN on the HDK When the wake-up PIN is at low level, HCPU cannot enter low power mode. At this time, commands can be sent to HCPU through console to execute specified tasks. When the wake-up PIN is connected to high level (i.e., 1.8V voltage), HCPU enters low power mode, and at this time HCPU cannot respond to console commands. LCPU never enters low power mode. If LCPU is started, when not executing tasks, LCPU is in WFI state and can respond to commands from console. When LCPU is not started, LCPU is considered to be in halt state and cannot process console commands.

PC and the baseboard are connected using USB Type-C cable, which will enumerate two serial ports. HCPU uses UART1 as Console port, LCPU uses UART4 as Console port.

Project Description

  • Development boards supported by the project:

    • eh-lb551

    • eh-lb555

    • ec-lb583

    • ec-lb587

    • eh-lb561

    • eh-lb563

    • eh-lb523

  • Compilation method: Enter hcpu directory and execute command scons --board=<board_name> -j8, where board_name is the board name. For example, to compile eh-lb561 board, the complete command is scons --board=eh-lb561 -j8. The compiled image file is stored in HCPU’s build_<board_name> directory. For project usage, refer to <>