STM32L152 keeps external resetting. Flashing is succesfull, but after that it keeps resetting over and over again. Does anyone why?
Here is the report:
Open On-Chip Debugger 0.11.0-rc2+dev-00037-g4c4dbd9 (2021-02-09-13:39)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J37S0 (API v2) VID:PID 0483:3748
Info : Target voltage: 2.903249
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : clock speed 4000 kHz
Info : stlink_dap_op_connect(connect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for STM32L152RCTx.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : accepting 'gdb' connection on tcp/3333
Info : Device: STM32L1xx (Cat.3 - Medium+ Density)
Info : STM32L flash size is 256kb, base address is 0x8000000
Warn : GDB connection 1 on target STM32L152RCTx.cpu not halted
undefined debug reason 8 - target needs reset
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x2ba01477
Info : STM32L152RCTx.cpu: external reset detected
Info : accepting 'gdb' connection on tcp/3333
Warn : GDB connection 2 on target STM32L152RCTx.cpu not halted
undefined debug reason 8 - target needs reset
undefined debug reason 8 - target needs reset
shutdown command invoked
Info : dropped 'gdb' connection
shutdown command invoked
