-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32H7A3ZI: Flash verification fails if UART/USART interface is enabled #1249
Comments
@EmanueleGiacomini Can you try use connect under reset? |
We've just tested but the output seems unchanged
Edit: If it can be of help, we have the same issue on another project which wrote and verified on STM32H723ZG (Nucleo-H723ZG). After a porting on the current board, we started facing this issue. |
@defyingphysics Please also take a look at #1184. Thanks. |
@Nightwalker-87 Used correct value of It's strange that UART affects. Perhaps UART used together with DMA. DMA clocking must be disabled in RCC (perhaps something is not working correctly...): stlink/src/stlink-lib/flashloader.c Lines 145 to 148 in d053470
|
@Ant-ON I see. Can you check with applicable (maybe not the same) hardware? |
Left a message on the thread, hope it is what you are after. As mentioned, I have a H7A3ZI-Q that I can help run other tests on. |
Following recent refactoring work, the code snippet in #1249 (comment) is now located in |
I found these threads, which provide additional information and likely resolve this issue: |
The provided references indicate that this topic is a more general issue and not (specifically) related to the |
Closes #1294. |
Further we kindly ask you to describe the detected problem as detailed as possible and to add debug output if available, by using the following template:
Commandline output:
Expected/description:
While testing the board, we noticed that st-flash fails during the verification phase if a UART/USART interface is enabled through STM32CubeMX.
By flashing the same build with STM32CubeProgrammer, no issues appears during the write and the verification phases.
The code is fully generated by STM32CubeMX with a small addition by ours to transmit a sample text on USART3 every 100 ms
We replicated this behavior on two different machines (Pop!_OS 20.04 on Intel i7-9850H and Ubuntu 20.04.4 on Intel i7-7700HQ)
The text was updated successfully, but these errors were encountered: