cc13x2_cc26x2 System Off demo¶
This sample can be used for basic power measurement and as an example of the various sleep modes on TI CC13x2/CC26x2 platforms. The functional behavior is:
Busy-wait for 5 seconds
Sleep for 2 milliseconds (Idle mode)
Sleep for 3 seconds (Standby mode)
Turn the system off after enabling wakeup through a button press (Shutdown mode)
A power monitor (e.g. EnergyTrace) can be used to distinguish among these states.
This application uses the CC13x2/CC26x2 LaunchPad for the demo.
Building, Flashing and Running¶
west build -b cc1352r1_launchxl samples/boards/cc13x2_cc26x2/system_off west flash
After flashing the device, run the code:
Unplug the USB cable from the LaunchPad and reconnect it to fully power-cycle it.
Open UART terminal.
Hit the Reset button on the LaunchPad.
Device will turn off the external flash, which is on by default, to reduce power consumption.
Device will demonstrate active, idle and standby modes.
Device will explicitly turn itself off by going into shutdown mode. Press Button 1 to wake the device and restart the application as if it had been powered back on.