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

system freeze at first ble instruction

I try to build a basic ble advertising program, I'm using SDK9 and softdevice 110 hex coming with. but just by calling any ble instruction the system freeze(my led not longer blinking and blingking without any ble function all). my first procedure is to initialize ble stack, the first instruction is SOFTDEVICE_HANDLER_INIT but when the system reach this instruction it freeze

Parents
  • After the error has occurred, your code will probably be in the eternal loop in the end of the app_error_handler() from components\libraries\util\app_error.c. Using a debugger, you should be able to extract the file name (m_p_file_name), line number (m_line_num) and error code (m_error_code) in order to pinpoint the error more exactly.

    On additional question: are you using custom hardware or the DK? If you are using custom hardware, do you have a 32 kHz crystal? And if not, do your set the first parameter of SOFTDEVICE_HANDLER_INIT() accordingly?

Reply
  • After the error has occurred, your code will probably be in the eternal loop in the end of the app_error_handler() from components\libraries\util\app_error.c. Using a debugger, you should be able to extract the file name (m_p_file_name), line number (m_line_num) and error code (m_error_code) in order to pinpoint the error more exactly.

    On additional question: are you using custom hardware or the DK? If you are using custom hardware, do you have a 32 kHz crystal? And if not, do your set the first parameter of SOFTDEVICE_HANDLER_INIT() accordingly?

Children
No Data
Related