2023-11-24 05:38 AM
Hello
Is there a way to activate "POWER ON" for programming or debbuging a STM32 with STLINKV3-PWR when using STMCube programmer or STMCube IDE ?
2023-11-24 05:52 AM
Not sure. But you may find your answer here: https://www.st.com/resource/en/user_manual/um1718-stm32cubemx-for-stm32-configuration-and-initialization-c-code-generation-stmicroelectronics.pdf
2023-11-30 01:21 AM
2024-01-05 07:51 AM
Hi!
I went through both of the documents and I believe none of them answers the question.
The way I read the question is: How do we activate the SMU to provide voltage on OUT and AUX pins, while using SWD to program a board using STMCubeProgrammer (I'd prefer to use the CLI version).
The UM3097 shows the general specs and showcases the capabilities, but does not explain how to use the tool.
The AN5999 on the other hand shows how to use the various power analysis tools. It may be hidden in one of the IDEs, but there seems to be no indication anywhere in the documentation on how to turn on power during the programming/debugging process.
When developing this is inconvenient, since for programming it seems I have to power the board from external supply or launch an extra tool to initialize it, though it seems that crashing the PowerMonitor app keeps the output enabled (it always crashes for me after power on, but that's another story - I have to investigate more).
I also see a second issue, and that is I can't find a way in the tools to program OUT and AUX different voltages, but from the specs, it seemed those should be really independent power supplies. I'd like to use OUT as 1.8V power and AUX for 3.6 battery-like source.
@Sara BEN HADJ YAHYA, can you check if this usecase is supported in any of the tools and point us to the relevant documentation? Thanks.
2024-01-18 12:43 AM
Hello
The best solution would be for STM to simply add a power button on the next version of its tools (CubeProgrammer, CubeIde, CubeMonitor...), it does not seem very complicated since the command exists in the CubeMonitor-Power.
Thanks in advance !
JM