STM32F042F4P6 does not enter main()?
Hi guys
I am bringing up a small test board containing a STM32F042 MCU with just several connections.
I have exported code from CubeMX5 and imported into Eclipse. I am trying to debug the board with j-link but according to debugger code loops infinitely somewhere from 0x1fff c6e0 to 0x1fff c9f0. The code never stops unless I suspend it and that is where the debugger always land with message: Break at address "0x1fffc6e0" with no debug information available, or outside of program code. Im not sure is this the startup code.
Below are the images showing how is the MCU connected and the clock setup. When I first connected the board it seemed to be working and entered the main() but but I had to reset the j-link on every start. Now I cannot get it to work even with completely freshly generated project from CubeMX. Debugger always lands in that part of code.
I pasted relevant part of my schematic and the clock configuration diagram below.
Does anyone has any idea how to debug this?


