[SOLVED] Debugging STM32H745

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Debugging STM32H745

    Hello,

    I am trying to debug a dual core STM32H745 with Ozone V3.30d.
    While I can flash and step thought the code on the M7, it does not work on the M4. Flashing works, but I cannot debug.
    Console output after clicking Resume:

    Source Code

    1. T-bit of XPSR is 0 but should be 1. Changed to 1.
    Subsequent Resumes result in the same message.

    Is this essentially possible with Ozone?
    What am I missing?
  • ...I missed the logic of the default STM32Cube code. M7 will timeout until I am able to start the second debug session and M4 will end up in stop-mode.
    After fixing that, now both cores are running, but halting the CPU on either Ozone instance will only stop the M4, the M7 keeps running.

    How can I halt the M7 or both at once?
  • Hi,
    Both at once:
    Executed via cross trigger.
    Not supported yet. It's on our list but without a fixed schedule at the moment.

    M7 only:
    You should be able to halt the M7 in the M7 debug session.
    If this does not work, could you please share a J-Link log file of this session with us?

    How to enable: wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File

    BR
    Fabian
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.