cancel
Showing results for 
Search instead for 
Did you mean: 

Cube programmer halts CPU

Dennis_Restle
Associate

Hi,

 

I hope someone can help me with this.

I am using STM32CubeProgrammer 2.16.0 with an NUCLEO-H563ZI and Ubuntu 23.10. Programming, reading Registers seems to work.

 

STM32CubeProg halts or runs my running or halted MCU approx every second depending on the mode Setting of the ST-LINK, no matter what state the MCU was before.

The Problem happens with the already preinstalled SW or my own SW. ST-Link Firmwareversion on the NUCLEO Board got updated to V3j13M4

 

 

With mode HOTPLUG it halts, reads PC, and continues execution. Independent whether the CPU was halted or running before.

with mode NORMAL it halts the core and reads PC, after that leaves the MCU halted, Independent whether the CPU was halted or running before. 

When i set Verbosity level to 3 i get following log:

01:22:23:952 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:23:952 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:23:952 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:23:952 : halt ap 1
01:22:23:952 : r ap 1 reg 15 PC 0x080040C8
01:22:23:952 : run ap 1
01:22:23:952 : PC value = 0x080040C8 :
01:22:23:953 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:23:953 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:23:953 : r ap 1 @0xE000EE08 0x00000004 bytes Data 0x00000000
01:22:23:953 : r ap 1 @0x500220E0 0x00000004 bytes Data 0x007F0000
01:22:23:953 : r ap 1 @0x500220E0 0x00000004 bytes Data 0x007F0000
01:22:23:953 : r ap 1 @0x500221E0 0x00000004 bytes Data 0x007F0000
01:22:23:953 : r ap 1 @0x500221E0 0x00000004 bytes Data 0x007F0000
01:22:23:954 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:23:954 : SAU Config applied :
01:22:23:954 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000000
01:22:23:954 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x40000000
01:22:23:954 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x4FFFFFE1
01:22:23:954 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:23:954 : Zone 1 defined as non secure: Start= 0x40000000 End= 0x4FFFFFFF
01:22:23:954 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000001
01:22:23:955 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x08FFF000
01:22:23:955 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x08FFF7E1
01:22:23:955 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:23:955 : Zone 2 defined as non secure: Start= 0x8FFF000 End= 0x8FFF7FF
01:22:23:955 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000002
01:22:23:955 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x0BF96000
01:22:23:955 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x0BFA0001
01:22:23:956 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:23:956 : Zone 3 defined as non secure: Start= 0xBF96000 End= 0xBFA0000
01:22:23:956 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000003
01:22:23:956 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x0BFA0760
01:22:23:956 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x0BFA0761
01:22:23:956 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:23:956 : Zone 4 defined as non secure: Start= 0xBFA0764 End= 0xBFA0768
01:22:23:956 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000004
01:22:23:956 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x08000000
01:22:23:957 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x08200001
01:22:23:957 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:23:957 : Zone 5 defined as non secure: Start= 0x8000000 End= 0x8200000
01:22:23:957 : r ap 1 @0x0BF9FAFE 0x00000004 bytes Data 0x000000E3
01:22:24:960 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:24:961 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:24:961 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:24:961 : halt ap 1
01:22:24:961 : r ap 1 reg 15 PC 0x080040C4
01:22:24:961 : run ap 1
01:22:24:961 : PC value = 0x080040C4 :
01:22:24:961 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:24:961 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:24:962 : r ap 1 @0xE000EE08 0x00000004 bytes Data 0x00000000
01:22:24:962 : r ap 1 @0x500220E0 0x00000004 bytes Data 0x007F0000
01:22:24:962 : r ap 1 @0x500220E0 0x00000004 bytes Data 0x007F0000
01:22:24:962 : r ap 1 @0x500221E0 0x00000004 bytes Data 0x007F0000
01:22:24:962 : r ap 1 @0x500221E0 0x00000004 bytes Data 0x007F0000
01:22:24:962 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:24:962 : SAU Config applied :
01:22:24:962 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000000
01:22:24:963 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x40000000
01:22:24:963 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x4FFFFFE1
01:22:24:963 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:24:963 : Zone 1 defined as non secure: Start= 0x40000000 End= 0x4FFFFFFF
01:22:24:963 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000001
01:22:24:963 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x08FFF000
01:22:24:963 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x08FFF7E1
01:22:24:963 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:24:963 : Zone 2 defined as non secure: Start= 0x8FFF000 End= 0x8FFF7FF
01:22:24:964 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000002
01:22:24:964 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x0BF96000
01:22:24:964 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x0BFA0001
01:22:24:964 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:24:964 : Zone 3 defined as non secure: Start= 0xBF96000 End= 0xBFA0000
01:22:24:964 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000003
01:22:24:964 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x0BFA0760
01:22:24:965 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x0BFA0761
01:22:24:965 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:24:965 : Zone 4 defined as non secure: Start= 0xBFA0764 End= 0xBFA0768
01:22:24:965 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000004
01:22:24:965 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x08000000
01:22:24:965 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x08200001
01:22:24:965 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:24:965 : Zone 5 defined as non secure: Start= 0x8000000 End= 0x8200000
01:22:24:966 : r ap 1 @0x0BF9FAFE 0x00000004 bytes Data 0x000000E3
01:22:25:969 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:25:969 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:25:969 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:25:969 : halt ap 1
01:22:25:969 : r ap 1 reg 15 PC 0x080040C4
01:22:25:969 : run ap 1
01:22:25:970 : PC value = 0x080040C4 :
01:22:25:970 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:25:970 : r ap 1 @0x40022050 0x00000004 bytes Data 0x2D30EDF8
01:22:25:970 : r ap 1 @0xE000EE08 0x00000004 bytes Data 0x00000000
01:22:25:970 : r ap 1 @0x500220E0 0x00000004 bytes Data 0x007F0000
01:22:25:970 : r ap 1 @0x500220E0 0x00000004 bytes Data 0x007F0000
01:22:25:970 : r ap 1 @0x500221E0 0x00000004 bytes Data 0x007F0000
01:22:25:971 : r ap 1 @0x500221E0 0x00000004 bytes Data 0x007F0000
01:22:25:971 : r ap 1 @0x40022070 0x00000004 bytes Data 0xC300017C
01:22:25:971 : SAU Config applied :
01:22:25:971 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000000
01:22:25:971 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x40000000
01:22:25:971 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x4FFFFFE1
01:22:25:971 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:25:971 : Zone 1 defined as non secure: Start= 0x40000000 End= 0x4FFFFFFF
01:22:25:972 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000001
01:22:25:972 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x08FFF000
01:22:25:972 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x08FFF7E1
01:22:25:972 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:25:972 : Zone 2 defined as non secure: Start= 0x8FFF000 End= 0x8FFF7FF
01:22:25:972 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000002
01:22:25:972 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x0BF96000
01:22:25:972 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x0BFA0001
01:22:25:973 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:25:973 : Zone 3 defined as non secure: Start= 0xBF96000 End= 0xBFA0000
01:22:25:973 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000003
01:22:25:973 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x0BFA0760
01:22:25:973 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x0BFA0761
01:22:25:973 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:25:973 : Zone 4 defined as non secure: Start= 0xBFA0764 End= 0xBFA0768
01:22:25:973 : w ap 1 @0xE000EDD8 0x00000004 bytes Data 0x00000004
01:22:25:974 : w ap 1 @0xE000EDDC 0x00000004 bytes Data 0x08000000
01:22:25:974 : w ap 1 @0xE000EDE0 0x00000004 bytes Data 0x08200001
01:22:25:974 : w ap 1 @0xE000EDD0 0x00000004 bytes Data 0x00000001
01:22:25:974 : Zone 5 defined as non secure: Start= 0x8000000 End= 0x8200000
01:22:25:974 : r ap 1 @0x0BF9FAFE 0x00000004 bytes Data 0x000000E3

 

 

 

 

 

 

0 REPLIES 0