Skip to main content
Explorer II
October 15, 2024
Solved

STM32H563 bootloader SPI configuration

  • October 15, 2024
  • 1 reply
  • 1128 views

Hi,

in AN2606 rev 64, I cannot find the SPI settings for STM32H563 bootloader, i e CPOL, CPHA etc. For the other MCU:s in this document, this information is provided.

For example H72xxx comes with CPOL = CPHA = low.

Using these settings, and a rather slow clock at 0.5 MHz, I send 0x5A, and get 0xA5 in return. This looks good, but the problem is that no matter what I send, I get 0xA5 in return.

What am I missing here?

 

 

    This topic has been closed for replies.
    Best answer by STTwo-32

    Hello @Dimlite 

    As it is not mentioned on the on the AN2606, that means they should be the kept as they are on rest value. I've submitted a ticket to our team so they can add this information on the AN2606 (ticket number 193801).

    Best Regards.

    STTwo-32

     

    1 reply

    STTwo-32Answer
    Technical Moderator
    October 15, 2024

    Hello @Dimlite 

    As it is not mentioned on the on the AN2606, that means they should be the kept as they are on rest value. I've submitted a ticket to our team so they can add this information on the AN2606 (ticket number 193801).

    Best Regards.

    STTwo-32

     

    DimliteAuthor
    Explorer II
    October 15, 2024

    Thanks for the fast response. I've been playing around with the synchronize message, and it seems to me that it takes repeated attempts before I get an acknowledge. It often takes around 10 attempts of sending 5A + sync before I get the ack. Is this the expected behavior?

    Technical Moderator
    October 16, 2024

    Hello @Dimlite 

    The Full procedure to get the acknowledgement is explicated well on the AN4286

    Best Regards.

    STTwo-32