I'm trying to upload and debug a program using openocd. The problem i have is that it keeps crashing at line 50 in main.cpp (C:\Users\X\AppData\Local\arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\main.cpp) which is the statement initVariant().
I am using an NUCLEO-L452RE-P board as a debugger to a custom board which has an L452RE. Is there any way to debug this problem further to find out why it is crashing here?
The OpenOCD log is here:
Cheers,openocd: Open On-Chip Debugger 0.10.0+dev-01058-g853a05287 (2020-02-13-16:41)
openocd: Licensed under GNU GPL v2
openocd: For bug reports, read
openocd: http://openocd.org/doc/doxygen/bugs.html
openocd: debug_level: 2
openocd:
=thread-group-added,id="i1"
GNU gdb (xPack GNU Arm Embedded GCC, 32-bit) 8.3.0.20190709-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
=cmd-param-changed,param="pagination",value="off"
Reset_Handler () at C:\Users\Richa\AppData\Local\arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc\startup_stm32l452xx.s:63
63 ldr sp, =_estack /* Set stack pointer */
Note: automatically using hardware breakpoints for read-only addresses.
Breakpoint 1, main () at C:\Users\Richa\AppData\Local\arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\main.cpp:50
50 initVariant();
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
The program '' has exited with code 0 (0x0).
Richard