Skip to content

ST Blinky power_mgmt sample crashes b_u585i_iot02a discovery board #91112

Closed
@whati001

Description

@whati001

Hi all,

I am not sure why, but the basic blinky power management sample from st zephyr/samples/boards/st/power_mgmt/blinky somehow crashes the board b_u585i_iot02a. At least, after flashing the sample, neither the reset button nor the sample runs. After disconnecting the board from the USB (ST Link CN8) the sample code and button works again.

But this is looks odd to me, why should I have to cut the power to "reset" the device. I have already checked the board configuration, Data Readout Protection and TF-M is disabled.

Image

In addition, the low power timer (stm32_lp_tick_source) is enabled in the devicetree. There is even a overlay file, so I have expected the same to work fine.

At thirst, I thought this is an issue from the board itself, but when I flash the same sample with CONFIG_PM* disabled, everything works perfectly. Is there something to consider by the debugger when we use low power?

Here is the error message after flashing the sample:

(env) ➜  zephyr_workspace_st west flash
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner stm32cubeprogrammer
-- runners.stm32cubeprogrammer: mass erase requested
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.19.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 0047002E3432511630343838
ST-LINK FW  : V3J8M3
Board       : B-U585I-IOT02A
Voltage     : 3.30V
Error: Unable to get core ID
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
2nd connect tentative with frequency (8MHz)
ST-LINK SN  : 0047002E3432511630343838
ST-LINK FW  : V3J8M3
Board       : B-U585I-IOT02A
Voltage     : 3.30V
Error: Unable to get core ID
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
FATAL ERROR: command exited with status 1: /home/akarner/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI --connect 'port=swd reset=HWrst' --erase all

I am using the main branch with hash: 6559c7f

Thanks in advice and regards
Andreas Karner

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions