This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Stopped by vector catch, Unknown function

What causes the "Stopped by vector catch" error?  Where is this documented?

The project builds successfully, but when launching the debugger, the Output window displays "Stopped by vector catch" and execution is halted.  It never makes it to the main() function, so it's not clear where to look for the problem.  At the top of main.c in the editor window, it displays "Unknown function at 0x000008C8.* 

Over in the Disassembly window, the address 8C8 is highlighted, and the assembly code there is:

     4B01   ldr r3, [pc, #4]

Development setup: 

Using SES, with nRF52 DK, with SDK v15.0.0, and Soft Device v6.0.0. 

Started with BLE Peripheral Template project from the SDK's example folder.

For what it's worth, I'm attaching the main.c file, below.

Thanks for any help!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX